Свойство | Тип | Описание | |
---|---|---|---|
$expr | eZ\Publish\Core\Persistence\Database\Expression |
Свойство | Тип | Описание | |
---|---|---|---|
$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 ( ) : |
||
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 ( |
Performs binding of variables bound with bindValue and bindParam on the statement $stmt. |
public __construct ( Doctrine\DBAL\Connection $connection ) | ||
$connection | Doctrine\DBAL\Connection |
public __toString ( ) : string | ||
Результат | string |
$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'
$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'
protected parseArguments ( array $args ) : array | ||
$args | array | |
Результат | array |
public subSelect ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery | ||
Результат | eZ\Publish\Core\Persistence\Database\SelectQuery |
protected Connection,Doctrine\DBAL $connection | ||
Результат | Doctrine\DBAL\Connection |