PHP 클래스 dbQuerySet, pkp-lib

This class compiles a list of SQL queries specified in the external file.
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$prefixKey Query prefix key
$prefixMethod Auto prefix enable (TRUE)
$queries List of SQL queries
$query String used to build of a query line by line

공개 메소드들

메소드 설명
_tag_cdata ( &$parser, $cdata ) XML Callback to process CDATA elements
_tag_close ( &$parser, $tag ) XML Callback to process end elements
_tag_open ( &$parser, $tag, $attributes ) XML Callback to process start elements. Elements currently processed are: QUERY.
addQuery ( ) : string Adds a completed query to the query list
buildQuery ( $sql = NULL ) : string Appends a line to a query that is being built line by line
create ( object &$xmls ) : array Creates and returns the current query set
dbQuerySet ( object &$parent, array $attributes = NULL ) Initializes the query set.
discardQuery ( ) : boolean Discards the existing query.
newQuery ( ) : boolean Re-initializes the query.
prefixQuery ( string $regex, string $query, string $prefix = NULL ) : string Rebuilds the query with the prefix attached to any objects

메소드 상세

_tag_cdata() 공개 메소드

XML Callback to process CDATA elements
public _tag_cdata ( &$parser, $cdata )

_tag_close() 공개 메소드

XML Callback to process end elements
public _tag_close ( &$parser, $tag )

_tag_open() 공개 메소드

XML Callback to process start elements. Elements currently processed are: QUERY.
public _tag_open ( &$parser, $tag, $attributes )

addQuery() 공개 메소드

Adds a completed query to the query list
public addQuery ( ) : string
리턴 string SQL of added query

buildQuery() 공개 메소드

Appends a line to a query that is being built line by line
public buildQuery ( $sql = NULL ) : string
리턴 string SQL query string.

create() 공개 메소드

Creates and returns the current query set
public create ( object &$xmls ) : array
$xmls object adoSchema object
리턴 array Query set

dbQuerySet() 공개 메소드

Initializes the query set.
public dbQuerySet ( object &$parent, array $attributes = NULL )
$parent object Parent object
$attributes array Attributes

discardQuery() 공개 메소드

Discards the existing query.
public discardQuery ( ) : boolean
리턴 boolean TRUE

newQuery() 공개 메소드

Re-initializes the query.
public newQuery ( ) : boolean
리턴 boolean TRUE

prefixQuery() 공개 메소드

Rebuilds the query with the prefix attached to any objects
public prefixQuery ( string $regex, string $query, string $prefix = NULL ) : string
$regex string Regex used to add prefix
$query string SQL query string
$prefix string Prefix to be appended to tables, indices, etc.
리턴 string Prefixed SQL query string.

프로퍼티 상세

$prefixKey 공개적으로 프로퍼티

Query prefix key
public $prefixKey

$prefixMethod 공개적으로 프로퍼티

Auto prefix enable (TRUE)
public $prefixMethod

$queries 공개적으로 프로퍼티

List of SQL queries
public $queries

$query 공개적으로 프로퍼티

String used to build of a query line by line
public $query