PHP 인터페이스 eZ\Publish\Core\Persistence\Database\Query

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 0 사용 예제들

공개 메소드들

메소드 설명
__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.
getQuery ( ) : string Return the SQL string for this query.
prepare ( ) : PDOStatement
subSelect ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Create a subselect used with the current query.

메소드 상세

__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'
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.

getQuery() 공개 메소드

Return the SQL string for this query.
public getQuery ( ) : string
리턴 string

prepare() 공개 메소드

public prepare ( ) : PDOStatement
리턴 PDOStatement

subSelect() 공개 메소드

Create a subselect used with the current query.
public subSelect ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
리턴 eZ\Publish\Core\Persistence\Database\SelectQuery