Documentation TYPO3 par Ameos |
Public Member Functions | |
| start ($data, $FEData) | |
| checkDoublePostExist ($table, $doublePostField, $key) | |
| calcDoublePostKey ($array) | |
| includeScripts () | |
| execNEWinsert ($table, $dataArr) | |
| clear_cacheCmd ($cacheCmd) | |
| getConf ($table) | |
Public Attributes | |
| $extScripts = array() | |
| $extScriptsConf = array() | |
| $newData = array() | |
| $extraList = 'pid' | |
Definition at line 83 of file class.tslib_fetce.php.
| tslib_feTCE::start | ( | $ | data, | |
| $ | FEData | |||
| ) |
Starting the processing of user input. Traverses the input data and fills in the array, $this->extScripts with references to files which are then included by includeScripts() (called AFTER start() in tslib_fe) These scripts will then put the content into the database.
| array | Input data coming from typ. $_POST['data'] vars | |
| array | TypoScript configuration for the FEDATA object, $this->config['FEData.'] |
Definition at line 100 of file class.tslib_fetce.php.
References calcDoublePostKey(), checkDoublePostExist(), and t3lib_div::loadTCA().
| tslib_feTCE::checkDoublePostExist | ( | $ | table, | |
| $ | doublePostField, | |||
| $ | key | |||
| ) |
Checking if a "double-post" exists already. "Double-posting" is if someone refreshes a page with a form for the message board or guestbook and thus submits the element twice. Checking for double-posting prevents the second submission from being stored. This is done by saving the first record with a MD5 hash of the content - if this hash exists already, the record cannot be saved.
| string | The database table to check | |
| string | The fieldname from the database table to search | |
| string | The value to search for. |
Definition at line 187 of file class.tslib_fetce.php.
Referenced by start().
| tslib_feTCE::calcDoublePostKey | ( | $ | array | ) |
Creates the double-post hash value from the input array
| array | The array with key/values to hash |
Definition at line 201 of file class.tslib_fetce.php.
Referenced by start().
| tslib_feTCE::includeScripts | ( | ) |
Includes the submit scripts found in ->extScripts (filled in by the start() function)
Definition at line 213 of file class.tslib_fetce.php.
| tslib_feTCE::execNEWinsert | ( | $ | table, | |
| $ | dataArr | |||
| ) |
Method available to the submit scripts for creating insert queries. Automatically adds tstamp, crdate, cruser_id field/value pairs. Will allow only field names which are either found in $TCA[...][columns] OR in the $this->extraList Executes an insert query!
| string | The table name for which to create the insert statement | |
| array | Array with key/value pairs being field/values (already escaped) |
Definition at line 233 of file class.tslib_fetce.php.
| tslib_feTCE::clear_cacheCmd | ( | $ | cacheCmd | ) |
Clear cache for page id. If the page id is the current page, then set_no_cache() is called (so page caching is disabled)
| integer | The page id for which to clear the cache |
Definition at line 259 of file class.tslib_fetce.php.
| tslib_feTCE::getConf | ( | $ | table | ) |
Return TypoScript configuration for a table name
| string | The table name for which to return TypoScript configuration (From TS: FEData.[table]) |
Definition at line 275 of file class.tslib_fetce.php.
1.4.6