PHP Класс eZ\Publish\Core\Persistence\Doctrine\AbstractDoctrineQuery

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$expr eZ\Publish\Core\Persistence\Database\Expression

Защищенные свойства (Protected)

Свойство Тип Описание
$connection Doctrine\DBAL\Connection

Открытые методы

Метод Описание
__construct ( Doctrine\DBAL\Connection $connection )
__toString ( ) : string Return the SQL string for this query.
bindParam ( &mixed &$param, string $placeHolder = null, $type = PDO::PARAM_STR ) : string Binds the parameter $param to the specified variable name $placeHolder.
bindValue ( mixed $value, string $placeHolder = null, $type = PDO::PARAM_STR ) : string Binds the value $value to the specified variable name $placeHolder.
prepare ( ) : Statement
subSelect ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Create a subselect used with the current query.

Защищенные методы

Метод Описание
parseArguments ( array $args ) : array Parse the arguments and validate for existance of values.

Приватные методы

Метод Описание
doBind ( Statement $stmt ) Performs binding of variables bound with bindValue and bindParam on the statement $stmt.

Описание методов

__construct() публичный Метод

public __construct ( Doctrine\DBAL\Connection $connection )
$connection Doctrine\DBAL\Connection

__toString() публичный Метод

Return the SQL string for this query.
public __toString ( ) : string
Результат string

bindParam() публичный Метод

. This method provides a shortcut for PDOStatement::bindParam when using prepared statements. The parameter $param specifies the variable that you want to bind. If $placeholder is not provided bind() will automatically create a placeholder for you. An automatic placeholder will be of the name 'placeholder1', 'placeholder2' etc. For more information see {@link http://php.net/pdostatement-bindparam} Example: $value = 2; $q->eq( 'id', $q->bindParam( $value ) ); $stmt = $q->prepare(); // the parameter $value is bound to the query. $value = 4; $stmt->execute(); // executed with 'id = 4'
См. также: doBind()
public bindParam ( &mixed &$param, string $placeHolder = null, $type = PDO::PARAM_STR ) : string
$param &mixed
$placeHolder string the name to bind with. The string must start with a colon ':'.
Результат string the placeholder name used.

bindValue() публичный Метод

This method provides a shortcut for PDOStatement::bindValue when using prepared statements. The parameter $value specifies the value that you want to bind. If $placeholder is not provided bindValue() will automatically create a placeholder for you. An automatic placeholder will be of the name 'placeholder1', 'placeholder2' etc. For more information see {@link http://php.net/pdostatement-bindparam} Example: $value = 2; $q->eq( 'id', $q->bindValue( $value ) ); $stmt = $q->prepare(); // the value 2 is bound to the query. $value = 4; $stmt->execute(); // executed with 'id = 2'
public bindValue ( mixed $value, string $placeHolder = null, $type = PDO::PARAM_STR ) : string
$value mixed
$placeHolder string the name to bind with. The string must start with a colon ':'.
Результат string the placeholder name used.

parseArguments() защищенный Метод

Parse the arguments and validate for existance of values.
protected parseArguments ( array $args ) : array
$args array
Результат array

prepare() публичный Метод

public prepare ( ) : Statement
Результат Doctrine\DBAL\Statement

subSelect() публичный Метод

Create a subselect used with the current query.
public subSelect ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
Результат eZ\Publish\Core\Persistence\Database\SelectQuery

Описание свойств

$connection защищенное свойство

protected Connection,Doctrine\DBAL $connection
Результат Doctrine\DBAL\Connection

$expr публичное свойство

public Expression,eZ\Publish\Core\Persistence\Database $expr
Результат eZ\Publish\Core\Persistence\Database\Expression