xPDOQueryAn xPDOCriteria derivative with methods for constructing complex statements.
Located in /om/xpdoquery.class.php (line 35)
xPDOCriteria | --xPDOQuery
| Class | Description |
|---|---|
xPDOQuery_mysql
|
An implementation of xPDOQuery for the MySQL database engine. |
xPDOQuery_sqlite
|
An implementation of xPDOQuery for the SQLite database engine. |
xPDOQuery_sqlsrv
|
An implementation of xPDOQuery for the sqlsrv database driver. |
string
buildConditionalClause
(array $conditions, [ &$conjunction = xPDOQuery::SQL_AND], [boolean $isFirst = true], string $conjunction)
xPDOQuery
condition
( &$target, [mixed $conditions = '1'], [string $conjunction = xPDOQuery::SQL_AND], [mixed $binding = null], [integer $condGroup = 0], string $target)
void
hydrateGraphNode
( &$row, &$instance, string $alias, array $relations, array $row, xPDOObject $instance)
void
innerJoin
( $class, [ $alias = ''], [ $conditions = array ()], [ $conjunction = xPDOQuery::SQL_AND], [ $binding = null], [ $condGroup = 0])
xPDOQuery
join
(string $class, [string $alias = ''], [string $type = xPDOQuery::SQL_JOIN_CROSS], [mixed $conditions = array ()], [string $conjunction = xPDOQuery::SQL_AND], [array $binding = null], [int $condGroup = 0])
void
leftJoin
( $class, [ $alias = ''], [ $conditions = array ()], [ $conjunction = xPDOQuery::SQL_AND], [ $binding = null], [ $condGroup = 0])
void
rightJoin
( $class, [ $alias = ''], [ $conditions = array ()], [ $conjunction = xPDOQuery::SQL_AND], [ $binding = null], [ $condGroup = 0])
mixed
$graph
= array () (line 83)
mixed
$query
= array (
mixed
$_alias
= null (line 82)
mixed
$_class
= null (line 81)
array
$_operators
= array (An array of symbols and keywords indicative of SQL operators.
mixed
$_quotable
= array ('string', 'password', 'date', 'datetime', 'timestamp', 'time') (line 80)
Inherited from xPDOCriteria
xPDOCriteria::$bindings
xPDOCriteria::$cacheFlag
xPDOCriteria::$sql
xPDOCriteria::$stmt
Constructor __construct (line 100)
andCondition (line 288)
bindGraph (line 345)
Bind an object graph to the query.
bindGraphNode (line 378)
Bind the node of an object graph to the query.
buildConditionalClause (line 663)
Builds conditional clauses from xPDO condition expressions.
command (line 138)
Set the type of SQL command you want to build.
The default is SELECT, though it also supports DELETE.
condition (line 267)
Add a condition to the query.
construct (line 482)
Constructs the SQL query from the xPDOQuery definition.
from (line 246)
Add a FROM clause to the query.
getAlias (line 124)
getClass (line 120)
groupby (line 316)
Add an GROUP BY clause to the query.
having (line 321)
hydrateGraph (line 400)
Hydrates a graph of related objects from a single result set.
hydrateGraphNode (line 450)
Hydrates a node of the object graph.
hydrateGraphParent (line 424)
innerJoin (line 227)
isConditionalClause (line 642)
Determines if a string contains a conditional operator.
join (line 201)
Join a table represented by the specified class.
leftJoin (line 231)
limit (line 333)
Add a LIMIT/OFFSET clause to the query.
orCondition (line 292)
parseConditions (line 503)
Parses an xPDO condition expression.
prepare (line 489)
Prepares the xPDOQuery for execution.
rightJoin (line 235)
select (line 164)
Specify columns to return from the SQL query.
setClassAlias (line 153)
Sets a SQL alias for the table represented by the main class.
sortby (line 304)
Add an ORDER BY clause to the query.
where (line 283)
Add a WHERE condition to the query.
Inherited From xPDOCriteria
xPDOCriteria::__construct()
xPDOCriteria::bind()
xPDOCriteria::equals()
xPDOCriteria::prepare()
xPDOCriteria::toSQL()
SQL_AND
= 'AND'
(line 36)
SQL_JOIN_CROSS
= 'JOIN'
(line 38)
SQL_JOIN_LEFT
= 'LEFT JOIN'
(line 39)
SQL_JOIN_NATURAL_LEFT
= 'NATURAL LEFT JOIN'
(line 41)
SQL_JOIN_NATURAL_RIGHT
= 'NATURAL RIGHT JOIN'
(line 42)
SQL_JOIN_RIGHT
= 'RIGHT JOIN'
(line 40)
SQL_JOIN_STRAIGHT
= 'STRAIGHT_JOIN'
(line 43)
SQL_OR
= 'OR'
(line 37)
Documentation generated on Mon, 27 Dec 2010 11:08:32 -0700 by phpDocumentor 1.4.3