Elgg
Version master
|
Public Member Functions | |
__construct (protected EventsService $events, protected Progress $progress, protected Invoker $invoker, protected Translator $translator, protected Config $config) | |
Seeder constructor. More... | |
seed (array $options=[]) | |
Load seed scripts. More... | |
unseed (array $options=[]) | |
Remove all seeded entities. More... | |
getSeederClasses () | |
Get the class names of all registered seeders (verified to work for seeding) More... | |
Seeder class.
Populates the database with rows for testing
Definition at line 20 of file Seeder.php.
Elgg\Database\Seeder::__construct | ( | protected EventsService | $events, |
protected Progress | $progress, | ||
protected Invoker | $invoker, | ||
protected Translator | $translator, | ||
protected Config | $config | ||
) |
Seeder constructor.
EventsService | $events | Events service |
Progress | $progress | Progress helper |
Invoker | $invoker | Invoker service |
Translator | $translator | Translator |
Config | $config | Elgg config |
Definition at line 31 of file Seeder.php.
Elgg\Database\Seeder::getSeederClasses | ( | ) |
Get the class names of all registered seeders (verified to work for seeding)
Definition at line 164 of file Seeder.php.
Elgg\Database\Seeder::seed | ( | array | $options = [] | ) |
Load seed scripts.
array | $options | options for seeding
|
Definition at line 53 of file Seeder.php.
Elgg\Database\Seeder::unseed | ( | array | $options = [] | ) |
Remove all seeded entities.
array | $options | unseeding options
|
Definition at line 124 of file Seeder.php.