Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
Sets the database adapter. | |
setConfig ( Phinx\Config\Config $config ) : |
Sets the config. | |
setManager ( Phinx\Migration\Manager $manager ) : |
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. |
public getAdapter ( ) : Phinx\Db\Adapter\AdapterInterface | ||
Результат | Phinx\Db\Adapter\AdapterInterface |
public getConfig ( ) : Phinx\Config\Config | ||
Результат | Phinx\Config\Config |
public getManager ( ) : Phinx\Migration\Manager | ||
Результат | Phinx\Migration\Manager |
protected getMigrationTemplateFilename ( ) : string | ||
Результат | string |
protected getSeedTemplateFilename ( ) : string | ||
Результат | string |
protected loadConfig ( array $options ) : void | ||
$options | array | 选项 |
Результат | void |
protected loadManager ( array $args, array $options ) | ||
$args | array | |
$options | array |
public setAdapter ( Phinx\Db\Adapter\AdapterInterface $adapter ) : |
||
$adapter | Phinx\Db\Adapter\AdapterInterface | |
Результат |
public setConfig ( Phinx\Config\Config $config ) : |
||
$config | Phinx\Config\Config | |
Результат |
public setManager ( Phinx\Migration\Manager $manager ) : |
||
$manager | Phinx\Migration\Manager | |
Результат |
protected verifyMigrationDirectory ( string $path ) : void | ||
$path | string | |
Результат | void |
protected verifySeedDirectory ( string $path ) : void | ||
$path | string | |
Результат | void |
protected AdapterInterface,Phinx\Db\Adapter $adapter | ||
Результат | Phinx\Db\Adapter\AdapterInterface |