"TYPO3 4.0.1: user_feAdmin Class Reference", "datetime" => "Sat Dec 2 19:27:29 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
init ($content, $conf) | |
parseValues () | |
processFiles ($cmdParts, $theField) | |
overrideValues () | |
defaultValues () | |
evalValues () | |
userProcess ($mConfKey, $passVar) | |
userProcess_alt ($confVal, $confArr, $passVar) | |
save () | |
deleteRecord () | |
deleteFilesFromRecord ($uid) | |
displayDeleteScreen () | |
displayCreateScreen () | |
displayEditScreen () | |
displayEditForm ($origArr) | |
procesSetFixed () | |
removeRequired ($templateCode, $failure) | |
getPlainTemplate ($key, $r='') | |
modifyDataArrForFormUpdate ($inputArr) | |
setCObjects ($templateCode, $currentArr=array(), $markerArray='', $specialPrefix='') | |
sendInfoMail () | |
compileMail ($key, $DBrows, $recipient, $setFixedConfig=array()) | |
sendMail ($recipient, $admin, $content='', $adminContent='') | |
isHTMLContent ($c) | |
sendHTMLMail ($content, $recipient, $dummy, $fromEmail, $fromName, $replyTo='') | |
aCAuth ($r) | |
authCode ($r, $extra='') | |
setfixed ($markerArray, $setfixed, $r) | |
setfixedHash ($recCopy, $fields='') | |
isPreview () | |
createFileFuncObj () | |
clearCacheIfSet () | |
getFailure ($theField, $theCmd, $label) | |
Public Attributes | |
$recInMarkersHSC = TRUE | |
$dataArr = array() | |
$failureMsg = array() | |
$theTable = '' | |
$thePid = 0 | |
$markerArray = array() | |
$templateCode = '' | |
$cObj | |
$cmd | |
$preview | |
$backURL | |
$recUid | |
$failure = 0 | |
$error = '' | |
$saved = 0 | |
$requiredArr | |
$currentArr = array() | |
$previewLabel = '' | |
$nc = '' | |
$additionalUpdateFields = '' | |
$emailMarkPrefix = 'EMAIL_TEMPLATE_' | |
$codeLength | |
$cmdKey | |
$fileFunc = '' | |
$filesStoredInUploadFolders = array() | |
$unlinkTempFiles = array() |
Definition at line 132 of file fe_adminLib.inc.
|
Returns true if authentication is OK based on the "aC" code which is a GET parameter set from outside with a hash string which must match some internal hash string. This allows to authenticate editing without having a fe_users login Uses $this->authCode which is set in init() by "t3lib_div::_GP('aC');"
Definition at line 1615 of file fe_adminLib.inc. |
|
Creating authentication hash string based on input record and the fields listed in TypoScript property "authcodeFields"
Definition at line 1629 of file fe_adminLib.inc. References t3lib_div::trimExplode(). Referenced by init(). |
|
If TypoScript property clearCacheOfPages is set then all page ids in this value will have their cache cleared
Definition at line 1734 of file fe_adminLib.inc. Referenced by init(). |
|
Compiles and sends a mail based on input values + template parts. Looks for a normal and an "-admin" template and may send both kinds of emails. See documentation in TSref.
Definition at line 1419 of file fe_adminLib.inc. References t3lib_div::testInt(). Referenced by init(). |
|
Creates an instance of class "t3lib_basicFileFunctions" in $this->fileFunc (if not already done)
Definition at line 1723 of file fe_adminLib.inc. References t3lib_div::makeInstance(). Referenced by processFiles(). |
|
Called if there is no input array in $this->dataArr. Then this function sets the default values configured in TypoScript
Definition at line 640 of file fe_adminLib.inc. Referenced by init(). |
|
Deletes the files attached to a record and updates the record. Table/uid is $this->theTable/$uid
Definition at line 929 of file fe_adminLib.inc. References t3lib_div::loadTCA(). |
|
Deletes the record from table/uid, $this->theTable/$this->recUid, IF the fe-user has permission to do so. If the deleted flag should just be set, then it is done so. Otherwise the record truely is deleted along with any attached files. Called from init() if "cmd" was set to "delete" (and some other conditions)
Definition at line 899 of file fe_adminLib.inc. Referenced by init(). |
|
Creates the "create" screen for records
Definition at line 1014 of file fe_adminLib.inc. References t3lib_div::_GP(). Referenced by init(). |
|
Creates the preview display of delete actions
Definition at line 986 of file fe_adminLib.inc. Referenced by init(). |
|
Subfunction for displayEditScreen(); Takes a record and creates an edit form based on the template code for it. This function is called if the user is editing a record and permitted to do so. Checked in displayEditScreen()
Definition at line 1088 of file fe_adminLib.inc. References t3lib_div::_GP(). |
|
Creates the edit-screen for records
Definition at line 1037 of file fe_adminLib.inc. Referenced by init(). |
|
This will evaluate the input values from $this->dataArr to see if they conforms with the requirements configured in TypoScript per field. For example this could be checking if a field contains a valid email address, a unique value, a value within a certain range etc. It will populate arrays like $this->failure and $this->failureMsg with error messages (which can later be displayed in the template). Mostly it does NOT alter $this->dataArr (such parsing of values was done by parseValues()) Works based on configuration in TypoScript key [create/edit].evalValues
Definition at line 659 of file fe_adminLib.inc. References $cmd, getFailure(), t3lib_div::inList(), t3lib_div::intval_positive(), and t3lib_div::trimExplode(). Referenced by init(). |
|
Returns an error message for the field/command combination inputted. The error message is looked up in the TypoScript properties (evalErrors.[fieldname].[command]) and if empty then the $label value is returned
Definition at line 1749 of file fe_adminLib.inc. Referenced by evalValues(). |
|
Returns template subpart HTML code for the key given
Definition at line 1223 of file fe_adminLib.inc. |
|
Main function. Called from TypoScript. This
Definition at line 179 of file fe_adminLib.inc. References $markerArray, $templateCode, t3lib_div::_GP(), authCode(), clearCacheIfSet(), compileMail(), defaultValues(), deleteRecord(), displayCreateScreen(), displayDeleteScreen(), displayEditScreen(), evalValues(), t3lib_div::getIndpEnv(), overrideValues(), parseValues(), procesSetFixed(), save(), sendInfoMail(), setCObjects(), setfixed(), t3lib_div::trimExplode(), t3lib_div::unlink_tempfile(), and userProcess(). |
|
Detects if content is HTML (looking for <html> tag as first and last in string)
Definition at line 1510 of file fe_adminLib.inc. |
|
Returns true if preview display is on.
Definition at line 1714 of file fe_adminLib.inc. Referenced by processFiles(). |
|
Modifies input array for passing on to tslib_cObj::getUpdateJS() which produces some JavaScript for form evaluation or the like.
Definition at line 1240 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Overriding values in $this->dataArr if configured for that in TypoScript ([edit/create].overrideValues)
Definition at line 624 of file fe_adminLib.inc. Referenced by init(). |
|
Performs processing on the values found in the input data array, $this->dataArr. The processing is done according to configuration found in TypoScript Examples of this could be to force a value to an integer, remove all non-alphanumeric characters, trimming a value, upper/lowercase it, or process it due to special types like files submitted etc. Called from init() if the $this->dataArr is found to be an array
Definition at line 423 of file fe_adminLib.inc. References $cmd, t3lib_div::_GP(), t3lib_div::intInRange(), processFiles(), and t3lib_div::trimExplode(). Referenced by init(). |
|
Processes socalled "setfixed" commands. These are commands setting a certain field in a certain record to a certain value. Like a link you can click in an email which will unhide a record to enable something. Or likewise a link which can delete a record by a single click. The idea is that only some allowed actions like this is allowed depending on the configured TypoScript.
Definition at line 1116 of file fe_adminLib.inc. References t3lib_div::_GP(), and t3lib_div::trimExplode(). Referenced by init(). |
|
Processing of files. NOTICE: for now files can be handled only on creation of records. But a more advanced feature is that PREVIEW of files is handled.
Definition at line 518 of file fe_adminLib.inc. References createFileFuncObj(), isPreview(), t3lib_div::loadTCA(), t3lib_div::trimExplode(), t3lib_div::upload_copy_move(), t3lib_div::upload_to_tempfile(), and t3lib_div::verifyFilenameAgainstDenyPattern(). Referenced by parseValues(). |
|
Remove required parts from template code string Works like this:
Only fields that are found in $this->requiredArr is processed.
Definition at line 1205 of file fe_adminLib.inc. References t3lib_div::inList(). |
|
Performs the saving of records, either edited or created.
Definition at line 841 of file fe_adminLib.inc. References t3lib_div::trimExplode(). Referenced by init(). |
|
Sending HTML email, using same parameters as tslib_cObj::sendNotifyEmail() NOTICE: "t3lib_htmlmail" library must be included for this to work, otherwise an error message is outputted.
Definition at line 1531 of file fe_adminLib.inc. References t3lib_div::makeInstance(), and t3lib_div::makeInstanceClassName(). |
|
Sends info mail to user
Definition at line 1371 of file fe_adminLib.inc. References t3lib_div::_GP(), and t3lib_div::testInt(). Referenced by init(). |
|
Actually sends the requested mails (through $this->cObj->sendNotifyEmail)
Definition at line 1465 of file fe_adminLib.inc. |
|
Will render TypoScript cObjects (configured in $this->conf['cObjects.']) and add their content to keys in a markerArray, either the array passed to the function or the internal one ($this->markerArray) if the input $markerArray is not set.
Definition at line 1309 of file fe_adminLib.inc. References t3lib_div::makeInstance(). Referenced by init(). |
|
Adding keys to the marker array with "setfixed" GET parameters
Definition at line 1655 of file fe_adminLib.inc. Referenced by init(). |
|
Creating hash string for setFixed. Much similar to authCode()
Definition at line 1693 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Preforms user processing of input array - triggered right after the function call to evalValues() IF TypoScript property "evalFunc" was set.
Definition at line 781 of file fe_adminLib.inc. Referenced by init(). |
|
User processing of contnet
Definition at line 799 of file fe_adminLib.inc. |