PHP Класс Cml\Console\Commands\Migrate\AbstractCommand

Наследование: extends Cml\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$adapter Phinx\Db\Adapter\AdapterInterface
$config Phinx\Config\Config
$manager Phinx\Migration\Manager

Открытые методы

Метод Описание
bootstrap ( array $args, array $options = [] ) Bootstrap Phinx.
getAdapter ( ) : Phinx\Db\Adapter\AdapterInterface Gets the database adapter.
getConfig ( ) : Phinx\Config\Config Gets the config.
getManager ( ) : Phinx\Migration\Manager Gets the migration manager.
setAdapter ( Phinx\Db\Adapter\AdapterInterface $adapter ) : AbstractCommand Sets the database adapter.
setConfig ( Phinx\Config\Config $config ) : AbstractCommand Sets the config.
setManager ( Phinx\Migration\Manager $manager ) : AbstractCommand Sets the migration manager.

Защищенные методы

Метод Описание
getMigrationTemplateFilename ( ) : string Returns the migration template filename.
getSeedTemplateFilename ( ) : string Returns the seed template filename.
loadConfig ( array $options ) : void Parse the config file and load it into the config object
loadManager ( array $args, array $options ) Load the migrations manager and inject the config
verifyMigrationDirectory ( string $path ) : void Verify that the migration directory exists and is writable.
verifySeedDirectory ( string $path ) : void Verify that the seed directory exists and is writable.

Описание методов

bootstrap() публичный Метод

Bootstrap Phinx.
public bootstrap ( array $args, array $options = [] )
$args array
$options array

getAdapter() публичный Метод

Gets the database adapter.
public getAdapter ( ) : Phinx\Db\Adapter\AdapterInterface
Результат Phinx\Db\Adapter\AdapterInterface

getConfig() публичный Метод

Gets the config.
public getConfig ( ) : Phinx\Config\Config
Результат Phinx\Config\Config

getManager() публичный Метод

Gets the migration manager.
public getManager ( ) : Phinx\Migration\Manager
Результат Phinx\Migration\Manager

getMigrationTemplateFilename() защищенный Метод

Returns the migration template filename.
protected getMigrationTemplateFilename ( ) : string
Результат string

getSeedTemplateFilename() защищенный Метод

Returns the seed template filename.
protected getSeedTemplateFilename ( ) : string
Результат string

loadConfig() защищенный Метод

Parse the config file and load it into the config object
protected loadConfig ( array $options ) : void
$options array 选项
Результат void

loadManager() защищенный Метод

Load the migrations manager and inject the config
protected loadManager ( array $args, array $options )
$args array
$options array

setAdapter() публичный Метод

Sets the database adapter.
public setAdapter ( Phinx\Db\Adapter\AdapterInterface $adapter ) : AbstractCommand
$adapter Phinx\Db\Adapter\AdapterInterface
Результат AbstractCommand

setConfig() публичный Метод

Sets the config.
public setConfig ( Phinx\Config\Config $config ) : AbstractCommand
$config Phinx\Config\Config
Результат AbstractCommand

setManager() публичный Метод

Sets the migration manager.
public setManager ( Phinx\Migration\Manager $manager ) : AbstractCommand
$manager Phinx\Migration\Manager
Результат AbstractCommand

verifyMigrationDirectory() защищенный Метод

Verify that the migration directory exists and is writable.
protected verifyMigrationDirectory ( string $path ) : void
$path string
Результат void

verifySeedDirectory() защищенный Метод

Verify that the seed directory exists and is writable.
protected verifySeedDirectory ( string $path ) : void
$path string
Результат void

Описание свойств

$adapter защищенное свойство

protected AdapterInterface,Phinx\Db\Adapter $adapter
Результат Phinx\Db\Adapter\AdapterInterface

$config защищенное свойство

protected Config,Phinx\Config $config
Результат Phinx\Config\Config

$manager защищенное свойство

protected Manager,Phinx\Migration $manager
Результат Phinx\Migration\Manager