class OracleQuery extends Query implements PreparableInterface (View source)

Class OracleQuery

Properties

string $name The name of the database driver.

Methods

__construct(PDO $connection = null)

Class constructor.

from Query
string
__toString()

Magic function to convert the query to a string.

from Query
string
toString()

Convert the query to a string.

from Query
QueryElement|mixed
get(string $clause)

Get clause value.

from Query
mixed
__get(string $name)

Magic function to get protected variable value

from Query
call(mixed $columns)

Add a single column, or array of columns to the CALL clause of the query.

from Query
clear(string|array $clause = null)

Clear data from the query or a specific clause of the query.

from Query
columns(mixed $columns)

Adds a column, or array of column names that would be used for an INSERT INTO statement.

from Query
string
dateFormat()

Returns a PHP date() function compliant date format for the database driver.

from Query
string
dump()

Creates a formatted dump of the query for debugging purposes.

from Query
delete(string $table = null)

Add a table name to the DELETE clause of the query.

from Query
string
escape(string $text, boolean $extra = false)

escape

string
e(string $text, boolean $extra = false)

Proxy of escape.

from Query
exec(mixed $columns)

Add a single column, or array of columns to the EXEC clause of the query.

from Query
from(mixed $tables, string $subQueryAlias = null)

Add a table to the FROM clause of the query.

from Query
string
expression(string $name)

expression

from Query
mixed
expr()

Alias of expression()

from Query
element(string $name, mixed $elements, string $glue = ',')

element

from Query
ele(string $name, mixed $elements, string $glue = ',')

ele

from Query
group(mixed $columns)

Add a grouping column to the GROUP clause of the query.

from Query
having($conditions)

A conditions to the HAVING clause of the query.

from Query
orHaving(mixed|callable $conditions)

Add a single condition, or an array of conditions to the HAVING clause and wrap with OR elements.

from Query
innerJoin(array|string $table, array|string $condition = array())

Add an INNER JOIN clause to the query.

from Query
insert(mixed $table, boolean $incrementField = false)

Add a table name to the INSERT clause of the query.

from Query
join(string $type, string $table, string|array $conditions = array())

Add a JOIN clause to the query.

from Query
leftJoin(array|string $table, array|string $condition = array())

Add a LEFT JOIN clause to the query.

from Query
string
nullDate(boolean $quoted = true)

Get the null or zero representation of a timestamp for the database driver.

from Query
order(mixed $columns)

Add a ordering column to the ORDER clause of the query.

from Query
limit(integer $limit = null, integer $offset = null)

Sets the offset and limit for the result set, if the database driver supports it.

string
processLimit(string $query, integer $limit, integer $offset = null)

Method to modify a query already in string format with the needed additions to make the query limited to a particular number of results, or start at a particular offset. This method is used automatically by the __toString() method if it detects that the query implements the LimitableInterface.

outerJoin(array|string $table, array|string $condition = array())

Add an OUTER JOIN clause to the query.

from Query
string
quote(mixed $text, boolean $escape = true)

Method to quote and optionally escape a string to database requirements for insertion into the database.

from Query
string
q(mixed $text, boolean $escape = true)

Proxy of quote().

from Query
mixed
quoteName(mixed $name)

Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.

from Query
mixed
qn(mixed $name)

Proxy of quoteName().

from Query
rightJoin(array|string $table, array|string $condition = array())

Add a RIGHT JOIN clause to the query.

from Query
select(mixed $columns)

Add a single column, or array of columns to the SELECT clause of the query.

from Query
set(mixed $conditions, string $glue = ',')

Add a single condition string, or an array of strings to the SET clause of the query.

from Query
setQuery(mixed $sql)

Allows a direct query to be provided to the database driver's setQuery() method, but still allow queries to have bounded variables.

from Query
update(string $table)

Add a table name to the UPDATE clause of the query.

from Query
values(string $values)

Adds a tuple, or array of tuples that would be used as values for an INSERT INTO statement.

from Query
where($conditions)

Add a single condition, or an array of conditions to the WHERE clause of the query.

