PHP 클래스 Gc\Db\AbstractTable

상속: extends Gc\Core\Object
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$name null Abstract name
$tables AbstractTable collection

공개 메소드들

메소드 설명
__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

메소드 상세

__call() 공개 메소드

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

__construct() 공개 메소드

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

events() 공개 메소드

Retrieve event manager
public events ( ) : StaticEventManager
리턴 Gc\Event\StaticEventManager

execute() 공개 메소드

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
리턴 array | Zend\Db\Adapter\Driver\Pdo\Result

fetchAll() 공개 메소드

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

fetchOne() 공개 메소드

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

fetchRow() 공개 메소드

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

getDriverName() 공개 메소드

Retrieve driver name
public getDriverName ( ) : string
리턴 string

getLastInsertId() 공개 메소드

Get last insert id
public getLastInsertId ( string $tableName = null ) : integer
$tableName string Optional table name
리턴 integer

프로퍼티 상세

$name 보호되어 있는 프로퍼티

Abstract name
protected null $name
리턴 null

$tables 보호되어 있는 정적으로 프로퍼티

AbstractTable collection
protected static $tables