Elgg  Version 3.0
Public Member Functions | List of all members
Elgg\Database\Seeds\Seedable Interface Reference

Provides seedable methods for database seeding and unit tests. More...

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

Public Member Functions

 createUser (array $attributes=[], array $metadata=[])
 Create a new fake user. More...
 
 createGroup (array $attributes=[], array $metadata=[])
 Create a new fake group. More...
 
 createObject (array $attributes=[], array $metadata=[])
 Create a new fake object. More...
 
 createSite (array $attributes=[], array $metadata=[])
 Create a new fake site. More...
 

Detailed Description

Provides seedable methods for database seeding and unit tests.

Definition at line 8 of file Seedable.php.

Member Function Documentation

Elgg\Database\Seeds\Seedable::createGroup ( array  $attributes = [],
array  $metadata = [] 
)

Create a new fake group.

Parameters
array$attributesGroup entity attributes
array$metadataGroup entity metadata
Returns
Elgg\Database\Seeds\Seedable::createObject ( array  $attributes = [],
array  $metadata = [] 
)

Create a new fake object.

Parameters
array$attributesObject entity attributes
array$metadataObject entity metadata
Returns
Elgg\Database\Seeds\Seedable::createSite ( array  $attributes = [],
array  $metadata = [] 
)

Create a new fake site.

Parameters
array$attributesSite entity attributes
array$metadataSite entity metadata
Returns
Elgg\Database\Seeds\Seedable::createUser ( array  $attributes = [],
array  $metadata = [] 
)

Create a new fake user.

Parameters
array$attributesUser entity attributes
array$metadataUser entity metadata
Returns

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