from Query
orWhere(mixed|callable $conditions)

Add a single condition, or an array of conditions to the WHERE clause and wrap with OR elements.

from Query
void
__clone()

Method to provide deep copy support to nested objects and arrays when cloning.

from Query
mixed
union(mixed $query, boolean $distinct = false)

Add a query to UNION with the current query.

from Query
mixed
unionDistinct(mixed $query)

Add a query to UNION DISTINCT with the current query. Simply a proxy to Union with the Distinct clause.

from Query
mixed
unionAll(mixed $query)

Add a query to UNION ALL with the current query.

from Query
string
format($format)

Find and replace sprintf-like tokens in a format string.

from Query
string
getName()

getName

from Query
getExpression()

getExpression

from Query
setExpression(QueryExpression $expression)

setExpression

from Query
PDO
getConnection()

Method to get property Connection

from Query
setConnection(PDO $connection)

Method to set property connection

from Query
bind(string|integer $key = null, mixed $value = null, integer $dataType = \PDO::PARAM_STR, integer $length, array $driverOptions = array())

Method to add a variable to an internal array that will be bound to a prepared SQL statement before query execution. Also removes a variable that has been bounded from the internal bounded array when the passed in value is null.

from Query
mixed
getBounded(mixed $key = null)

Retrieves the bound parameters array when key is null and returns it by reference. If a key is provided then that item is returned.

from Query
string
getDateFormat()

getDateFormat

setDateFormat(string $dateFormat)

setDateFormat

string
getNullDate()

Method to get property NullDate

from Query
setNullDate(string $nullDate)

Method to set property nullDate

from Query
float|int|string
validValue(string $value, bool $allowExpression = false)

getValidValue

from Query
string
validDatetime(string $string)

getValidDatetime

from Query
__sleep()

Unsetting PDO connection before going to sleep (this is needed if the query gets serialized)

from Query
__wakeup()

Trying to re-retrieve the pdo connection after waking up

from Query

Details

in Query at line line 264
__construct(PDO $connection = null)

Class constructor.

Parameters

PDO $connection The PDO connection object to help us escape string.

in Query at line line 276
string __toString()

Magic function to convert the query to a string.

Return Value

string The completed query.

in Query at line line 288
string toString()

Convert the query to a string.

Return Value

string The completed query.

in Query at line line 433
QueryElement|mixed get(string $clause)

Get clause value.

Parameters

string $clause Get query clause.

Return Value

QueryElement|mixed

in Query at line line 447
mixed __get(string $name)

Magic function to get protected variable value

Parameters

string $name The name of the variable.

Return Value

mixed

in Query at line line 468
QueryInterface call(mixed $columns)

Add a single column, or array of columns to the CALL clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query. The call method can, however, be called multiple times in the same query.

Usage: $query->call('a.')->call('b.id'); $query->call(array('a.', 'b.id'));

Parameters

mixed $columns A string or an array of field names.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 493
Query clear(string|array $clause = null)

Clear data from the query or a specific clause of the query.

Parameters

string|array $clause Optionally, the name of the clause to clear, or nothing to clear the whole query.

Return Value

Query Returns this object to allow chaining.

in Query at line line 622
QueryInterface columns(mixed $columns)

Adds a column, or array of column names that would be used for an INSERT INTO statement.

Parameters

mixed $columns A column name, or array of column names.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 647
string dateFormat()

Returns a PHP date() function compliant date format for the database driver.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the getDateFormat method directly.

Return Value

string The format string.

Exceptions

RuntimeException

in Query at line line 662
string dump()

Creates a formatted dump of the query for debugging purposes.

Usage: echo $query->dump();

Return Value

string

in Query at line line 681
QueryInterface delete(string $table = null)

Add a table name to the DELETE clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query.

Usage: $query->delete('#__a')->where('id = 1');

Parameters

string $table The name of the table to delete from.

Return Value

QueryInterface Returns this object to allow chaining.

at line line 71
string escape(string $text, boolean $extra = false)

