Documentation TYPO3 par Ameos |
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) | |
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 1598 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 1598 of file fe_adminLib.inc. |
|
Creating authentication hash string based on input record and the fields listed in TypoScript property "authcodeFields"
Definition at line 1612 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Creating authentication hash string based on input record and the fields listed in TypoScript property "authcodeFields"
Definition at line 1612 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 1717 of file fe_adminLib.inc. |
|
If TypoScript property clearCacheOfPages is set then all page ids in this value will have their cache cleared
Definition at line 1717 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 1402 of file fe_adminLib.inc. References t3lib_div::testInt(). |
|
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 1402 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 1706 of file fe_adminLib.inc. References t3lib_div::makeInstance(). |
|
Creates an instance of class "t3lib_basicFileFunctions" in $this->fileFunc (if not already done)
Definition at line 1706 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 625 of file fe_adminLib.inc. References defaultValues(). |
|
Called if there is no input array in $this->dataArr. Then this function sets the default values configured in TypoScript
Definition at line 625 of file fe_adminLib.inc. Referenced by defaultValues(), and init(). |
|
Deletes the files attached to a record and updates the record. Table/uid is $this->theTable/$uid
Definition at line 914 of file fe_adminLib.inc. References t3lib_div::loadTCA(). |
|
Deletes the files attached to a record and updates the record. Table/uid is $this->theTable/$uid
Definition at line 914 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 884 of file fe_adminLib.inc. |
|
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 884 of file fe_adminLib.inc. Referenced by init(). |
|
Creates the "create" screen for records
Definition at line 999 of file fe_adminLib.inc. References t3lib_div::_GP(). |
|
Creates the "create" screen for records
Definition at line 999 of file fe_adminLib.inc. References t3lib_div::_GP(). Referenced by init(). |
|
Creates the preview display of delete actions
Definition at line 971 of file fe_adminLib.inc. |
|
Creates the preview display of delete actions
Definition at line 971 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 1073 of file fe_adminLib.inc. References t3lib_div::_GP(). |
|
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 1073 of file fe_adminLib.inc. References t3lib_div::_GP(). |
|
Creates the edit-screen for records
Definition at line 1022 of file fe_adminLib.inc. |
|
Creates the edit-screen for records
Definition at line 1022 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 644 of file fe_adminLib.inc. References $cmd, evalValues(), getFailure(), t3lib_div::inList(), t3lib_div::intval_positive(), and t3lib_div::trimExplode(). |
|
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 644 of file fe_adminLib.inc. References $cmd, getFailure(), t3lib_div::inList(), t3lib_div::intval_positive(), and t3lib_div::trimExplode(). Referenced by evalValues(), and 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 1732 of file fe_adminLib.inc. |
|
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 1732 of file fe_adminLib.inc. Referenced by evalValues(). |
|
Returns template subpart HTML code for the key given
Definition at line 1206 of file fe_adminLib.inc. |
|
Returns template subpart HTML code for the key given
Definition at line 1206 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(). |
|
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 1493 of file fe_adminLib.inc. |
|
Detects if content is HTML (looking for <html> tag as first and last in string)
Definition at line 1493 of file fe_adminLib.inc. |
|
Returns true if preview display is on.
Definition at line 1697 of file fe_adminLib.inc. |
|
Returns true if preview display is on.
Definition at line 1697 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 1223 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Modifies input array for passing on to tslib_cObj::getUpdateJS() which produces some JavaScript for form evaluation or the like.
Definition at line 1223 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 609 of file fe_adminLib.inc. References overrideValues(). |
|
Overriding values in $this->dataArr if configured for that in TypoScript ([edit/create].overrideValues)
Definition at line 609 of file fe_adminLib.inc. Referenced by init(), and overrideValues(). |
|
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 408 of file fe_adminLib.inc. References $cmd, t3lib_div::_GP(), t3lib_div::intInRange(), parseValues(), processFiles(), and t3lib_div::trimExplode(). |
|
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 408 of file fe_adminLib.inc. References $cmd, t3lib_div::_GP(), t3lib_div::intInRange(), processFiles(), and t3lib_div::trimExplode(). Referenced by init(), and parseValues(). |
|
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 1101 of file fe_adminLib.inc. References t3lib_div::_GP(), and t3lib_div::trimExplode(). |
|
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 1101 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 503 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(). |
|
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 503 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 1188 of file fe_adminLib.inc. References t3lib_div::inList(). |
|
Remove required parts from template code string Works like this:
Only fields that are found in $this->requiredArr is processed.
Definition at line 1188 of file fe_adminLib.inc. References t3lib_div::inList(). |
|
Performs the saving of records, either edited or created.
Definition at line 826 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Performs the saving of records, either edited or created.
Definition at line 826 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 1514 of file fe_adminLib.inc. References t3lib_div::makeInstance(), and t3lib_div::makeInstanceClassName(). |
|
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 1514 of file fe_adminLib.inc. References t3lib_div::makeInstance(), and t3lib_div::makeInstanceClassName(). |
|
Sends info mail to user
Definition at line 1354 of file fe_adminLib.inc. References t3lib_div::_GP(), and t3lib_div::testInt(). |
|
Sends info mail to user
Definition at line 1354 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 1448 of file fe_adminLib.inc. |
|
Actually sends the requested mails (through $this->cObj->sendNotifyEmail)
Definition at line 1448 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 1292 of file fe_adminLib.inc. References t3lib_div::makeInstance(). |
|
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 1292 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 1638 of file fe_adminLib.inc. |
|
Adding keys to the marker array with "setfixed" GET parameters
Definition at line 1638 of file fe_adminLib.inc. Referenced by init(). |
|
Creating hash string for setFixed. Much similar to authCode()
Definition at line 1676 of file fe_adminLib.inc. References t3lib_div::trimExplode(). |
|
Creating hash string for setFixed. Much similar to authCode()
Definition at line 1676 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 766 of file fe_adminLib.inc. |
|
Preforms user processing of input array - triggered right after the function call to evalValues() IF TypoScript property "evalFunc" was set.
Definition at line 766 of file fe_adminLib.inc. Referenced by init(). |
|
User processing of contnet
Definition at line 784 of file fe_adminLib.inc. |
|
User processing of contnet
Definition at line 784 of file fe_adminLib.inc. |