Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Sql Class Reference

Public Member Functions

 __construct (AdapterInterface $adapter, $table=null, Platform\AbstractPlatform $sqlPlatform=null)
 
 getAdapter ()
 
 hasTable ()
 
 setTable ($table)
 
 getTable ()
 
 getSqlPlatform ()
 
 select ($table=null)
 
 insert ($table=null)
 
 update ($table=null)
 
 delete ($table=null)
 
 prepareStatementForSqlObject (PreparableSqlInterface $sqlObject, StatementInterface $statement=null, AdapterInterface $adapter=null)
 
 getSqlStringForSqlObject (SqlInterface $sqlObject, PlatformInterface $platform=null)
 Get sql string using platform or sql object.
 
 buildSqlString (SqlInterface $sqlObject, AdapterInterface $adapter=null)
 

Protected Attributes

 $adapter = null
 
 $table = null
 
 $sqlPlatform = null
 

Constructor & Destructor Documentation

__construct ( AdapterInterface  $adapter,
  $table = null,
Platform\AbstractPlatform  $sqlPlatform = null 
)
Parameters
AdapterInterface$adapter
null | string | array | TableIdentifier$table
null | Platform\AbstractPlatform$sqlPlatform,\xrefitemdeprecated 40.

Member Function Documentation

buildSqlString ( SqlInterface  $sqlObject,
AdapterInterface  $adapter = null 
)
Parameters
SqlInterface$sqlObject
AdapterInterface$adapter
Returns
string
Exceptions
Exception\InvalidArgumentException
delete (   $table = null)
getAdapter ( )
Returns
null|
getSqlPlatform ( )
getSqlStringForSqlObject ( SqlInterface  $sqlObject,
PlatformInterface  $platform = null 
)

Get sql string using platform or sql object.

Parameters
SqlInterface$sqlObject
PlatformInterface | null$platform
Returns
string
Deprecated:
Deprecated in 2.4. Use buildSqlString() instead
getTable ( )
hasTable ( )
insert (   $table = null)
prepareStatementForSqlObject ( PreparableSqlInterface  $sqlObject,
StatementInterface  $statement = null,
AdapterInterface  $adapter = null 
)
Parameters
PreparableSqlInterface$sqlObject
StatementInterface$statement
AdapterInterface$adapter
Returns
StatementInterface
select (   $table = null)
setTable (   $table)
update (   $table = null)

Member Data Documentation

$adapter = null
protected
$sqlPlatform = null
protected
$table = null
protected