Свойство | Тип | Описание | |
---|---|---|---|
$escapeValidator | |||
$formatter | |||
$formatters | |||
$ridValidator | |||
$tokens |
Метод | Описание | |
---|---|---|
__construct ( ) | Builds a new object, creating the SQL statement from the class SCHEMA and initializing the tokens. | |
andWhere ( string $condition, string $value = null ) : |
Sets a where token using the AND operator. | |
canHydrate ( ) : boolean | Returns whether this query, when executed, should have the collection hydrated. | |
from ( array $target, boolean $append = true ) | Sets the token for the from clause. You can $append your values. | |
getRaw ( ) : string | Returns the raw SQL query incapsulated by the current object. | |
getTokenValue ( string $token ) : mixed | Returns the value of a token. | |
getTokens ( ) : array | Analyzing the command's SCHEMA, this method returns all the tokens allocable in the command. | |
getValidReturnTypes ( ) : array() | Returns the array of valid params for the Return clause. | |
orWhere ( string $condition, string $value = null ) : |
Sets a where token using the OR operator. | |
resetWhere ( ) : true | Deletes all the WHERE conditions in the current command. | |
returns ( $returns ) | Sets the Returns token | |
setFormatter ( Doctrine\OrientDB\Query\Formatter\QueryInterface $formatter ) | Sets the internal query formatter object. | |
setToken ( string $token, string $tokenValue, boolean $append = false, boolean $first = false ) : true | Sets a single value for a token, | |
where ( string $condition, mixed $value = null, boolean $append = false, string $clause = "WHERE" ) | Adds a WHERE conditions into the current query. |
Метод | Описание | |
---|---|---|
appendToken ( string $token, mixed $values, boolean $first = false ) | Appends a token to the query, without deleting existing values for the given $token. | |
appendTokenAsInteger ( string $token, string $key, mixed $value ) | Appends $value to the query $token. | |
appendTokenAsString ( string $token, string $key, mixed $value ) | Appends $value to the query $token, using $key to identify the $value in the token array. | |
checkToken ( string $token ) : mixed | Checks if a token is set, returning it if it is. | |
clearToken ( string $token ) | Clears the value of a token. | |
formatWhereConditionWithMultipleTokens ( string $condition, array $values, |
Substitutes multiple tokens ($values) in the WHERE $condition. | |
getFormatter ( ) : Doctrine\OrientDB\Query\Formatter\QueryInterface | Returns a brand new instance of a Formatter in order to format query tokens. | |
getSchema ( ) | Returns the schema template for the command. | |
getTokenFormatter ( string $token ) : Array | Returns the formatter for a particular token. | |
getTokenFormatters ( ) : Array | Returns the formatters for this query's tokens. | |
getTokenReplaces ( ) : array | Returns the values to replace command's schema tokens. | |
getValidStatement ( ) : string | Build the command replacing schema tokens with actual values and cleaning the command synthax. | |
replaceTokens ( string $statement ) : string | Replaces the tokens in the command's schema with their actual values in the current object. | |
setTokenValues ( string $token, array $tokenValues, boolean $append = true, boolean $first = false ) : true | Sets the values of a token, and can be appended with the given $append. | |
tokenize ( string $token ) : string | Tokenizes a string. | |
unsetToken ( string $token ) | Deletes a token. |
public __construct ( ) |
protected checkToken ( string $token ) : mixed | ||
$token | string | |
Результат | mixed |
protected clearToken ( string $token ) | ||
$token | string |
protected getFormatter ( ) : Doctrine\OrientDB\Query\Formatter\QueryInterface | ||
Результат | Doctrine\OrientDB\Query\Formatter\QueryInterface |
protected getTokenFormatter ( string $token ) : Array | ||
$token | string | |
Результат | Array |
protected getTokenFormatters ( ) : Array | ||
Результат | Array |
protected getTokenReplaces ( ) : array | ||
Результат | array |
public getTokenValue ( string $token ) : mixed | ||
$token | string | |
Результат | mixed |
public getValidReturnTypes ( ) : array() | ||
Результат | array() |
protected getValidStatement ( ) : string | ||
Результат | string |
protected replaceTokens ( string $statement ) : string | ||
$statement | string | |
Результат | string |
public resetWhere ( ) : true | ||
Результат | true |
public setFormatter ( Doctrine\OrientDB\Query\Formatter\QueryInterface $formatter ) | ||
$formatter | Doctrine\OrientDB\Query\Formatter\QueryInterface |