PHP Class Phpmig\Adapter\Zend\DbAdapter

Inheritance: implements Phpmig\Adapter\AdapterInterface
Afficher le fichier Open project: davedevelopment/phpmig

Méthodes publiques

Méthode Description
__construct ( Zend\Db\Adapter\Adapter $adapter, string $tableName )
createSchema ( ) : Phpmig\Adapter\AdapterInterface Create Schema
down ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface Down
fetchAll ( ) : array Get all migrated version numbers
hasSchema ( ) : boolean Is the schema ready?
up ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface Up

Private Methods

Méthode Description
tableGateway ( ) : Zend\Db\TableGateway\TableGateway

Method Details

__construct() public méthode

public __construct ( Zend\Db\Adapter\Adapter $adapter, string $tableName )
$adapter Zend\Db\Adapter\Adapter
$tableName string

createSchema() public méthode

Create Schema
public createSchema ( ) : Phpmig\Adapter\AdapterInterface
Résultat Phpmig\Adapter\AdapterInterface

down() public méthode

Down
public down ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface
$migration Phpmig\Migration\Migration
Résultat Phpmig\Adapter\AdapterInterface

fetchAll() public méthode

Get all migrated version numbers
public fetchAll ( ) : array
Résultat array

hasSchema() public méthode

Is the schema ready?
public hasSchema ( ) : boolean
Résultat boolean

up() public méthode

Up
public up ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface
$migration Phpmig\Migration\Migration
Résultat Phpmig\Adapter\AdapterInterface