Solutions Open Source

Référence de la classe tslib_feTCE

Liste de tous les membres

Fonctions membres publiques

 start ($data, $FEData)
 checkDoublePostExist ($table, $doublePostField, $key)
 calcDoublePostKey ($array)
 includeScripts ()
 execNEWinsert ($table, $dataArr)
 clear_cacheCmd ($cacheCmd)
 getConf ($table)

Attributs publics

 $extScripts = array()
 $extScriptsConf = array()
 $newData = array()
 $extraList = 'pid'


Documentation des fonctions membres

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.

Paramètres:
array Input data coming from typ. $_POST['data'] vars
array TypoScript configuration for the FEDATA object, $this->config['FEData.']
Renvoie:
void
Voir également:
tslib_fe::fe_tce(), includeScripts()

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.

Paramètres:
string The database table to check
string The fieldname from the database table to search
string The value to search for.
Renvoie:
integer The number of found rows. If zero then no "double-post" was found and its all OK. private

tslib_feTCE::calcDoublePostKey ( array  ) 

Creates the double-post hash value from the input array

Paramètres:
array The array with key/values to hash
Renvoie:
integer And unsigned 32bit integer hash private

tslib_feTCE::includeScripts (  ) 

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

Renvoie:
void
Voir également:
tslib_fe::fe_tce(), includeScripts()

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!

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

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)

Paramètres:
integer The page id for which to clear the cache
Renvoie:
void
Voir également:
tslib_fe::set_no_cache()

tslib_feTCE::getConf ( table  ) 

Return TypoScript configuration for a table name

Paramètres:
string The table name for which to return TypoScript configuration (From TS: FEData.[table])
Renvoie:
array TypoScript properties from FEData.[table] - if exists.


Documentation des données membres

tslib_feTCE::$extScripts = array()

tslib_feTCE::$extScriptsConf = array()

tslib_feTCE::$newData = array()

tslib_feTCE::$extraList = 'pid'


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:43:19 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3