package Default
inherited_from \Zend\Db\Sql\AbstractExpression

 Methods

__construct()

__construct(string $expression = '', string|array $parameters = null, array $types = array()

Parameters

$expression

string

$parameters

stringarray

$types

array

@deprecated will be dropped in version 3.0.0

getExpression()

getExpression() : string

Returns

string

getExpressionData()

getExpressionData() : array

Exceptions

\Zend\Db\Sql\Exception\RuntimeException

Returns

array

getParameters()

getParameters() : array

Returns

array

getTypes()

getTypes() : array
deprecated

Returns

array

setExpression()

setExpression($expression) : \Zend\Db\Sql\Expression

Parameters

$expression

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

\Zend\Db\Sql\Expression

setParameters()

setParameters($parameters) : \Zend\Db\Sql\Expression

Parameters

$parameters

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

\Zend\Db\Sql\Expression

setTypes()

setTypes(array $types) : \Zend\Db\Sql\Expression
deprecated

Parameters

$types

array

Returns

\Zend\Db\Sql\Expression

Normalize Argument

normalizeArgument(mixed $argument, string $defaultType = self::TYPE_VALUE) : array
Inherited

Parameters

$argument

mixed

$defaultType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

buildNormalizedArgument()

buildNormalizedArgument(mixed $argument, string $argumentType) : array
Inherited

Parameters

$argument

mixed

$argumentType

string

Exceptions

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

array

 Properties

 

$allowedTypes

$allowedTypes : array<mixed,string>

Default

array(self::TYPE_IDENTIFIER, self::TYPE_LITERAL, self::TYPE_SELECT, self::TYPE_VALUE)
 

$expression

$expression : string

Default

''
 

$parameters

$parameters : array

Default

array()
 

$types

$types : array

Default

array()

 Constants

 

PLACEHOLDER

PLACEHOLDER = '?' 
const