|
static | getQuery ($systemid, $queryid, $params=Array(), $bindValues=TRUE) |
|
static | executeGrouped ($systemid, $queryid, $params=Array()) |
|
static | executeGroupedAssoc ($systemid, $queryid, $params=Array()) |
|
static | executeAssoc ($systemid, $queryid, $col=NULL, $params=Array()) |
|
static | executeAll ($systemid, $queryid, $params=Array()) |
|
static | executeOne ($systemid, $queryid, $params=Array()) |
|
static | executeQuery ($systemid, $queryid=NULL, $params=Array()) |
|
static | preparePdoQuery ($sql) |
|
static | bindValueToPdo ($query, $name, $value, $dataType=NULL) |
|
static | bindValueToPdoByRef ($query, $name, &$value, $dataType=NULL, $maxLength=NULL) |
|
static | bindValuesToPdo ($query, $name, $value) |
|
static | quote ($value) |
|
static | getQuery ($systemid, $queryid, $bindValues=TRUE) |
|
static | getAssoc (Query $dalQuery, $col=NULL) |
|
static | getAll (Query $dalQuery) |
|
static | getOne (Query $dalQuery) |
|
static | getDALQuery ($systemid, $queryid, $method) |
|
static | getGrouped (Query $dalQuery) |
|
static | getGroupedAssoc (Query $dalQuery) |
|
static | executeGrouped ($systemid, $queryid) |
|
static | executeGroupedAssoc ($systemid, $queryid) |
|
static | executeAssoc ($systemid, $queryid, $col=NULL) |
|
static | executeAll ($systemid, $queryid) |
|
static | executeOne ($systemid, $queryid) |
|
static | executeQuery ($systemid, $queryid=NULL) |
|
static | getExecuteQuery ($systemid, $queryid=NULL) |
|
static | getExecuteAll ($systemid, $queryid) |
|
static | executeDALQuery (Query $query, $execMethod=NULL) |
|
static | execPdoQuery ($query) |
|
static | executePdoAssoc ($query, $col=NULL) |
|
static | executePdoAll ($query) |
|
static | executePdoGrouped ($query) |
|
static | executePdoGroupedAssoc ($query) |
|
static | executePdoOne ($query) |
|
static | executeSql ($sql) |
|
static | executeSqlAssoc ($sql, $col=NULL) |
|
static | executeSqlAll ($sql) |
|
static | executeSqlGrouped ($sql) |
|
static | executeSqlGroupedAssoc ($sql) |
|
static | executeSqlOne ($sql) |
|
static | executeQueries ($sql) |
|
static | query ($sql) |
|
static | beginTransaction () |
|
static | commit () |
|
static | rollBack () |
|
static | lastInsertId ($sequenceName) |
|
static | dbConnect (array &$dsn=NULL, $conn_id='db', $oci_force_new=FALSE) |
|
static | changeDb ($conn_id) |
|
static | restoreDb () |
|
static | getCurrentDbId () |
|
static | transactionSupport ($conn_id=NULL) |
|
static | dbClose ($conn_id) |
|
static | dbConnected ($conn_id=NULL) |
|
static | getDsn ($conn_id=NULL) |
|
static | getDsnFromConfig ($conn_id) |
|
static | getDbName ($conn_id) |
|
static | getDb ($conn_id=NULL) |
|
static | getDbType ($readable=FALSE, $conn_id=NULL) |
|
static | requireQueryClass ($systemid) |
|
static | getOvenPath ($system=NULL) |
|
static | getQueryStorePath () |
|
static | getQueryObject ($id) |
|
static | getSqlQueriesFromFile ($path) |
|
static | isDALQuery ($query) |
|
static | getLoggedQueries () |
|
static | clearLoggedQueries () |
|
static | setOciCommitOnSuccess ($switch) |
|
Definition at line 45 of file MatrixDAL.inc.
static bindValueToPdo |
( |
|
$query, |
|
|
|
$name, |
|
|
|
$value, |
|
|
|
$dataType = NULL |
|
) |
| |
|
static |
Bind a single variable to a PDO statement.
Bind variables are to be specified WITHOUT the leading ":". This is a change from binding directly to a PDO statement, but this keeps consistency with binding to DAL query objects.
Note that this function accepts both PDO and OCI8 statements - prepared using preparePdoQuery(), one would hope. When Oracle support is better in PDO, this function can remain, but only using the PDO functions. This allows the preparation of statements to only require DAL.
- Parameters
-
object | resource | $query | A PDO or OCI8 statement to bind to. |
string | $name | Name of the bind variable. |
- Returns
- void public
Definition at line 308 of file MatrixDAL.inc.
static bindValueToPdoByRef |
( |
|
$query, |
|
|
|
$name, |
|
|
& |
$value, |
|
|
|
$dataType = NULL , |
|
|
|
$maxLength = NULL |
|
) |
| |
|
static |
Bind a single variable to a PDO statement.
Bind variables are to be specified WITHOUT the leading ":". This is a change from binding directly to a PDO statement, but this keeps consistency with binding to DAL query objects.
Note that this function accepts both PDO and OCI8 statements - prepared using preparePdoQuery(), one would hope. When Oracle support is better in PDO, this function can remain, but only using the PDO functions. This allows the preparation of statements to only require DAL.
- Parameters
-
object | resource | $query | A PDO or OCI8 statement to bind to. |
string | $name | Name of the bind variable. |
- Returns
- void public
Definition at line 356 of file MatrixDAL.inc.
static preparePdoQuery |
( |
|
$sql | ) |
|
|
static |
Prepare SQL into a query statement.
This function is being provided to provide a central point for queries to be prepared to be sent to the executePdo* functions. This is currently different in Oracle to the other DBs, as Oracle support in PDO is not up to scratch - so we return an OCI8 statement resource instead.
When Oracle support is better in PDO, this function can remain, but only using the PDO functions. This allows the preparation of statements to only require DAL, rather than explicitly getting the database.
- Returns
- mixed object|resource public
Definition at line 273 of file MatrixDAL.inc.
Wrapper function for safe quoting.
Use of this function is discouraged - binding queries should be used where possible. However, there are some places where it is difficult to unravel old habits in Matrix. Manually wrapping in single quotes without escaping the function inside is unsafe, hence this function to replace PDO's quote() function, which fails in Oracle (and is not relevant in OCI8 functions anyway).
This alternate quoting should be safe for both Oracle and PostgreSQL, although it will only be used (in Matrix) by the former.
- Parameters
-
mixed | $value | The value to safely quote. |
- Returns
- string
Definition at line 463 of file MatrixDAL.inc.