class AbstractSeeder (View source)

The AbstractSeeder class.

Methods

__construct(AbstractDatabaseDriver $db = null, Command $command = null)

Class init.

execute(AbstractSeeder|string $seeder = null)

execute

void
doExecute()

doExecute

clear(AbstractSeeder|string $seeder = null)

clear

void
doClear()

doClear

AbstractTable
getTable($name)

Get DB table.

truncate($name)

truncate

AbstractDatabaseDriver
getDb()

Method to get property Db

setDb(AbstractDatabaseDriver $db)

Method to set property db

Command
getCommand()

Method to get property Command

setCommand(Command $command)

Method to set property command

Command
outCounting()

outCounting

Details

at line line 50
__construct(AbstractDatabaseDriver $db = null, Command $command = null)

Class init.

Parameters

AbstractDatabaseDriver $db
Command $command

at line line 63
AbstractSeeder execute(AbstractSeeder|string $seeder = null)

execute

Parameters

AbstractSeeder|string $seeder

Return Value

AbstractSeeder

at line line 91
abstract void doExecute()

doExecute

Return Value

void

at line line 100
AbstractSeeder clear(AbstractSeeder|string $seeder = null)

clear

Parameters

AbstractSeeder|string $seeder

Return Value

AbstractSeeder

at line line 125
abstract void doClear()

doClear

Return Value

void

at line line 134
AbstractTable getTable($name)

Get DB table.

Parameters

$name

Return Value

AbstractTable

at line line 146
AbstractSeeder truncate($name)

truncate

Parameters

$name

Return Value

AbstractSeeder

at line line 158
AbstractDatabaseDriver getDb()

Method to get property Db

Return Value

AbstractDatabaseDriver

at line line 170
AbstractSeeder setDb(AbstractDatabaseDriver $db)

Method to set property db

Parameters

AbstractDatabaseDriver $db

Return Value

AbstractSeeder Return self to support chaining.

at line line 182
Command getCommand()

Method to get property Command

Return Value

Command

at line line 194
AbstractSeeder setCommand(Command $command)

Method to set property command

Parameters

Command $command

Return Value

AbstractSeeder Return self to support chaining.

at line line 206
Command outCounting()

outCounting

Return Value

Command