xpdo/om/sqlsrv/xpdoquery.class.php
- package
- xpdo
- subpackage
- om.sqlsrv
- Classes
- xPDOQuery_sqlsrv
Description
The sqlsrv implementation of xPDOQuery.
\xPDOQuery_sqlsrv
- Extends from
- \xPDOQuery
- package
- xpdo
- subpackage
- om.sqlsrv
- Methods
- __construct
- construct
- parseConditions
Description
An implementation of xPDOQuery for the sqlsrv database driver.
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
parseConditions
parseConditions(
mixed $conditions, string $conjunction
=
xPDOQuery
)
:
Parses an xPDO condition expression.
Arguments
- $conditions
- mixed
A valid xPDO condition expression. - $conjunction
- string
The optional conjunction for the condition( s ).
Details
- visibility
- public
- final
- false
- static
- false