Elgg  Version 2.3
Public Member Functions | Protected Attributes | List of all members
Elgg\Database\Seeder Class Reference

Seeder class. More...

Public Member Functions

 __construct (PluginHooksService $hooks)
 Seeder constructor. More...
 
 seed ()
 Load seed scripts. More...
 
 unseed ()
 Remove all seeded entities. More...
 

Protected Attributes

 $hooks
 

Detailed Description

Seeder class.

Populates the database with rows for testing

private

Definition at line 18 of file Seeder.php.

Constructor & Destructor Documentation

Elgg\Database\Seeder::__construct ( PluginHooksService  $hooks)

Seeder constructor.

Parameters
PluginHooksService$hooksHooks registration service

Definition at line 36 of file Seeder.php.

Member Function Documentation

Elgg\Database\Seeder::seed ( )

Load seed scripts.

Returns
void

Definition at line 45 of file Seeder.php.

Elgg\Database\Seeder::unseed ( )

Remove all seeded entities.

Returns
void

Definition at line 72 of file Seeder.php.

Member Data Documentation

Elgg\Database\Seeder::$hooks
protected

Definition at line 29 of file Seeder.php.


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