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

Seeder class. More...

Public Member Functions

 __construct (PluginHooksService $hooks, Progress $progress)
 Seeder constructor. More...
 
 seed ($limit=null)
 Load seed scripts. More...
 
 unseed ()
 Remove all seeded entities. More...
 

Protected Attributes

 $hooks
 
 $progress
 

Detailed Description

Seeder class.

Populates the database with rows for testing

Definition at line 16 of file Seeder.php.

Constructor & Destructor Documentation

Elgg\Database\Seeder::__construct ( PluginHooksService  $hooks,
Progress  $progress 
)

Seeder constructor.

Parameters
PluginHooksService$hooksHooks registration service
Progress$progressProgress helper

Definition at line 34 of file Seeder.php.

Member Function Documentation

Elgg\Database\Seeder::seed (   $limit = null)

Load seed scripts.

Parameters
int$limitthe max number of entities to seed
Returns
void

Definition at line 49 of file Seeder.php.

Elgg\Database\Seeder::unseed ( )

Remove all seeded entities.

Returns
void

Definition at line 91 of file Seeder.php.

Member Data Documentation

Elgg\Database\Seeder::$hooks
protected

Definition at line 21 of file Seeder.php.

Elgg\Database\Seeder::$progress
protected

Definition at line 26 of file Seeder.php.


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