xpdo/om/mysql/xpdoquery.class.php
- package
- xpdo
- subpackage
- om.mysql
- Classes
- xPDOQuery_mysql
Description
The MySQL implementation of xPDOQuery.
\xPDOQuery_mysql
- Extends from
- \xPDOQuery
- package
- xpdo
- subpackage
- om.mysql
- Methods
- __construct
- construct
Description
An implementation of xPDOQuery for the MySQL database engine.
Methods
__construct
__construct(
\xPDO $xpdo, $class, $criteria
=
null
)
:
\xPDOCriteria
The constructor for a new xPDOCriteria instance.
The constructor optionally prepares provided SQL and/or parameter bindings. Setting the bindings via the constructor or with the {@link xPDOCriteria::bind()} function allows you to make use of the data object caching layer.
The statement will not be prepared immediately if the cacheFlag value is true or a positive integer, in order to allow the result to be found in the cache before being queried from an actual database connection.
Arguments
- $xpdo
- \xPDO
&$xpdo An xPDO instance that will control this criteria. - $class
- $criteria
Output
Details
- visibility
- public
- final
- false
- static
- false
construct
construct(
)
:
boolean
Constructs the SQL query from the xPDOQuery definition.
Output
- boolean
- Returns true if a SQL statement was successfully constructed.
Details
- visibility
- public
- final
- false
- static
- false