escape

Parameters

string $text The string to be escaped.
boolean $extra Optional parameter to provide extra escaping.

Return Value

string The escaped string.

in Query at line line 763
string e(string $text, boolean $extra = false)

Proxy of escape.

Parameters

string $text The string to be escaped.
boolean $extra Optional parameter to provide extra escaping.

Return Value

string The escaped string.

in Query at line line 784
QueryInterface exec(mixed $columns)

Add a single column, or array of columns to the EXEC clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query. The exec method can, however, be called multiple times in the same query.

Usage: $query->exec('a.')->exec('b.id'); $query->exec(array('a.', 'b.id'));

Parameters

mixed $columns A string or an array of field names.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 819
QueryInterface from(mixed $tables, string $subQueryAlias = null)

Add a table to the FROM clause of the query.

Note that while an array of tables can be provided, it is recommended you use explicit joins.

Usage: $query->select('*')->from('#__a');

Parameters

mixed $tables A string or array of table names. This can be a JDatabaseQuery object (or a child of it) when used as a subquery in FROM clause along with a value for $subQueryAlias.
string $subQueryAlias Alias used when $tables is a JDatabaseQuery.

Return Value

QueryInterface Returns this object to allow chaining.

Exceptions

InvalidArgumentException
RuntimeException

in Query at line line 850
string expression(string $name)

expression

Parameters

string $name

Return Value

string

in Query at line line 864
mixed expr()

Alias of expression()

Return Value

mixed

in Query at line line 878
QueryElement element(string $name, mixed $elements, string $glue = ',')

element

Parameters

string $name The name of the element.
mixed $elements String or array.
string $glue The glue for elements.

Return Value

QueryElement

in Query at line line 892
QueryElement ele(string $name, mixed $elements, string $glue = ',')

ele

Parameters

string $name The name of the element.
mixed $elements String or array.
string $glue The glue for elements.

Return Value

QueryElement

in Query at line line 909
QueryInterface group(mixed $columns)

Add a grouping column to the GROUP clause of the query.

Usage: $query->group('id');

Parameters

mixed $columns A string or array of ordering columns.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 936
QueryInterface having($conditions)

A conditions to the HAVING clause of the query.

Usage: $query->group('id')->having('COUNT(id) > 5');

Parameters

$conditions

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 975
QueryInterface orHaving(mixed|callable $conditions)

Add a single condition, or an array of conditions to the HAVING clause and wrap with OR elements.

Usage: $query->orHaving(array('a < 5', 'b > 6')); $query->orHaving('a < 5', 'b > 6'); $query->orHaving(function ($query) { $query->having('a < 5')->having('b > 6'); });

Result: HAVING ... AND (a < 5 OR b > 6)

Parameters

mixed|callable $conditions A string, array of where conditions or callback to support logic.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1018
QueryInterface innerJoin(array|string $table, array|string $condition = array())

Add an INNER JOIN clause to the query.

Usage: $query->innerJoin('b ON b.id = a.id')->innerJoin('c ON c.id = b.id');

Parameters

array|string $table The table name with alias.
array|string $condition The join condition.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1042
QueryInterface insert(mixed $table, boolean $incrementField = false)

Add a table name to the INSERT clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query.

Usage: $query->insert('#a')->set('id = 1'); $query->insert('#a')->columns('id, title')->values('1,2')->values('3,4'); $query->insert('#__a')->columns('id, title')->values(array('1,2', '3,4'));

Parameters

mixed $table The name of the table to insert data into.
boolean $incrementField The name of the field to auto increment.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1065
QueryInterface join(string $type, string $table, string|array $conditions = array())

Add a JOIN clause to the query.

Usage: $query->join('INNER', 'table AS b', 'b.id = a.id');

Parameters

string $type The type of join. This string is prepended to the JOIN keyword.
string $table The table name with alias.
string|array $conditions A string or array of conditions.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1095
QueryInterface leftJoin(array|string $table, array|string $condition = array())

Add a LEFT JOIN clause to the query.

