Methods

Constructor

__construct(null | string | \Zend\Db\Sql\TableIdentifier $table) 

Parameters

$table

nullstring\Zend\Db\Sql\TableIdentifier

Property overloading

__get(string $name) : mixed

Overloads "where" only.

Parameters

$name

string

Returns

mixed

Create from statement

from(string | \Zend\Db\Sql\TableIdentifier $table) : \Zend\Db\Sql\Delete

Parameters

Returns

getRawState()

getRawState($key) 

Parameters

$key

Get the SQL string, based on the platform

getSqlString(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform) : string

Platform defaults to Sql92 if none provided

Parameters

Returns

string

Prepare the delete statement

prepareStatement(\Zend\Db\Adapter\AdapterInterface $adapter, \Zend\Db\Adapter\StatementContainerInterface $statementContainer) : void

Create where clause

where(\Zend\Db\Sql\Where | \Closure | string | array $predicate, string $combination) : \Zend\Db\Sql\Delete

Parameters

$predicate

\Zend\Db\Sql\Where\Closurestringarray

$combination

string

One of the OP_* constants from Predicate\PredicateSet

Returns

createSqlFromSpecificationAndParameters()

createSqlFromSpecificationAndParameters($specifications, $parameters) : string
Inherited

inherited_from \Zend\Db\Sql\AbstractSql::createSqlFromSpecificationAndParameters()

Parameters

$specifications

$parameters

Exceptions

\Zend\Db\Sql\Exception\RuntimeException

Returns

string

processExpression()

processExpression(\Zend\Db\Sql\ExpressionInterface $expression, \Zend\Db\Adapter\Platform\PlatformInterface $platform, \Zend\Db\Adapter\Driver\DriverInterface $driver, $namedParameterPrefix) 
Inherited

inherited_from \Zend\Db\Sql\AbstractSql::processExpression()

Parameters

$expression

$platform

$driver

$namedParameterPrefix

processSubSelect()

processSubSelect(\Zend\Db\Sql\Select $subselect, \Zend\Db\Adapter\Platform\PlatformInterface $platform, \Zend\Db\Adapter\Driver\DriverInterface $driver, \Zend\Db\Adapter\ParameterContainer $parameterContainer) 
Inherited

inherited_from \Zend\Db\Sql\AbstractSql::processSubSelect()

Parameters

$subselect

$platform

$driver

$parameterContainer

 Properties

 

$where

$where : \Zend\Db\Sql\Where

magic
property
 

$emptyWhereProtection

$emptyWhereProtection : bool

 

$instanceParameterIndex

$instanceParameterIndex : array
Inherited

inherited_from \Zend\Db\Sql\AbstractSql::$$instanceParameterIndex
 

$processInfo

$processInfo : string
Inherited

inherited_from \Zend\Db\Sql\AbstractSql::$$processInfo
 

$set

$set : array

 

<p>Specifications</p>

$specifications : array

 

$table

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

 

$where

$where : null | string | \Zend\Db\Sql\Where

 Constants

 

SPECIFICATION_DELETE

SPECIFICATION_DELETE 

 

SPECIFICATION_WHERE

SPECIFICATION_WHERE