Elgg  Version 4.3
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.
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.
$metadata
Output annotation metadata.
Definition: metadata.php:9
$attributes
Elgg AJAX loader.
Definition: ajax_loader.php:10