Usage: $query->leftJoin('b ON b.id = a.id')->leftJoin('c ON c.id = b.id');

Parameters

array|string $table The table name with alias.
array|string $condition The join condition.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1118
string nullDate(boolean $quoted = true)

Get the null or zero representation of a timestamp for the database driver.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the nullDate method directly.

Usage: $query->where('modified_date <> '.$query->nullDate());

Parameters

boolean $quoted Optionally wraps the null date in database quotes (true by default).

Return Value

string Null or zero representation of a timestamp.

Exceptions

RuntimeException

in Query at line line 1136
QueryInterface order(mixed $columns)

Add a ordering column to the ORDER clause of the query.

Usage: $query->order('foo')->order('bar'); $query->order(array('foo','bar'));

Parameters

mixed $columns A string or array of ordering columns.

Return Value

QueryInterface Returns this object to allow chaining.

at line line 142
QueryInterface limit(integer $limit = null, integer $offset = null)

Sets the offset and limit for the result set, if the database driver supports it.

Usage: $query->setLimit(100, 0); (retrieve 100 rows, starting at first record) $query->setLimit(50, 50); (retrieve 50 rows, starting at 50th record)

Parameters

integer $limit The limit for the result set
integer $offset The offset for the result set

Return Value

QueryInterface Returns this object to allow chaining.

at line line 97
string processLimit(string $query, integer $limit, integer $offset = null)

Method to modify a query already in string format with the needed additions to make the query limited to a particular number of results, or start at a particular offset. This method is used automatically by the __toString() method if it detects that the query implements the LimitableInterface.

Parameters

string $query The query in string format
integer $limit The limit for the result set
integer $offset The offset for the result set

Return Value

string

in Query at line line 1212
QueryInterface outerJoin(array|string $table, array|string $condition = array())

Add an OUTER JOIN clause to the query.

Usage: $query->outerJoin('b ON b.id = a.id')->outerJoin('c ON c.id = b.id');

Parameters

array|string $table The table name with alias.
array|string $condition The join condition.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1240
string quote(mixed $text, boolean $escape = true)

Method to quote and optionally escape a string to database requirements for insertion into the database.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the quote method directly.

Note that 'q' is an alias for this method as it is in DatabaseDriver.

Usage: $query->quote('fulltext'); $query->q('fulltext'); $query->q(array('option', 'fulltext'));

Parameters

mixed $text A string or an array of strings to quote.
boolean $escape True to escape the string, false to leave it unchanged.

Return Value

string The quoted input string.

Exceptions

RuntimeException if the internal db property is not a valid object.

in Query at line line 1272
string q(mixed $text, boolean $escape = true)

Proxy of quote().

Parameters

mixed $text A string or an array of strings to quote.
boolean $escape True to escape the string, false to leave it unchanged.

Return Value

string

in Query at line line 1298
mixed quoteName(mixed $name)

Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the quoteName method directly.

Note that 'qn' is an alias for this method as it is in DatabaseDriver.

Usage: $query->quoteName('#a'); $query->qn('#a');

Parameters

mixed $name The identifier name to wrap in quotes, or an array of identifier names to wrap in quotes. Each type supports dot-notation name.

Return Value

mixed The quote wrapped name, same type of $name.

Exceptions

RuntimeException if the internal db property is not a valid object.

in Query at line line 1340
mixed qn(mixed $name)

Proxy of quoteName().

Parameters

mixed $name The identifier name to wrap in quotes, or an array of identifier names to wrap in quotes. Each type supports dot-notation name.

Return Value

mixed The quote wrapped name, same type of $name.

in Query at line line 1392
QueryInterface rightJoin(array|string $table, array|string $condition = array())

Add a RIGHT JOIN clause to the query.

Usage: $query->rightJoin('b ON b.id = a.id')->rightJoin('c ON c.id = b.id');

Parameters

array|string $table The table name with alias.
array|string $condition The join condition.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1415
QueryInterface select(mixed $columns)

Add a single column, or array of columns to the SELECT clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query. The select method can, however, be called multiple times in the same query.

