Elgg  Version master
Namespaces | Functions | Variables
Seeding.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Traits
 

Functions

 Elgg\Traits::faker (string $locale= 'en_US')
 Returns an instance of faker. More...
 
 Elgg\Traits::getDomain ()
 Get site domain. More...
 
 Elgg\Traits::getEmailDomain ()
 Get valid domain for emails. More...
 
 Elgg\Traits::getRandomSubtype ()
 Returns random unique subtype. More...
 
 Elgg\Traits::createUser (array $properties=[], array $options=[])
 Create a new fake user. More...
 
 Elgg\Traits::createGroup (array $properties=[], array $options=[])
 Create a new fake group. More...
 
 Elgg\Traits::createObject (array $properties=[], array $options=[])
 Create a new fake object. More...
 
 Elgg\Traits::createSite (array $properties=[])
 Create a new fake site. More...
 
 Elgg\Traits::getRandomUser (array $exclude=[], bool $allow_create=true)
 Returns random fake user. More...
 
 Elgg\Traits::getRandomGroup (array $exclude=[], bool $allow_create=true)
 Returns random fake group. More...
 
 Elgg\Traits::getRandomAccessId (\ElggUser $user=null,\ElggEntity $container=null)
 Get random access id. More...
 
 Elgg\Traits::getRandomUsername ($name=null)
 Generates a unique available and valid username. More...
 
 Elgg\Traits::getRandomEmail ($base=null)
 Generate a random valid email. More...
 
 Elgg\Traits::populateMetadata (\ElggEntity $entity, array $fields=[], array $metadata=[])
 Set random metadata. More...
 
 Elgg\Traits::createIcon (\ElggEntity $entity)
 Create an icon for an entity. More...
 
 Elgg\Traits::createComments (\ElggEntity $entity, $limit=null)
 Create comments/replies. More...
 
 Elgg\Traits::createLikes (\ElggEntity $entity, $limit=null)
 Create likes. More...
 
 Elgg\Traits::log ($msg, $level=LogLevel::NOTICE)
 Log a message. More...
 

Variables

trait Elgg\Traits::Seeding
 Seeding trait Can be used to easily create new random users, groups and objects in the database. More...
 
 Elgg\Traits::$MAX_ATTEMPTS = 10
 
 Elgg\Traits::$faker