Seed a database with some default data.
Methods
__construct()
__construct(string $path, Adapter $adapter)
Inherited
inherited_from |
\Cactus\Task::__construct() |
Parameters
$path
string
The path to the tasks folder
Runs all of the seed classes.
all() : array
Returns
array
[[$name => (boolean) success]]
getAdapter()
getAdapter() : \Cactus\Adapter
Inherited
inherited_from |
\Cactus\Task::getAdapter() |
Returns
getPath()
getPath() : string
Inherited
inherited_from |
\Cactus\Task::getPath() |
Returns
string
The absolute path to the tasks directory.
Run the given list of seed classes.
multiple(array $list) : array
Parameters
$list
array
The list of classes
Returns
array
[[$name => (boolean) success]]
Runs a single seed class.
single(string $name) : boolean
Parameters
$name
string
The name of the seed class to run
Exceptions
Returns
boolean
Success
Return all of the files in the path directory.
getFiles(boolean $reverse) : array
Inherited
inherited_from |
\Cactus\Task::getFiles() |
Parameters
$reverse
boolean
Find in reverse order?
Returns
array
File list
Properties
The adapter used for the migrations
$adapter : \Cactus\Adapter
Inherited
inherited_from |
\Cactus\Task::$$adapter |
Absolute path to the tasks folder
$path : string
Inherited
inherited_from |
\Cactus\Task::$$path |