PHP Class Gc\Db\AbstractTable

Inheritance: extends Gc\Core\Object
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name null Abstract name
$tables AbstractTable collection

Méthodes publiques

Méthode Description
__call ( string $method, array $args ) : Zend\Db\TableGateway\TableGateway Set/Get attribute wrapper
__construct ( ) Initialize constructor and save instance of \Zend\Db\TableGateway\TableGateway($name) in self::$tables
events ( ) : StaticEventManager Retrieve event manager
execute ( mixed $query, mixed $parameters = null ) : array | Zend\Db\Adapter\Driver\Pdo\Result Execute query
fetchAll ( mixed $query, mixed $parameters = null ) : array Fetch Row
fetchOne ( mixed $query, mixed $parameters = null ) : mixed Fetch One
fetchRow ( mixed $query, mixed $parameters = null ) : array | Zend\Db\ResultSet\RowObjectInterface Fetch Row
getDriverName ( ) : string Retrieve driver name
getLastInsertId ( string $tableName = null ) : integer Get last insert id

Method Details

__call() public méthode

Set/Get attribute wrapper
public __call ( string $method, array $args ) : Zend\Db\TableGateway\TableGateway
$method string Method
$args array Args
Résultat Zend\Db\TableGateway\TableGateway

__construct() public méthode

Initialize constructor and save instance of \Zend\Db\TableGateway\TableGateway($name) in self::$tables
public __construct ( )

events() public méthode

Retrieve event manager
public events ( ) : StaticEventManager
Résultat Gc\Event\StaticEventManager

execute() public méthode

Execute query
public execute ( mixed $query, mixed $parameters = null ) : array | Zend\Db\Adapter\Driver\Pdo\Result
$query mixed (\Zend\Db\Sql\*|string) Query
$parameters mixed Parameters
Résultat array | Zend\Db\Adapter\Driver\Pdo\Result

fetchAll() public méthode

Fetch Row
public fetchAll ( mixed $query, mixed $parameters = null ) : array
$query mixed (\Zend\Db\Sql\*|string) Query
$parameters mixed Parameters
Résultat array

fetchOne() public méthode

Fetch One
public fetchOne ( mixed $query, mixed $parameters = null ) : mixed
$query mixed (\Zend\Db\Sql\*|string) Query
$parameters mixed Parameters
Résultat mixed

fetchRow() public méthode

Fetch Row
public fetchRow ( mixed $query, mixed $parameters = null ) : array | Zend\Db\ResultSet\RowObjectInterface
$query mixed (\Zend\Db\Sql\*|string) Query
$parameters mixed Parameters
Résultat array | Zend\Db\ResultSet\RowObjectInterface

getDriverName() public méthode

Retrieve driver name
public getDriverName ( ) : string
Résultat string

getLastInsertId() public méthode

Get last insert id
public getLastInsertId ( string $tableName = null ) : integer
$tableName string Optional table name
Résultat integer

Property Details

$name protected_oe property

Abstract name
protected null $name
Résultat null

$tables protected_oe static_oe property

AbstractTable collection
protected static $tables