PHP 클래스 Cml\Console\Commands\Migrate\AbstractCommand

상속: extends Cml\Console\Command
파일 보기 프로젝트 열기: linhecheng/cmlphp

보호된 프로퍼티들

프로퍼티 타입 설명
$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