package Default

 Methods

__construct()

__construct(\Zend\Db\Adapter\AdapterInterface $adapter, null|string|array|\Zend\Db\Sql\TableIdentifier $table = null, null|\Zend\Db\Sql\Platform\AbstractPlatform $sqlPlatform = null

Parameters

$adapter

\Zend\Db\Adapter\AdapterInterface

$table

nullstringarray\Zend\Db\Sql\TableIdentifier

$sqlPlatform

null\Zend\Db\Sql\Platform\AbstractPlatform

@deprecated since version 3.0

buildSqlString()

buildSqlString(\Zend\Db\Sql\SqlInterface $sqlObject, \Zend\Db\Adapter\AdapterInterface $adapter = null) : string

Parameters

$sqlObject

\Zend\Db\Sql\SqlInterface

$adapter

\Zend\Db\Adapter\AdapterInterface

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

string

delete()

delete($table = null

Parameters

$table

getAdapter()

getAdapter() : null | \Zend\Db\Adapter\AdapterInterface

Returns

null\Zend\Db\Adapter\AdapterInterface

getSqlPlatform()

getSqlPlatform() 

Get sql string using platform or sql object

getSqlStringForSqlObject(\Zend\Db\Sql\SqlInterface $sqlObject, \Zend\Db\Adapter\Platform\PlatformInterface|null $platform = null) : string
deprecated Deprecated in 2.4. Use buildSqlString() instead

Parameters

$sqlObject

\Zend\Db\Sql\SqlInterface

$platform

\Zend\Db\Adapter\Platform\PlatformInterfacenull

Returns

string

getTable()

getTable() 

hasTable()

hasTable() 

insert()

insert($table = null

Parameters

$table

prepareStatementForSqlObject()

prepareStatementForSqlObject(\Zend\Db\Sql\PreparableSqlInterface $sqlObject, \Zend\Db\Adapter\Driver\StatementInterface $statement = null, \Zend\Db\Adapter\AdapterInterface $adapter = null) : \Zend\Db\Adapter\Driver\StatementInterface

Parameters

$sqlObject

\Zend\Db\Sql\PreparableSqlInterface

$statement

\Zend\Db\Adapter\Driver\StatementInterface

$adapter

\Zend\Db\Adapter\AdapterInterface

Returns

\Zend\Db\Adapter\Driver\StatementInterface

select()

select($table = null

Parameters

$table

setTable()

setTable($table) 

Parameters

$table

update()

update($table = null

Parameters

$table

 Properties

 

$adapter

$adapter : \Zend\Db\Adapter\AdapterInterface

Default

null
 

$sqlPlatform

$sqlPlatform : \Zend\Db\Sql\Platform\Platform

Default

null
 

$table

$table : string | array | \Zend\Db\Sql\TableIdentifier

Default

null