Documentation TYPO3 par Ameos

tslib_feTCE Class Reference

List of all members.

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'

Detailed Description

Definition at line 83 of file class.tslib_fetce.php.

Member Function Documentation

tslib_feTCE::calcDoublePostKey array  ) 

Creates the double-post hash value from the input array

array The array with key/values to hash
integer And unsigned 32bit integer hash private

Definition at line 200 of file class.tslib_fetce.php.

Referenced by start().

tslib_feTCE::checkDoublePostExist table,

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.
integer The number of found rows. If zero then no "double-post" was found and its all OK. private

Definition at line 187 of file class.tslib_fetce.php.

Referenced by start().

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
See also:

Definition at line 258 of file class.tslib_fetce.php.

tslib_feTCE::execNEWinsert table,

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 232 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])
array TypoScript properties from FEData.[table] - if exists.

Definition at line 274 of file class.tslib_fetce.php.

tslib_feTCE::includeScripts  ) 

Includes the submit scripts found in ->extScripts (filled in by the start() function)

See also:
tslib_fe::fe_tce(), includeScripts()

Definition at line 212 of file class.tslib_fetce.php.

tslib_feTCE::start data,

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.']
See also:
tslib_fe::fe_tce(), includeScripts()

Definition at line 100 of file class.tslib_fetce.php.

References calcDoublePostKey(), checkDoublePostExist(), and t3lib_div::loadTCA().

The documentation for this class was generated from the following file:

Généré par L'expert TYPO3 avec  doxygen 1.4.6