Elgg  Version 2.3
Public Member Functions | List of all members
Elgg\Database\Seeds\Groups Class Reference

Seed users. More...

Inheritance diagram for Elgg\Database\Seeds\Groups:

Public Member Functions

 seed ()
 {} More...
 unseed ()
 {} More...
 getRandomVisibility ()
 Returns random visibility value. More...
 getRandomContentAccessMode ()
 Returns random content access mode value. More...
 getRandomMembership ()
 Returns random membership mode. More...
- Public Member Functions inherited from Elgg\Database\Seeds\Seed
 __construct ($locale= 'en_US')
 Seed constructor. More...
 seed ()
 Populate database. More...
 unseed ()
 Removed seeded rows from database. More...
 getDomain ()
 Get site domain. More...
 createUser (array $attributes=[], array $metadata=[])
 Create a new faker user. More...
 createGroup (array $attributes=[], array $metadata=[])
 Create a new faker group. More...
 createObject (array $attributes=[], array $metadata=[])
 Create a new faker object. More...
 getRandomUser (array $exclude=[])
 Returns random fake user. More...
 getRandomGroup (array $exclude=[])
 Returns random fake group. More...
 getRandomAccessId (\ElggUser $user=null, ElggEntity $container=null)
 Get random access id. More...
 getRandomUsername ($base_name= 'user')
 Generates a unique available and valid username. More...
 populateMetadata (ElggEntity $entity, array $fields=[], array $metadata=[])
 Set random metadata. More...
 createIcon (ElggEntity $entity)
 Create an icon for an entity. More...
 createComments (ElggEntity $entity, $limit=null)
 Create comments/replies. More...
 createLikes (ElggEntity $entity, $limit=null)
 Create likes. More...
 log ($msg, $level= 'NOTICE')
 Log a message. More...

Additional Inherited Members

- Protected Attributes inherited from Elgg\Database\Seeds\Seed
 $limit = 3

Detailed Description

Seed users.


Definition at line 10 of file Groups.php.

Member Function Documentation

Elgg\Database\Seeds\Groups::getRandomContentAccessMode ( )

Returns random content access mode value.


Definition at line 166 of file Groups.php.

Elgg\Database\Seeds\Groups::getRandomMembership ( )

Returns random membership mode.


Definition at line 176 of file Groups.php.

Elgg\Database\Seeds\Groups::getRandomVisibility ( )

Returns random visibility value.


Definition at line 156 of file Groups.php.

Elgg\Database\Seeds\Groups::seed ( )


Definition at line 36 of file Groups.php.

Elgg\Database\Seeds\Groups::unseed ( )


Definition at line 130 of file Groups.php.

The documentation for this class was generated from the following file: