|
TYPO3 API
SVNRelease
|


Public Member Functions | |
| __construct () | |
| init ($config, $pObj) | |
| resetStatusVars () | |
| processAccordingToConfig (&$value, $fInfo) | |
| exec_INSERTquery ($table, $fields_values) | |
| exec_UPDATEquery ($table, $where, $fields_values) | |
| exec_DELETEquery ($table, $where) | |
| exec_SELECTquery ($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit) | |
| sql_query ($query) | |
| sql_error () | |
| sql_insert_id () | |
| sql_affected_rows () | |
| quoteStr ($str) | |
| admin_get_tables () | |
| admin_get_fields ($tableName) | |
| admin_get_keys ($tableName) | |
| admin_query ($query) | |
| readDataSource ($table) | |
| saveDataSource ($table) | |
| selectFromData ($table, $where) | |
| select_evalSingle ($table, $config, &$itemKeys) | |
| getResultSet ($keys, $table, $fieldList) | |
| debug_printResultSet ($array) | |
Public Attributes | |
| $data = array() | |
| $errorStatus = '' | |
| $lastInsertedId = 0 | |
| $lastAffectedRows = 0 | |
Definition at line 98 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::__construct | ( | ) |
Constrcutor
Definition at line 113 of file class.t3lib_sqlengine.php.
References t3lib_div\deprecationLog().
| t3lib_sqlengine::admin_get_fields | ( | $ | tableName | ) |
(DUMMY) Returns information about each field in the $table
| string | Table name |
Definition at line 504 of file class.t3lib_sqlengine.php.
Referenced by exec_INSERTquery(), and exec_UPDATEquery().
| t3lib_sqlengine::admin_get_keys | ( | $ | tableName | ) |
(DUMMY) Returns information about each index key in the $table
| string | Table name |
Definition at line 515 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::admin_get_tables | ( | ) |
(DUMMY) Returns the list of tables from the database
Definition at line 493 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::admin_query | ( | $ | query | ) |
(DUMMY) mysql() wrapper function, used by the Install Tool and EM for all queries regarding management of the database!
| string | Query to execute |
Definition at line 526 of file class.t3lib_sqlengine.php.
References $query, and sql_query().
| t3lib_sqlengine::debug_printResultSet | ( | $ | array | ) |
Returns the result set (in array) as HTML table. For debugging.
| array | Result set array (array of rows) |
Definition at line 772 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::exec_DELETEquery | ( | $ | table, |
| $ | where | ||
| ) |
Execute DELETE query
| string | Table to delete from |
| string | WHERE clause |
Definition at line 334 of file class.t3lib_sqlengine.php.
References t3lib_sqlparser\parseWhereClause(), readDataSource(), resetStatusVars(), saveDataSource(), and selectFromData().
| t3lib_sqlengine::exec_INSERTquery | ( | $ | table, |
| $ | fields_values | ||
| ) |
Execute an INSERT query
| string | Table name |
| array | Field values as key=>value pairs. |
Definition at line 199 of file class.t3lib_sqlengine.php.
References admin_get_fields(), processAccordingToConfig(), readDataSource(), resetStatusVars(), and saveDataSource().
| t3lib_sqlengine::exec_SELECTquery | ( | $ | select_fields, |
| $ | from_table, | ||
| $ | where_clause, | ||
| $ | groupBy, | ||
| $ | orderBy, | ||
| $ | limit | ||
| ) |
Execute SELECT query
| string | List of fields to select from the table. This is what comes right after "SELECT ...". Required value. |
| string | Table(s) from which to select. This is what comes right after "FROM ...". Required value. |
| string | Optional additional WHERE clauses put in the end of the query. NOTICE: You must escape values in this argument with $this->fullQuoteStr() yourself! DO NOT PUT IN GROUP BY, ORDER BY or LIMIT! |
| string | Optional GROUP BY field(s), if none, supply blank string. |
| string | Optional ORDER BY field(s), if none, supply blank string. |
| string | Optional LIMIT value ([begin,]max), if none, supply blank string. |
Definition at line 389 of file class.t3lib_sqlengine.php.
References getResultSet(), t3lib_div\makeInstance(), t3lib_sqlparser\parseFromTables(), t3lib_sqlparser\parseWhereClause(), readDataSource(), resetStatusVars(), and selectFromData().
| t3lib_sqlengine::exec_UPDATEquery | ( | $ | table, |
| $ | where, | ||
| $ | fields_values | ||
| ) |
Execute UPDATE query on table
| string | Table name |
| string | WHERE clause |
| array | Field values as key=>value pairs. |
Definition at line 271 of file class.t3lib_sqlengine.php.
References admin_get_fields(), t3lib_sqlparser\parseWhereClause(), processAccordingToConfig(), readDataSource(), resetStatusVars(), saveDataSource(), and selectFromData().
| t3lib_sqlengine::getResultSet | ( | $ | keys, |
| $ | table, | ||
| $ | fieldList | ||
| ) |
Returning result set based on result keys, table and field list
| array | Result keys |
| string | Tablename |
| string | Fieldlist (commaseparated) |
Definition at line 742 of file class.t3lib_sqlengine.php.
References t3lib_div\trimExplode().
Referenced by exec_SELECTquery().
| t3lib_sqlengine::init | ( | $ | config, |
| $ | pObj | ||
| ) |
Dummy function for initializing SQL handler. Create you own in derived classes.
| array | Configuration array from handler |
| object | Parent object |
Definition at line 125 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::processAccordingToConfig | ( | &$ | value, |
| $ | fInfo | ||
| ) |
Processing of update/insert values based on field type.
The input value is typecast and trimmed/shortened according to the field type and the configuration options from the $fInfo parameter.
| mixed | $value | The input value to process |
| array | $fInfo | Field configuration data |
Definition at line 149 of file class.t3lib_sqlengine.php.
References $value, t3lib_div\intInRange(), and t3lib_sqlparser\parseFieldDef().
Referenced by exec_INSERTquery(), and exec_UPDATEquery().
| t3lib_sqlengine::quoteStr | ( | $ | str | ) |
Quoting strings for insertion in SQL queries
| string | Input String |
Definition at line 475 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::readDataSource | ( | $ | table | ) |
Dummy function for setting table data. Create your own. NOTICE: Handler to "table-locking" needs to be made probably!
| string | Table name |
Definition at line 545 of file class.t3lib_sqlengine.php.
Referenced by exec_DELETEquery(), exec_INSERTquery(), exec_SELECTquery(), and exec_UPDATEquery().
| t3lib_sqlengine::resetStatusVars | ( | ) |
Reset SQL engine status variables (insert id, affected rows, error status)
Definition at line 133 of file class.t3lib_sqlengine.php.
Referenced by exec_DELETEquery(), exec_INSERTquery(), exec_SELECTquery(), and exec_UPDATEquery().
| t3lib_sqlengine::saveDataSource | ( | $ | table | ) |
Dummy function for setting table data. Create your own. NOTICE: Handler to "table-locking" needs to be made probably!
| string | Table name |
Definition at line 557 of file class.t3lib_sqlengine.php.
References debug().
Referenced by exec_DELETEquery(), exec_INSERTquery(), and exec_UPDATEquery().
| t3lib_sqlengine::select_evalSingle | ( | $ | table, |
| $ | config, | ||
| &$ | itemKeys | ||
| ) |
Evalutaion of a WHERE-clause-array. Yet EXPERIMENTAL
| string | Tablename |
| array | WHERE-configuration array |
| array | Data array to work on. |
Definition at line 617 of file class.t3lib_sqlengine.php.
References selectFromData().
Referenced by selectFromData().
| t3lib_sqlengine::selectFromData | ( | $ | table, |
| $ | where | ||
| ) |
PHP simulation of SQL "SELECT" Yet EXPERIMENTAL!
| string | Table name |
| array | Where clause parsed into array |
Definition at line 576 of file class.t3lib_sqlengine.php.
References select_evalSingle().
Referenced by exec_DELETEquery(), exec_SELECTquery(), exec_UPDATEquery(), and select_evalSingle().
| t3lib_sqlengine::sql_affected_rows | ( | ) |
Returns affected rows (of UPDATE and DELETE queries)
Definition at line 465 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::sql_error | ( | ) |
Returns most recent error
Definition at line 447 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::sql_insert_id | ( | ) |
Returns most recently create unique ID (of INSERT queries)
Definition at line 456 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::sql_query | ( | $ | query | ) |
Performs an SQL query on the "database"
| string | Query to execute |
Definition at line 436 of file class.t3lib_sqlengine.php.
References $res, and t3lib_div\makeInstance().
Referenced by admin_query().
| t3lib_sqlengine::$data = array() |
Definition at line 101 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::$errorStatus = '' |
Definition at line 105 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::$lastAffectedRows = 0 |
Definition at line 107 of file class.t3lib_sqlengine.php.
| t3lib_sqlengine::$lastInsertedId = 0 |
Definition at line 106 of file class.t3lib_sqlengine.php.
1.7.5.1