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

Go to the source code of this file.

Namespaces

 Elgg\Database\Seeds
 

Functions

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

Variables

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