Usage: $query->select('a.')->select('b.id'); $query->select(array('a.', 'b.id'));

Parameters

mixed $columns A string or an array of field names.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1446
QueryInterface set(mixed $conditions, string $glue = ',')

Add a single condition string, or an array of strings to the SET clause of the query.

Usage: $query->set('a = 1')->set('b = 2'); $query->set(array('a = 1', 'b = 2');

Parameters

mixed $conditions A string or array of string conditions.
string $glue The glue by which to join the condition strings. Defaults to ,. Note that the glue is set on first use and cannot be changed.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1474
QueryInterface setQuery(mixed $sql)

Allows a direct query to be provided to the database driver's setQuery() method, but still allow queries to have bounded variables.

Usage: $query->setQuery('select * from #__users');

Parameters

mixed $sql A SQL query string or DatabaseQuery object

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1495
QueryInterface update(string $table)

Add a table name to the UPDATE clause of the query.

Note that you must not mix insert, update, delete and select method calls when building a query.

Usage: $query->update('#__foo')->set(...);

Parameters

string $table A table to update.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1516
QueryInterface values(string $values)

Adds a tuple, or array of tuples that would be used as values for an INSERT INTO statement.

Usage: $query->values('1,2,3')->values('4,5,6'); $query->values(array('1,2,3', '4,5,6'));

Parameters

string $values A single tuple, or array of tuples.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1555
QueryInterface where($conditions)

Add a single condition, or an array of conditions to the WHERE clause of the query.

Usage: $query->where('a = 1')->where('b = 2'); $query->where(array('a = 1', 'b = 2')); $query->where('%n = %q', 'a', 'b');

Parameters

$conditions

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1594
QueryInterface orWhere(mixed|callable $conditions)

Add a single condition, or an array of conditions to the WHERE clause and wrap with OR elements.

Usage: $query->orWhere(array('a < 5', 'b > 6')); $query->orWhere('a < 5', 'b > 6'); $query->orWhere(function ($query) { $query->where('a < 5')->where('b > 6'); });

Result: WHERE ... AND (a < 5 OR b > 6)

Parameters

mixed|callable $conditions A string, array of where conditions or callback to support logic.

Return Value

QueryInterface Returns this object to allow chaining.

in Query at line line 1631
void __clone()

Method to provide deep copy support to nested objects and arrays when cloning.

Return Value

void

in Query at line line 1663
mixed union(mixed $query, boolean $distinct = false)

Add a query to UNION with the current query.

Multiple unions each require separate statements and create an array of unions.

Usage: $query->union('SELECT name FROM #foo') $query->union('SELECT name FROM #foo','distinct') $query->union(array('SELECT name FROM #foo', 'SELECT name FROM #bar'))

Parameters

mixed $query The Query object or string to union.
boolean $distinct True to only return distinct rows from the union.

Return Value

mixed The Query object on success or boolean false on failure.

in Query at line line 1712
mixed unionDistinct(mixed $query)

Add a query to UNION DISTINCT with the current query. Simply a proxy to Union with the Distinct clause.

Usage: $query->unionDistinct('SELECT name FROM #__foo')

Parameters

mixed $query The Query object or string to union.

Return Value

mixed The Query object on success or boolean false on failure.

in Query at line line 1736
mixed unionAll(mixed $query)

Add a query to UNION ALL with the current query.

Multiple unions each require separate statements and create an array of unions.

Usage: $query->unionAll('SELECT name FROM #foo') $query->unionAll(array('SELECT name FROM #foo','SELECT name FROM #__bar'))

Parameters

mixed $query The Query object or string to union.

Return Value

mixed The Query object on success or boolean false on failure.

See also

union

in Query at line line 1806
string format($format)

Find and replace sprintf-like tokens in a format string.

Each token takes one of the following forms: %% - A literal percent character. %[t] - Where [t] is a type specifier. %[n]$[x] - Where [n] is an argument specifier and [t] is a type specifier.

Types: a - Numeric: Replacement text is coerced to a numeric type but not quoted or escaped. e - Escape: Replacement text is passed to $this->escape(). E - Escape (extra): Replacement text is passed to $this->escape() with true as the second argument. n - Name Quote: Replacement text is passed to $this->quoteName(). q - Quote: Replacement text is passed to $this->quote(). Q - Quote (no escape): Replacement text is passed to $this->quote() with false as the second argument. r - Raw: Replacement text is used as-is. (Be careful)

Date Types: - Replacement text automatically quoted (use uppercase for Name Quote). - Replacement text should be a string in date format or name of a date column. y/Y - Year m/M - Month d/D - Day h/H - Hour i/I - Minute s/S - Second

Invariable Types: - Takes no argument. - Argument index not incremented. t - Replacement text is the result of $this->currentTimestamp(). z - Replacement text is the result of $this->nullDate(false). Z - Replacement text is the result of $this->nullDate(true).

Usage: $query->format('SELECT %1$n FROM %2$n WHERE %3$n = %4$a', 'foo', '#__foo', 'bar', 1); Returns: SELECT foo FROM #__foo WHERE bar = 1

Notes: The argument specifier is optional but recommended for clarity. The argument index used for unspecified tokens is incremented only when used.

Parameters

$format

Return Value

string Returns a string produced according to the formatting string.

in Query at line line 1952
string getName()

getName

Return Value

string

in Query at line line 1962
QueryExpression getExpression()

getExpression

Return Value

QueryExpression

in Query at line line 1986
Query setExpression(QueryExpression $expression)

setExpression

Parameters

QueryExpression $expression

Return Value

Query Return self to support chaining.

in Query at line line 1998
PDO getConnection()

Method to get property Connection

Return Value

PDO

in Query at line line 2010
Query setConnection(PDO $connection)

Method to set property connection

Parameters

PDO $connection

Return Value

Query Return self to support chaining.

in Query at line line 2033
PreparableInterface bind(string|integer $key = null, mixed $value = null, integer $dataType = \PDO::PARAM_STR, integer $length, array $driverOptions = array())

Method to add a variable to an internal array that will be bound to a prepared SQL statement before query execution. Also removes a variable that has been bounded from the internal bounded array when the passed in value is null.

Parameters

string|integer $key The key that will be used in your SQL query to reference the value. Usually of the form ':key', but can also be an integer.
mixed $value &$value The value that will be bound. The value is passed by reference to support output parameters such as those possible with stored procedures.
integer $dataType Constant corresponding to a SQL datatype.
integer $length The length of the variable. Usually required for OUTPUT parameters.
array $driverOptions Optional driver options to be used.

Return Value

PreparableInterface

in Query at line line 2088
mixed getBounded(mixed $key = null)

Retrieves the bound parameters array when key is null and returns it by reference. If a key is provided then that item is returned.

Parameters

mixed $key The bounded variable key to retrieve.

Return Value

mixed

at line line 155
string getDateFormat()

getDateFormat

Return Value

string

at line line 167
Query setDateFormat(string $dateFormat)

setDateFormat

Parameters

string $dateFormat

Return Value

Query Return self to support chaining.

in Query at line line 2134
string getNullDate()

Method to get property NullDate

Return Value

string

in Query at line line 2146
Query setNullDate(string $nullDate)

Method to set property nullDate

Parameters

string $nullDate

Return Value

Query Return self to support chaining.

in Query at line line 2161
float|int|string validValue(string $value, bool $allowExpression = false)

getValidValue

Parameters

string $value
bool $allowExpression

Return Value

float|int|string

in Query at line line 2191
string validDatetime(string $string)

getValidDatetime

Parameters

string $string

Return Value

string

in Query at line line 2203
QueryGrammarInterface getGrammar()

getBuilder

Return Value

QueryGrammarInterface

in Query at line line 2211
__sleep()

Unsetting PDO connection before going to sleep (this is needed if the query gets serialized)

in Query at line line 2219
__wakeup()

Trying to re-retrieve the pdo connection after waking up