"TYPO3 4.0.1: tslib_feTCE Class Reference", "datetime" => "Sat Dec 2 19:26:49 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

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

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

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

Referenced by start().

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.

Parameters:
string The database table to check
string The fieldname from the database table to search
string The value to search for.
Returns:
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)

Parameters:
integer The page id for which to clear the cache
Returns:
void
See also:
tslib_fe::set_no_cache()

Definition at line 258 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!

Parameters:
string The table name for which to create the insert statement
array Array with key/value pairs being field/values (already escaped)
Returns:
void

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

tslib_feTCE::getConf table  ) 
 

Return TypoScript configuration for a table name

Parameters:
string The table name for which to return TypoScript configuration (From TS: FEData.[table])
Returns:
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)

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

Definition at line 212 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.

Parameters:
array Input data coming from typ. $_POST['data'] vars
array TypoScript configuration for the FEDATA object, $this->config['FEData.']
Returns:
void
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: