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

Seed users. More...

Inheritance diagram for Elgg\Database\Seeds\Users:
Elgg\Database\Seeds\Seed

Public Member Functions

 seed ()
 {} More...
 
 unseed ()
 {} 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
 
 $faker
 

Detailed Description

Seed users.

private

Definition at line 10 of file Users.php.

Member Function Documentation

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

{}

Definition at line 15 of file Users.php.

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

{}

Definition at line 91 of file Users.php.


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