Seeder class.
More...
Seeder class.
Populates the database with rows for testing
Definition at line 17 of file Seeder.php.
Elgg\Database\Seeder::getSeederClasses |
( |
| ) |
|
Get the class names of all registered seeders (verified to work for seeding)
- Returns
- string[]
Definition at line 138 of file Seeder.php.
Elgg\Database\Seeder::seed |
( |
array |
$options = [] | ) |
|
Load seed scripts.
- Parameters
-
array | $options | options for seeding
- limit: the max number of entities to seed
- image_folder: a global (local) image folder to use for image seeding (user/group profile icon, etc)
- type: only seed this content type
- create: create new entities (default: false)
- create_since: lower bound creation time (default: now)
- create_until: upper bound creation time (default: now)
|
- Returns
- void
Definition at line 55 of file Seeder.php.
Elgg\Database\Seeder::unseed |
( |
array |
$options = [] | ) |
|
Remove all seeded entities.
- Parameters
-
array | $options | unseeding options
- type: only unseed this content type
|
- Returns
- void
Definition at line 104 of file Seeder.php.
Invoker Elgg\Database\Seeder::$invoker |
|
protected |
Progress Elgg\Database\Seeder::$progress |
|
protected |
The documentation for this class was generated from the following file: