| Fully Qualified Name: | CodeIgniter\Database\Seeder |
Class Seeder
| Name | Description | Defined By |
|---|---|---|
| __construct() | Seeder constructor. | Seeder |
| call() | Loads the specified seeder and runs it. | Seeder |
| run() | Run the database seeds. This is where the magic happens. | Seeder |
| setPath() | Sets the location of the directory that seed files can be located in. | Seeder |
| setSilent() | Sets the silent treatment. | Seeder |
Seeder constructor.
| Parameter Name | Type | Description |
|---|---|---|
| $config | \BaseConfig | |
| $db | \BaseConnection |
Returns:
Loads the specified seeder and runs it.
| Parameter Name | Type | Description |
|---|---|---|
| $class | string |
Returns:
Run the database seeds. This is where the magic happens.
Child classes must implement this method and take care of inserting their data here.
Returns: mixed
Sets the location of the directory that seed files can be located in.
| Parameter Name | Type | Description |
|---|---|---|
| $path | string |
Returns: \Seeder
Sets the silent treatment.
| Parameter Name | Type | Description |
|---|---|---|
| $silent | bool |
Returns: \Seeder