Elgg  Version 3.0
Seedable.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Database\Seeds;
4 
8 interface Seedable {
9 
18  public function createUser(array $attributes = [], array $metadata = []);
19 
28  public function createGroup(array $attributes = [], array $metadata = []);
29 
38  public function createObject(array $attributes = [], array $metadata = []);
39 
48  public function createSite(array $attributes = [], array $metadata = []);
49 }
createSite(array $attributes=[], array $metadata=[])
Create a new fake site.
createObject(array $attributes=[], array $metadata=[])
Create a new fake object.
$metadata
Outputs object metadata $vars[&#39;metadata&#39;] Metadata/menu $vars[&#39;show_entity_menu&#39;] Show the entity m...
Definition: metadata.php:10
createGroup(array $attributes=[], array $metadata=[])
Create a new fake group.
Provides seedable methods for database seeding and unit tests.
Definition: Seedable.php:8
createUser(array $attributes=[], array $metadata=[])
Create a new fake user.
$attributes
Definition: ajax_loader.php:13