![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
setControl (array $control) | |
start ($data, $cmd, $altUserObject=null) | |
setMirror ($mirror) | |
setDefaultsFromUserTS ($userTS) | |
process_uploads ($postFiles) | |
process_uploads_traverseArray (&$outputArr, $inputArr, $keyToSet) | |
hook_processDatamap_afterDatabaseOperations (&$hookObjectsArr, &$status, &$table, &$id, &$fieldArray) | |
placeholderShadowing ($table, $id) | |
getPlaceholderTitleForTableLabel ($table, $placeholderContent=null) | |
fillInFieldArray ($table, $id, $fieldArray, $incomingFieldArray, $realPid, $status, $tscPID) | |
checkValue ($table, $field, $value, $id, $status, $realPid, $tscPID) | |
checkValue_SW ($res, $value, $tcaFieldConf, $table, $id, $curValue, $status, $realPid, $recFID, $field, $uploadedFiles, $tscPID, array $additionalData=null) | |
checkValue_text ($res, $value, $tcaFieldConf, $PP, $field= '') | |
checkValue_input ($res, $value, $tcaFieldConf, $PP, $field= '') | |
checkValue_check ($res, $value, $tcaFieldConf, $PP, $field= '') | |
checkValue_radio ($res, $value, $tcaFieldConf, $PP) | |
checkValue_group_select ($res, $value, $tcaFieldConf, $PP, $uploadedFiles, $field) | |
checkValue_flex ($res, $value, $tcaFieldConf, $PP, $uploadedFiles, $field) | |
checkValue_inline ($res, $value, $tcaFieldConf, $PP, $field, array $additionalData=null) | |
checkValueForInline ($res, $value, $tcaFieldConf, $table, $id, $status, $field, array $additionalData=null) | |
checkValue_checkMax ($tcaFieldConf, $valueArray) | |
getUnique ($table, $field, $value, $id, $newPid=0) | |
getRecordsWithSameValue ($tableName, $uid, $fieldName, $value, $pageId=0) | |
checkValue_text_Eval ($value, $evalArray, $is_in) | |
checkValue_input_Eval ($value, $evalArray, $is_in) | |
checkValue_group_select_explodeSelectGroupValue ($value) | |
checkValue_flex_procInData ($dataPart, $dataPart_current, $uploadedFiles, $dataStructArray, $pParams, $callBackFunc= '') | |
checkValue_flex_procInData_travDS (&$dataValues, $dataValues_current, $uploadedFiles, $DSelements, $pParams, $callBackFunc, $structurePath) | |
copyPages ($uid, $destPid) | |
copySpecificPage ($uid, $destPid, $copyTablesArray, $first=false) | |
copyRecord_raw ($table, $uid, $pid, $overrideArray=array(), array $workspaceOptions=array()) | |
insertNewCopyVersion ($table, $fieldArray, $realPid) | |
copyRecord_procBasedOnFieldType ($table, $uid, $field, $value, $row, $conf, $realDestPid, $language=0, array $workspaceOptions=array()) | |
copyRecord_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
copyL10nOverlayRecords ($table, $uid, $destPid, $first=false, $overrideValues=array(), $excludeFields= '') | |
moveRecord ($table, $uid, $destPid) | |
moveRecord_raw ($table, $uid, $destPid) | |
moveRecord_procFields ($table, $uid, $destPid) | |
moveRecord_procBasedOnFieldType ($table, $uid, $destPid, $field, $value, $conf) | |
moveL10nOverlayRecords ($table, $uid, $destPid, $originalRecordDestinationPid) | |
deleteAction ($table, $id) | |
deleteEl ($table, $uid, $noRecordCheck=false, $forceHardDelete=false) | |
deleteVersionsForRecord ($table, $uid, $forceHardDelete) | |
undeleteRecord ($table, $uid) | |
deleteRecord ($table, $uid, $noRecordCheck=false, $forceHardDelete=false, $undeleteRecord=false) | |
deleteSpecificPage ($uid, $forceHardDelete=false) | |
canDeletePage ($uid) | |
cannotDeleteRecord ($table, $id) | |
isRecordUndeletable ($table, $uid) | |
deleteRecord_procFields ($table, $uid, $undeleteRecord=false) | |
deleteL10nOverlayRecords ($table, $uid) | |
versionizeRecord ($table, $id, $label, $delete=false) | |
version_remapMMForVersionSwap_execSwap ($table, $id, $swapWith) | |
remapListedDBRecords () | |
remapListedDBRecords_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
remapListedDBRecords_procDBRefs ($conf, $value, $MM_localUid, $table) | |
processRemapStack () | |
addRemapAction ($table, $id, array $callback, array $arguments) | |
addRemapStackRefIndex ($table, $id) | |
getVersionizedIncomingFieldArray ($table, $id, &$incomingFieldArray, &$registerDBList) | |
isRecordInWebMount ($table, $id) | |
isInWebMount ($pid) | |
checkRecordUpdateAccess ($table, $id, $data=false, $hookObjectsArr=null) | |
checkRecordInsertAccess ($insertTable, $pid, $action=1) | |
isTableAllowedForThisPage ($page_uid, $checkTable) | |
doesRecordExist ($table, $id, $perms) | |
doesRecordExist_pageLookUp ($id, $perms) | |
doesBranchExist ($inList, $pid, $perms, $recurse) | |
tableReadOnly ($table) | |
tableAdminOnly ($table) | |
destNotInsideSelf ($destinationId, $id) | |
getExcludeListArray () | |
doesPageHaveUnallowedTables ($page_uid, $doktype) | |
pageInfo ($id, $field) | |
recordInfo ($table, $id, $fieldList) | |
getRecordProperties ($table, $id, $noWSOL=false) | |
getRecordPropertiesFromRow ($table, $row) | |
eventPid ($table, $uid, $pid) | |
updateDB ($table, $id, $fieldArray) | |
insertDB ($table, $id, $fieldArray, $newVersion=false, $suggestedUid=0, $dontSetNewIdIndex=false) | |
checkStoredRecord ($table, $id, $fieldArray, $action) | |
setHistory ($table, $id, $logId) | |
getSortNumber ($table, $uid, $pid) | |
resorting ($table, $pid, $sortRow, $return_SortNumber_After_This_Uid) | |
setTSconfigPermissions ($fieldArray, $TSConfig_p) | |
newFieldArray ($table) | |
addDefaultPermittedLanguageIfNotSet ($table, &$incomingFieldArray) | |
overrideFieldArray ($table, $data) | |
compareFieldArrayWithCurrentAndUnset ($table, $id, $fieldArray) | |
assemblePermissions ($string) | |
rmComma ($input) | |
convNumEntityToByteValue ($input) | |
destPathFromUploadFolder ($folder) | |
disableDeleteClause () | |
deleteClause ($table) | |
getTCEMAIN_TSconfig ($tscPID) | |
getTableEntries ($table, $TSconfig) | |
getPID ($table, $uid) | |
dbAnalysisStoreExec () | |
removeRegisteredFiles () | |
int_pageTreeInfo ($CPtable, $pid, $counter, $rootID) | |
compileAdminTables () | |
fixUniqueInPid ($table, $uid) | |
fixCopyAfterDuplFields ($table, $uid, $prevUid, $update, $newData=array()) | |
extFileFields ($table) | |
isReferenceField ($conf) | |
getInlineFieldType ($conf) | |
getCopyHeader ($table, $pid, $field, $value, $count, $prevTitle= '') | |
prependLabel ($table) | |
resolvePid ($table, $pid) | |
clearPrefixFromValue ($table, $value) | |
extFileFunctions ($table, $field, $filelist, $func) | |
noRecordsFromUnallowedTables ($inList) | |
isRecordCopied ($table, $uid) | |
registerRecordIdForPageCacheClearing ($table, $uid) | |
clear_cacheCmd ($cacheCmd) | |
log ($table, $recuid, $action, $recpid, $error, $details, $details_nr=-1, $data=array(), $event_pid=-1, $NEWid= '') | |
newlog ($message, $error=0) | |
newlog2 ($message, $table, $uid, $pid=null, $error=0) | |
insertUpdateDB_preprocessBasedOnFieldType ($table, $fieldArray) | |
getAutoVersionId ($table, $id) | |
isOuterMostInstance () | |
Protected Member Functions | |
getCheckModifyAccessListHookObjects () | |
transformRichtextContentToDatabase ($value, $table, $field, $defaultExtras, $thisConfig, $pid) | |
checkValueForText ($value, $tcaFieldConf) | |
checkValueForInput ($value, $tcaFieldConf, $table, $id, $realPid, $field) | |
checkValueForCheck ($res, $value, $tcaFieldConf, $table, $id, $realPid, $field) | |
checkValueForRadio ($res, $value, $tcaFieldConf, $table, $id, $pid, $field) | |
checkValueForGroupSelect ($res, $value, $tcaFieldConf, $table, $id, $curValue, $status, $recFID, $uploadedFiles, $field) | |
applyFiltersToValues (array $tcaFieldConfiguration, array $values) | |
checkValueForFlex ($res, $value, $tcaFieldConf, $table, $id, $curValue, $status, $realPid, $recFID, $tscPID, $uploadedFiles, $field) | |
_ACTION_FLEX_FORMdata (&$valueArray, $actionCMDs) | |
getLocalTCE ($stripslashesValues=false, $dontProcessTransformations=true) | |
updateFlexFormData ($flexFormId, array $modifications) | |
triggerRemapAction ($table, $id, array $callback, array $arguments, $forceRemapStackActions=false) | |
getPreviousLocalizedRecordUid ($table, $uid, $pid, $language) | |
isSubmittedValueEqualToStoredValue ($submittedValue, $storedValue, $storedType, $allowNull=false) | |
castReferenceValue ($value, array $configuration) | |
overlayAutoVersionId ($table, $id) | |
addNewValuesToRemapStackChildIds (array $idValues) | |
getOuterMostInstance () | |
getRuntimeCache () | |
isNestedElementCallRegistered ($table, $id, $identifier) | |
registerNestedElementCall ($table, $id, $identifier) | |
resetNestedElementCalls () | |
isElementToBeDeleted ($table, $id) | |
registerElementsToBeDeleted () | |
resetElementsToBeDeleted () | |
unsetElementsToBeDeleted (array $elements) | |
getCommandMapElements ($needle) | |
controlActiveElements () | |
setNullValues (array $active, array &$haystack) | |
getFieldEvalCacheIdentifier ($additionalIdentifier) | |
createRelationHandlerInstance () | |
getCacheManager () | |
getResourceFactory () | |
Protected Attributes | |
$excludedTablesAndFields = array() | |
$control = array() | |
$mmHistoryRecords = array() | |
$historyRecords = array() | |
$remapStackChildIds = array() | |
$remapStackActions = array() | |
$remapStackRefIndex = array() | |
$disableDeleteClause = false | |
$checkModifyAccessListHookObjects | |
$version_remapMMForVersionSwap_reg | |
$outerMostInstance = null | |
$databaseConnection | |
$runtimeCache = null | |
$cachePrefixNestedElementCalls = 'core-datahandler-nestedElementCalls-' | |
Static Protected Attributes | |
static | $recordsToClearCacheFor = array() |
The main data handler class which takes care of correctly updating and inserting records. This class was formerly known as TCEmain.
This is the TYPO3 Core Engine class for manipulation of the database This class is used by eg. the tce_db.php script which provides an the interface for POST forms to this class.
Dependencies:
tce_db.php for further comments and SYNTAX! Also see document 'TYPO3 Core API' for details.
Definition at line 51 of file DataHandler.php.
__construct | ( | ) |
Definition at line 697 of file DataHandler.php.
References $GLOBALS, and DataHandler\getRuntimeCache().
|
protected |
Actions for flex form element (move, delete) allows to remove and move flexform sections
array | $valueArray | by reference |
array | $actionCMDs |
Definition at line 2552 of file DataHandler.php.
References elseif.
Referenced by DataHandler\checkValueForFlex().
addDefaultPermittedLanguageIfNotSet | ( | $table, | |
& | $incomingFieldArray | ||
) |
If a "languageField" is specified for $table this function will add a possible value to the incoming array if none is found in there already.
string | $table | Table name |
array | $incomingFieldArray | Incoming array (passed by reference) |
Definition at line 6974 of file DataHandler.php.
References BackendUtility\deleteClause().
|
protected |
Adds new values to the remapStackChildIds array.
array | $idValues | uid values |
Definition at line 8011 of file DataHandler.php.
Referenced by DataHandler\checkValueForGroupSelect(), and DataHandler\checkValueForInline().
addRemapAction | ( | $table, | |
$id, | |||
array | $callback, | ||
array | $arguments | ||
) |
Adds an instruction to the remap action stack (used with IRRE).
string | $table | The affected table |
int | $id | The affected ID |
array | $callback | The callback information (object and method) |
array | $arguments | The arguments to be used with the callback |
Definition at line 5955 of file DataHandler.php.
Referenced by DataHandler\triggerRemapAction(), and DataHandlerHook\version_swap_processFields().
addRemapStackRefIndex | ( | $table, | |
$id | |||
) |
Adds a table-id-pair to the reference index remapping stack.
string | $table | |
int | $id |
Definition at line 5974 of file DataHandler.php.
|
protected |
Applies the filter methods from a column's TCA configuration to a value array.
array | $tcaFieldConfiguration | |
array | $values |
\RuntimeException |
Definition at line 2131 of file DataHandler.php.
References GeneralUtility\callUserFunction().
Referenced by DataHandler\checkValueForGroupSelect().
assemblePermissions | ( | $string | ) |
Calculates the bitvalue of the permissions given in a string, comma-separated
string | $string | List of pMap strings |
Definition at line 7101 of file DataHandler.php.
References GeneralUtility\trimExplode().
Referenced by DataHandler\newFieldArray(), and DataHandler\setTSconfigPermissions().
canDeletePage | ( | $uid | ) |
Used to evaluate if a page can be deleted
int | $uid | Page id |
Definition at line 5109 of file DataHandler.php.
References DataHandler\doesBranchExist(), DataHandler\doesRecordExist(), DataHandler\noRecordsFromUnallowedTables(), and GeneralUtility\trimExplode().
Referenced by DataHandler\cannotDeleteRecord().
cannotDeleteRecord | ( | $table, | |
$id | |||
) |
Returns TRUE if record CANNOT be deleted, otherwise FALSE. Used to check before the versioning API allows a record to be marked for deletion.
string | $table | Record Table |
int | $id | Record UID |
Definition at line 5162 of file DataHandler.php.
References DataHandler\canDeletePage(), and DataHandler\doesRecordExist().
Referenced by DataHandler\versionizeRecord().
|
protected |
Casts a reference value. In case MM relations or foreign_field references are used. All other configurations, as well as foreign_table(!) could be stored as comma-separated-values as well. Since the system is not able to determine the default value automatically then, the TCA default value is used if it has been defined.
int | string | $value | The value to be casted (e.g. '', '0', '1,2,3') |
array | $configuration | The TCA configuration of the accordant field |
Definition at line 7392 of file DataHandler.php.
Referenced by DataHandler\checkValueForGroupSelect(), and DataHandler\processRemapStack().
checkRecordInsertAccess | ( | $insertTable, | |
$pid, | |||
$action = 1 |
|||
) |
Checks if user may insert a record from $insertTable on $pid Does not check for workspace, use BE_USER->workspaceAllowLiveRecordsInPID for this in addition to this function call.
string | $insertTable | Tablename to check |
int | $pid | Integer PID |
int | $action | For logging: Action number. |
Definition at line 6113 of file DataHandler.php.
References DataHandler\doesRecordExist(), elseif, DataHandler\getRecordProperties(), BackendUtility\isRootLevelRestrictionIgnored(), DataHandler\isTableAllowedForThisPage(), and DataHandler\log().
Referenced by DataHandler\moveRecord().
checkRecordUpdateAccess | ( | $table, | |
$id, | |||
$data = false , |
|||
$hookObjectsArr = null |
|||
) |
Checks if user may update a record with uid=$id from $table
string | $table | Record table |
int | $id | Record UID |
array | bool | $data | Record data |
array | $hookObjectsArr | Hook objects |
Definition at line 6076 of file DataHandler.php.
References DataHandler\doesRecordExist(), and elseif.
Referenced by DataHandler\moveRecord(), DataHandlerHook\version_clearWSID(), and DataHandlerHook\version_setStage().
checkStoredRecord | ( | $table, | |
$id, | |||
$fieldArray, | |||
$action | |||
) |
Checking stored record to see if the written values are properly updated.
string | $table | Record table name |
int | $id | Record uid |
array | $fieldArray | Array of field=>value pairs to insert/update |
string | $action | Action, for logging only. |
Definition at line 6659 of file DataHandler.php.
References elseif, and DataHandler\log().
Referenced by DataHandler\insertDB(), and DataHandler\updateDB().
checkValue | ( | $table, | |
$field, | |||
$value, | |||
$id, | |||
$status, | |||
$realPid, | |||
$tscPID | |||
) |
Evaluates a value according to $table/$field settings. This function is for real database fields - NOT FlexForm "pseudo" fields. NOTICE: Calling this function expects this: 1) That the data is saved! (files are copied and so on) 2) That files registered for deletion IS deleted at the end (with ->removeRegisteredFiles() )
string | $table | Table name |
string | $field | Field name |
string | $value | Value to be evaluated. Notice, this is the INPUT value from the form. The original value (from any existing record) must be manually looked up inside the function if needed - or taken from $currentRecord array. |
string | $id | The record-uid, mainly - but not exclusively - used for logging |
string | $status | 'update' or 'new' flag |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. |
int | $tscPID | TSconfig PID |
Definition at line 1625 of file DataHandler.php.
References DataHandler\checkValue_SW(), DataHandler\doesPageHaveUnallowedTables(), DataHandler\getRecordProperties(), GeneralUtility\inList(), DataHandler\log(), and DataHandler\recordInfo().
Referenced by DataHandler\fillInFieldArray(), and DataHandler\insertNewCopyVersion().
checkValue_check | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$field = '' |
|||
) |
Evaluates 'check' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
string | $field | Field name |
Definition at line 1893 of file DataHandler.php.
References DataHandler\checkValueForCheck(), and GeneralUtility\logDeprecatedFunction().
checkValue_checkMax | ( | $tcaFieldConf, | |
$valueArray | |||
) |
Checks if a fields has more items than defined via TCA in maxitems. If there are more items than allowd, the item list is truncated to the defined number.
array | $tcaFieldConf | Field configuration from TCA |
array | $valueArray | Current value array of items |
Definition at line 2654 of file DataHandler.php.
Referenced by DataHandler\checkValueForGroupSelect(), and DataHandler\processRemapStack().
checkValue_flex | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$uploadedFiles, | |||
$field | |||
) |
Evaluates 'flex' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | array | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
array | $uploadedFiles | Uploaded files for the field |
string | $field | Field name |
Definition at line 2448 of file DataHandler.php.
References DataHandler\checkValueForFlex(), and GeneralUtility\logDeprecatedFunction().
checkValue_flex_procInData | ( | $dataPart, | |
$dataPart_current, | |||
$uploadedFiles, | |||
$dataStructArray, | |||
$pParams, | |||
$callBackFunc = '' |
|||
) |
Starts the processing the input data for flexforms. This will traverse all sheets / languages and for each it will traverse the sub-structure. See checkValue_flex_procInData_travDS() for more details. WARNING: Currently, it traverses based on the actual data array and NOT the structure. This means that values for non-valid fields, lKey/vKey/sKeys will be accepted! For traversal of data with a call back function you should rather use
array | $dataPart | The 'data' part of the INPUT flexform data |
array | $dataPart_current | The 'data' part of the CURRENT flexform data |
array | $uploadedFiles | The uploaded files for the 'data' part of the INPUT flexform data |
array | $dataStructArray | Data structure for the form (might be sheets or not). Only values in the data array which has a configuration in the data structure will be processed. |
array | $pParams | A set of parameters to pass through for the calling of the evaluation functions |
string | $callBackFunc | Optional call back function, see checkValue_flex_procInData_travDS() DEPRECATED, use instead for traversal! |
Definition at line 3007 of file DataHandler.php.
References DataHandler\checkValue_flex_procInData_travDS(), and GeneralUtility\resolveSheetDefInDS().
Referenced by DataHandler\checkValueForFlex(), DataHandler\copyRecord_procBasedOnFieldType(), and DataHandler\remapListedDBRecords().
checkValue_flex_procInData_travDS | ( | & | $dataValues, |
$dataValues_current, | |||
$uploadedFiles, | |||
$DSelements, | |||
$pParams, | |||
$callBackFunc, | |||
$structurePath | |||
) |
Processing of the sheet/language data array When it finds a field with a value the processing is done by ->checkValue_SW() by default but if a call back function name is given that method in this class will be called for the processing instead.
array | $dataValues | New values (those being processed): Multidimensional Data array for sheet/language, passed by reference! |
array | $dataValues_current | Current values: Multidimensional Data array. May be empty array() if not needed (for callBackFunctions) |
array | $uploadedFiles | Uploaded files array for sheet/language. May be empty array() if not needed (for callBackFunctions) |
array | $DSelements | Data structure which fits the data array |
array | $pParams | A set of parameters to pass through for the calling of the evaluation functions / call back function |
string | $callBackFunc | Call back function, default is checkValue_SW(). If $this->callBackObj is set to an object, the callback function in that object is called instead. |
string | $structurePath |
Definition at line 3036 of file DataHandler.php.
References DataHandler\checkValue_SW(), elseif, BackendUtility\getPagesTSconfig(), BackendUtility\getSpecConfParts(), BackendUtility\getTCAtypeValue(), BackendUtility\RTEsetup(), and DataHandler\transformRichtextContentToDatabase().
Referenced by DataHandler\checkValue_flex_procInData().
checkValue_group_select | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$uploadedFiles, | |||
$field | |||
) |
Evaluates 'group' or 'select' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
array | $uploadedFiles | |
string | $field | Field name |
Definition at line 2020 of file DataHandler.php.
References DataHandler\checkValueForGroupSelect(), and GeneralUtility\logDeprecatedFunction().
checkValue_group_select_explodeSelectGroupValue | ( | $value | ) |
Explodes the $value, which is a list of files/uids (group select)
string | $value | Input string, comma separated values. For each part it will also be detected if a '|' is found and the first part will then be used if that is the case. Further the value will be rawurldecoded. |
Definition at line 2982 of file DataHandler.php.
References GeneralUtility\trimExplode().
Referenced by DataHandler\checkValueForGroupSelect().
checkValue_inline | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$field, | |||
array | $additionalData = null |
||
) |
Evaluates 'inline' type values. (partly copied from the select_group function on this issue)
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
string | $field | Field name |
array | $additionalData | Additional data to be forwarded to sub-processors |
Definition at line 2596 of file DataHandler.php.
References DataHandler\checkValueForInline().
checkValue_input | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$field = '' |
|||
) |
Evaluate "input" type values.
array | $res | The result array. The processed value (if any!) is set in the "value" key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
string | $field | Field name |
Definition at line 1798 of file DataHandler.php.
References DataHandler\checkValueForInput(), and GeneralUtility\logDeprecatedFunction().
checkValue_input_Eval | ( | $value, | |
$evalArray, | |||
$is_in | |||
) |
Evaluation of 'input'-type values based on 'eval' list
string | $value | Value to evaluate |
array | $evalArray | Array of evaluations to traverse. |
string | $is_in | Is-in string for 'is_in' evaluation |
Definition at line 2792 of file DataHandler.php.
References GeneralUtility\idnaEncode(), and GeneralUtility\makeInstance().
Referenced by DataHandler\checkValueForInput(), and DataHandler\getPlaceholderTitleForTableLabel().
checkValue_radio | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP | |||
) |
Evaluates 'radio' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
Definition at line 1961 of file DataHandler.php.
References DataHandler\checkValueForRadio(), and GeneralUtility\logDeprecatedFunction().
checkValue_SW | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$table, | |||
$id, | |||
$curValue, | |||
$status, | |||
$realPid, | |||
$recFID, | |||
$field, | |||
$uploadedFiles, | |||
$tscPID, | |||
array | $additionalData = null |
||
) |
Branches out evaluation of a field value based on its type as configured in $GLOBALS['TCA'] Can be called for FlexForm pseudo fields as well, BUT must not have $field set if so.
array | $res | The result array. The processed value (if any!) is set in the "value" key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from $GLOBALS['TCA'] |
string | $table | Table name |
int | $id | UID of record |
mixed | $curValue | Current value of the field |
string | $status | 'update' or 'new' flag |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. |
string | $recFID | Field identifier [table:uid:field] for flexforms |
string | $field | Field name. Must NOT be set if the call is for a flexform field (since flexforms are not allowed within flexforms). |
array | $uploadedFiles | |
int | $tscPID | TSconfig PID |
array | $additionalData | Additional data to be forwarded to sub-processors |
Definition at line 1703 of file DataHandler.php.
References DataHandler\checkValueForCheck(), DataHandler\checkValueForFlex(), DataHandler\checkValueForGroupSelect(), DataHandler\checkValueForInline(), DataHandler\checkValueForInput(), DataHandler\checkValueForRadio(), DataHandler\checkValueForText(), and GeneralUtility\inList().
Referenced by DataHandler\checkValue(), and DataHandler\checkValue_flex_procInData_travDS().
checkValue_text | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$PP, | |||
$field = '' |
|||
) |
Evaluate "text" type values.
array | $res | The result array. The processed value (if any!) is set in the "value" key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $PP | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
string | $field | Field name |
Definition at line 1759 of file DataHandler.php.
References DataHandler\checkValueForText(), and GeneralUtility\logDeprecatedFunction().
checkValue_text_Eval | ( | $value, | |
$evalArray, | |||
$is_in | |||
) |
string | $value | The field value to be evaluated |
array | $evalArray | Array of evaluations to traverse. |
string | $is_in | The "is_in" value of the field configuration from TCA |
Definition at line 2753 of file DataHandler.php.
References GeneralUtility\makeInstance().
Referenced by DataHandler\checkValueForText().
|
protected |
Evaluates 'check' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
string | $table | Table name |
int | $id | UID of record |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. |
string | $field | Field name |
Definition at line 1912 of file DataHandler.php.
References BackendUtility\getItemLabel(), DataHandler\getRecordsWithSameValue(), DataHandler\log(), and GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue_check(), and DataHandler\checkValue_SW().
|
protected |
Evaluates 'flex' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | array | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
string | $table | Table name |
int | $id | UID of record |
mixed | $curValue | Current value of the field |
string | $status | 'update' or 'new' flag |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. |
string | $recFID | Field identifier [table:uid:field] for flexforms |
int | $tscPID | TSconfig PID |
array | $uploadedFiles | Uploaded files for the field |
string | $field | Field name |
Definition at line 2472 of file DataHandler.php.
References DataHandler\_ACTION_FLEX_FORMdata(), GeneralUtility\_GP(), DataHandler\checkValue_flex_procInData(), BackendUtility\getFlexFormDS(), GeneralUtility\getUserObj(), ArrayUtility\mergeRecursiveWithOverrule(), and GeneralUtility\xml2array().
Referenced by DataHandler\checkValue_flex(), and DataHandler\checkValue_SW().
|
protected |
Evaluates 'group' or 'select' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
string | $table | Table name |
int | $id | UID of record |
mixed | $curValue | Current value of the field |
string | $status | 'update' or 'new' flag |
string | $recFID | Field identifier [table:uid:field] for flexforms |
array | $uploadedFiles | |
string | $field | Field name |
Definition at line 2042 of file DataHandler.php.
References DataHandler\addNewValuesToRemapStackChildIds(), DataHandler\applyFiltersToValues(), DataHandler\castReferenceValue(), DataHandler\checkValue_checkMax(), DataHandler\checkValue_group_select_explodeSelectGroupValue(), DataHandler\convNumEntityToByteValue(), and GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue_group_select(), and DataHandler\checkValue_SW().
checkValueForInline | ( | $res, | |
$value, | |||
$tcaFieldConf, | |||
$table, | |||
$id, | |||
$status, | |||
$field, | |||
array | $additionalData = null |
||
) |
Evaluates 'inline' type values. (partly copied from the select_group function on this issue)
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
string | $table | Table name |
int | $id | UID of record |
string | $status | 'update' or 'new' flag |
string | $field | Field name |
array | $additionalData | Additional data to be forwarded to sub-processors |
Definition at line 2616 of file DataHandler.php.
References DataHandler\addNewValuesToRemapStackChildIds(), MathUtility\canBeInterpretedAsInteger(), elseif, and GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue_inline(), and DataHandler\checkValue_SW().
|
protected |
Evaluate "input" type values.
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
string | $table | Table name |
int | $id | UID of record |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. |
string | $field | Field name |
Definition at line 1816 of file DataHandler.php.
References DataHandler\checkValue_input_Eval(), DataHandler\getFieldEvalCacheIdentifier(), DataHandler\getUnique(), and GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue_input(), and DataHandler\checkValue_SW().
|
protected |
Evaluates 'radio' type values.
array | $res | The result array. The processed value (if any!) is set in the 'value' key. |
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
array | $table | The table of the record |
int | $id | The id of the record |
int | $pid | The pid of the record |
string | $field | The field to check |
Definition at line 1980 of file DataHandler.php.
References GeneralUtility\makeInstance().
Referenced by DataHandler\checkValue_radio(), and DataHandler\checkValue_SW().
|
protected |
Evaluate "text" type values.
string | $value | The value to set. |
array | $tcaFieldConf | Field configuration from TCA |
Definition at line 1772 of file DataHandler.php.
References DataHandler\checkValue_text_Eval(), DataHandler\getFieldEvalCacheIdentifier(), and GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue_SW(), and DataHandler\checkValue_text().
clear_cacheCmd | ( | $cacheCmd | ) |
Clears the cache based on the command $cacheCmd.
$cacheCmd='pages' Clears cache for all pages and page-based caches inside the cache manager. Requires admin-flag to be set for BE_USER.
$cacheCmd='all' Clears all cache_tables. This is necessary if templates are updated. Requires admin-flag to be set for BE_USER.
The following cache_* are intentionally not cleared by 'all'
$cacheCmd=[integer] Clears cache for the page pointed to by $cacheCmd (an integer).
$cacheCmd='cacheTag:[string]' Flush page and pagesection cache by given tag
$cacheCmd='cacheId:[string]' Removes cache identifier from page and page section cache
Can call a list of post processing functions as defined in $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] (numeric array with values being the function references, called by GeneralUtility::callUserFunction()).
string | $cacheCmd | The cache command, see above description |
Definition at line 7773 of file DataHandler.php.
References GeneralUtility\callUserFunction(), MathUtility\canBeInterpretedAsInteger(), DataHandler\getCacheManager(), and GeneralUtility\isFirstPartOfStr().
clearPrefixFromValue | ( | $table, | |
$value | |||
) |
Removes the prependAtCopy prefix on values
string | $table | Table name |
string | $value | The value to fix |
Definition at line 7524 of file DataHandler.php.
References DataHandler\prependLabel().
compareFieldArrayWithCurrentAndUnset | ( | $table, | |
$id, | |||
$fieldArray | |||
) |
Compares the incoming field array with the current record and unsets all fields which are the same. Used for existing records being updated
string | $table | Record table name |
int | $id | Record uid |
array | $fieldArray | Array of field=>value pairs intended to be inserted into the database. All keys with values matching exactly the current value will be unset! |
Definition at line 7015 of file DataHandler.php.
References elseif, GeneralUtility\inList(), and DataHandler\isSubmittedValueEqualToStoredValue().
compileAdminTables | ( | ) |
List of all tables (those administrators has access to = array_keys of $GLOBALS['TCA'])
Definition at line 7296 of file DataHandler.php.
Referenced by DataHandler\copyPages().
|
protected |
Controls active elements and sets NULL values if not active. Datamap is modified accordant to submitted control values.
Definition at line 8188 of file DataHandler.php.
References DataHandler\setNullValues().
convNumEntityToByteValue | ( | $input | ) |
Converts a HTML entity (like {) to the character '123'
string | $input | Input string |
Definition at line 7130 of file DataHandler.php.
Referenced by DataHandler\checkValueForGroupSelect().
copyL10nOverlayRecords | ( | $table, | |
$uid, | |||
$destPid, | |||
$first = false , |
|||
$overrideValues = array() , |
|||
$excludeFields = '' |
|||
) |
Find l10n-overlay records and perform the requested copy action for these records.
string | $table | Record Table |
string | $uid | Record UID |
string | $destPid | Position to copy to |
bool | $first | |
array | $overrideValues | |
string | $excludeFields |
Definition at line 4106 of file DataHandler.php.
References DataHandler\$overrideValues, BackendUtility\getRecordsByField(), BackendUtility\getTSconfig_pidValue(), and BackendUtility\isTableLocalizable().
copyPages | ( | $uid, | |
$destPid | |||
) |
Copying pages Main function for copying pages.
int | $uid | Page UID to copy |
int | $destPid | Destination PID: >=0 then it points to a page-id on which to insert the record (as the first element). <0 then it points to a uid from its own table after which to insert it (works if |
Definition at line 3525 of file DataHandler.php.
References DataHandler\compileAdminTables(), DataHandler\copySpecificPage(), elseif, DataHandler\int_pageTreeInfo(), DataHandler\log(), and GeneralUtility\trimExplode().
copyRecord_flexFormCallBack | ( | $pParams, | |
$dsConf, | |||
$dataValue, | |||
$dataValue_ext1, | |||
$dataValue_ext2 | |||
) |
Callback function for traversing the FlexForm structure in relation to creating copied files of file relations inside of flex form structures.
array | $pParams | Array of parameters in num-indexes: table, uid, field |
array | $dsConf | TCA field configuration (from Data Structure XML) |
string | $dataValue | The value of the flexForm field |
string | $dataValue_ext1 | Not used. |
string | $dataValue_ext2 | Not used. |
Definition at line 3946 of file DataHandler.php.
References DataHandler\copyRecord_procBasedOnFieldType(), DataHandler\getInlineFieldType(), and DataHandler\isReferenceField().
copyRecord_procBasedOnFieldType | ( | $table, | |
$uid, | |||
$field, | |||
$value, | |||
$row, | |||
$conf, | |||
$realDestPid, | |||
$language = 0 , |
|||
array | $workspaceOptions = array() |
||
) |
Processing/Preparing content for copyRecord() function
string | $table | Table name |
int | $uid | Record uid |
string | $field | Field name being processed |
string | $value | Input value to be processed. |
array | $row | Record array |
array | $conf | TCA field configuration |
int | $realDestPid | Real page id (pid) the record is copied to |
int | $language | Language ID (from sys_language table) used in the duplicated record |
array | $workspaceOptions | Options to be forwarded if actions happen on a workspace currently |
Definition at line 3762 of file DataHandler.php.
References DataHandler\checkValue_flex_procInData(), elseif, BackendUtility\getFlexFormDS(), DataHandler\getInlineFieldType(), BackendUtility\getInlineLocalizationMode(), DataHandler\isReferenceField(), and GeneralUtility\xml2array().
Referenced by DataHandler\copyRecord_flexFormCallBack(), and DataHandler\copyRecord_raw().
copyRecord_raw | ( | $table, | |
$uid, | |||
$pid, | |||
$overrideArray = array() , |
|||
array | $workspaceOptions = array() |
||
) |
Copying records, but makes a "raw" copy of a record. Basically the only thing observed is field processing like the copying of files and correction of ids. All other fields are 1-1 copied. Technically the copy is made with THIS instance of the tcemain class contrary to copyRecord() which creates a new instance and uses the processData() function. The copy is created by insertNewCopyVersion() which bypasses most of the regular input checking associated with processData() - maybe copyRecord() should even do this as well!? This function is used to create new versions of a record. NOTICE: DOES NOT CHECK PERMISSIONS to create! And since page permissions are just passed through and not changed to the user who executes the copy we cannot enforce permissions without getting an incomplete copy - unless we change permissions of course.
string | $table | Element table |
int | $uid | Element UID |
int | $pid | Element PID (real PID, not checked) |
array | $overrideArray | Override array - must NOT contain any fields not in the table! |
array | $workspaceOptions | Options to be forwarded if actions happen on a workspace currently |
Definition at line 3638 of file DataHandler.php.
References DataHandler\copyRecord_procBasedOnFieldType(), DataHandler\dbAnalysisStoreExec(), DataHandler\doesRecordExist(), DataHandler\insertNewCopyVersion(), DataHandler\isElementToBeDeleted(), DataHandler\isRecordCopied(), DataHandler\log(), DataHandler\recordInfo(), and BackendUtility\wsMapId().
Referenced by DataHandlerHook\rawCopyPageContent(), DataHandlerHook\versionizePages(), and DataHandler\versionizeRecord().
copySpecificPage | ( | $uid, | |
$destPid, | |||
$copyTablesArray, | |||
$first = false |
|||
) |
Copying a single page ($uid) to $destPid and all tables in the array copyTablesArray.
int | $uid | Page uid |
int | $destPid | Destination PID: >=0 then it points to a page-id on which to insert the record (as the first element). <0 then it points to a uid from its own table after which to insert it (works if |
array | $copyTablesArray | Table on pages to copy along with the page. |
bool | $first | Is a flag set, if the record copied is NOT a 'slave' to another record copied. That is, if this record was asked to be copied in the cmd-array |
Definition at line 3579 of file DataHandler.php.
References DataHandler\deleteClause(), BackendUtility\isTableLocalizable(), and DataHandler\processRemapStack().
Referenced by DataHandler\copyPages().
|
protected |
function to make the static call to GeneralUtility mockable
Definition at line 8240 of file DataHandler.php.
References GeneralUtility\makeInstance().
Referenced by DataHandler\moveRecord_procBasedOnFieldType(), and DataHandler\remapListedDBRecords_procDBRefs().
dbAnalysisStoreExec | ( | ) |
Executing dbAnalysisStore This will save MM relations for new records but is executed after records are created because we need to know the ID of them
Definition at line 7237 of file DataHandler.php.
References MathUtility\canBeInterpretedAsInteger(), and BackendUtility\wsMapId().
Referenced by DataHandler\copyRecord_raw().
deleteAction | ( | $table, | |
$id | |||
) |
Delete a single record
string | $table | Table name |
int | $id | Record UID |
Definition at line 4757 of file DataHandler.php.
References DataHandler\deleteEl(), BackendUtility\getRecord(), and GeneralUtility\getUserObj().
Referenced by DataHandler\deleteL10nOverlayRecords().
deleteClause | ( | $table | ) |
Returns delete-clause for the $table
string | $table | Table name |
Definition at line 7175 of file DataHandler.php.
References DataHandler\disableDeleteClause().
Referenced by DataHandler\copySpecificPage(), DataHandler\deleteSpecificPage(), DataHandler\destNotInsideSelf(), DataHandler\doesBranchExist(), DataHandler\doesRecordExist(), DataHandler\doesRecordExist_pageLookUp(), DataHandler\getCopyHeader(), DataHandler\getPreviousLocalizedRecordUid(), DataHandler\getSortNumber(), DataHandler\getUnique(), DataHandler\int_pageTreeInfo(), DataHandlerHook\rawCopyPageContent(), DataHandler\resorting(), and DataHandler\versionizeRecord().
deleteEl | ( | $table, | |
$uid, | |||
$noRecordCheck = false , |
|||
$forceHardDelete = false |
|||
) |
Delete element from any table
string | $table | Table name |
int | $uid | Record UID |
bool | $noRecordCheck | Flag: If $noRecordCheck is set, then the function does not check permission to delete record |
bool | $forceHardDelete | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4787 of file DataHandler.php.
References DataHandler\deleteRecord(), and DataHandler\deleteVersionsForRecord().
Referenced by DataHandler\deleteAction(), DataHandler\deleteVersionsForRecord(), DataHandlerHook\processCmdmap_deleteAction(), and DataHandlerHook\version_clearWSID().
deleteL10nOverlayRecords | ( | $table, | |
$uid | |||
) |
Find l10n-overlay records and perform the requested delete action for these records.
string | $table | Record Table |
string | $uid | Record UID |
Definition at line 5277 of file DataHandler.php.
References Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, DataHandler\deleteAction(), BackendUtility\getRecordsByField(), BackendUtility\isTableLocalizable(), BackendUtility\isTableWorkspaceEnabled(), and BackendUtility\workspaceOL().
Referenced by DataHandler\deleteRecord(), and DataHandlerHook\processCmdmap_deleteAction().
deleteRecord | ( | $table, | |
$uid, | |||
$noRecordCheck = false , |
|||
$forceHardDelete = false , |
|||
$undeleteRecord = false |
|||
) |
Deleting/Undeleting a record This function may not be used to delete pages-records unless the underlying records are already deleted Deletes a record regardless of versioning state (live or offline, doesn't matter, the uid decides) If both $noRecordCheck and $forceHardDelete are set it could even delete a "deleted"-flagged record!
string | $table | Table name |
int | $uid | Record UID |
bool | $noRecordCheck | Flag: If $noRecordCheck is set, then the function does not check permission to delete record |
bool | $forceHardDelete | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
bool | $undeleteRecord | If TRUE, the "deleted" flag is set to 0 again and thus, the item is undeleted. |
Definition at line 4855 of file DataHandler.php.
References DataHandler\deleteL10nOverlayRecords(), DataHandler\deleteRecord_procFields(), DataHandler\doesRecordExist(), elseif, DataHandler\extFileFields(), DataHandler\extFileFunctions(), DataHandler\getRecordProperties(), BackendUtility\getRecordRaw(), DataHandler\log(), GeneralUtility\makeInstance(), and DataHandler\registerRecordIdForPageCacheClearing().
Referenced by DataHandler\deleteEl(), DataHandler\deleteSpecificPage(), DataHandler\deleteVersionsForRecord(), and DataHandler\undeleteRecord().
deleteRecord_procFields | ( | $table, | |
$uid, | |||
$undeleteRecord = false |
|||
) |
Before a record is deleted, check if it has references such as inline type or MM references. If so, set these child records also to be deleted.
string | $table | Record Table |
string | $uid | Record UID |
bool | $undeleteRecord | If a record should be undeleted (e.g. from history/undo) |
Definition at line 5208 of file DataHandler.php.
References BackendUtility\getRecord().
Referenced by DataHandler\deleteRecord().
deleteSpecificPage | ( | $uid, | |
$forceHardDelete = false |
|||
) |
Delete a page and all records on it.
int | $uid | Page id |
bool | $forceHardDelete | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 5039 of file DataHandler.php.
References DataHandler\deleteClause(), DataHandler\deleteRecord(), and DataHandler\deleteVersionsForRecord().
deleteVersionsForRecord | ( | $table, | |
$uid, | |||
$forceHardDelete | |||
) |
Delete versions for element from any table
string | $table | Table name |
int | $uid | Record UID |
bool | $forceHardDelete | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4805 of file DataHandler.php.
References Enumeration\cast(), DataHandler\deleteEl(), DataHandler\deleteRecord(), BackendUtility\getMovePlaceholder(), VersionState\MOVE_POINTER, and BackendUtility\selectVersionsOfRecord().
Referenced by DataHandler\deleteEl(), and DataHandler\deleteSpecificPage().
destNotInsideSelf | ( | $destinationId, | |
$id | |||
) |
Checks if page $id is a uid in the rootline of page id $destinationId Used when moving a page
int | $destinationId | Destination Page ID to test |
int | $id | Page ID to test for presence inside Destination |
Definition at line 6344 of file DataHandler.php.
References DataHandler\deleteClause(), and BackendUtility\fixVersioningPid().
Referenced by DataHandler\moveRecord_raw().
destPathFromUploadFolder | ( | $folder | ) |
Returns absolute destination path for the upload folder, $folder
string | $folder | Upload folder name, relative to PATH_site |
Definition at line 7152 of file DataHandler.php.
Referenced by DataHandler\extFileFunctions().
disableDeleteClause | ( | ) |
Disables the delete clause for fetching records. In general only undeleted records will be used. If the delete clause is disabled, also deleted records are taken into account.
Definition at line 7164 of file DataHandler.php.
Referenced by DataHandler\deleteClause().
doesBranchExist | ( | $inList, | |
$pid, | |||
$perms, | |||
$recurse | |||
) |
Checks if a whole branch of pages exists
Tests the branch under $pid (like doesRecordExist). It doesn't test the page with $pid as uid. Use doesRecordExist() for this purpose Returns an ID-list or "" if OK. Else -1 which means that somewhere there was no permission (eg. to delete). if $recurse is set, then the function will follow subpages. This MUST be set, if we need the idlist for deleting pages or else we get an incomplete list
string | $inList | List of page uids, this is added to and outputted in the end |
int | $pid | Page ID to select subpages from. |
int | $perms | Perms integer to check each page record for. |
bool | $recurse | Recursion flag: If set, it will go out through the branch. |
Definition at line 6285 of file DataHandler.php.
References DataHandler\deleteClause().
Referenced by DataHandler\canDeletePage(), and DataHandlerHook\versionizePages().
doesPageHaveUnallowedTables | ( | $page_uid, | |
$doktype | |||
) |
Checks if there are records on a page from tables that are not allowed
Definition at line 6399 of file DataHandler.php.
References GeneralUtility\trimExplode().
Referenced by DataHandler\checkValue().
doesRecordExist | ( | $table, | |
$id, | |||
$perms | |||
) |
Checks if record can be selected based on given permission criteria
string | $table | Record table name |
int | $id | Record UID |
int | string | $perms | Permission restrictions to observe: Either an integer that will be bitwise AND'ed or a string, which points to a key in the ->pMap array |
\RuntimeException |
Definition at line 6198 of file DataHandler.php.
References MathUtility\canBeInterpretedAsInteger(), DataHandler\deleteClause(), DataHandler\doesRecordExist_pageLookUp(), BackendUtility\fixVersioningPid(), BackendUtility\getRecordRaw(), DataHandler\isRecordInWebMount(), BackendUtility\isRootLevelRestrictionIgnored(), and BackendUtility\isWebMountRestrictionIgnored().
Referenced by DataHandler\canDeletePage(), DataHandler\cannotDeleteRecord(), DataHandler\checkRecordInsertAccess(), DataHandler\checkRecordUpdateAccess(), DataHandler\copyRecord_raw(), DataHandler\deleteRecord(), DataHandler\moveRecord(), and DataHandler\versionizeRecord().
doesRecordExist_pageLookUp | ( | $id, | |
$perms | |||
) |
Looks up a page based on permissions.
int | $id | Page id |
int | $perms | Permission integer |
Definition at line 6267 of file DataHandler.php.
References Permission\CONTENT_EDIT, DataHandler\deleteClause(), Permission\PAGE_DELETE, and Permission\PAGE_EDIT.
Referenced by DataHandler\doesRecordExist().
eventPid | ( | $table, | |
$uid, | |||
$pid | |||
) |
string | $table | |
int | $uid | |
int | $pid |
Definition at line 6519 of file DataHandler.php.
Referenced by DataHandler\getRecordPropertiesFromRow(), and DataHandler\newlog2().
extFileFields | ( | $table | ) |
Returns all fieldnames from a table which are a list of files
string | $table | Table name |
Definition at line 7367 of file DataHandler.php.
Referenced by DataHandler\deleteRecord().
extFileFunctions | ( | $table, | |
$field, | |||
$filelist, | |||
$func | |||
) |
File functions on external file references. eg. deleting files when deleting record
string | $table | Table name |
string | $field | Field name |
string | $filelist | List of files to work on from field |
string | $func | Function, eg. "deleteAll" which will delete all files listed. |
Definition at line 7539 of file DataHandler.php.
References DataHandler\destPathFromUploadFolder(), elseif, DataHandler\getResourceFactory(), and DataHandler\log().
Referenced by DataHandler\deleteRecord().
fillInFieldArray | ( | $table, | |
$id, | |||
$fieldArray, | |||
$incomingFieldArray, | |||
$realPid, | |||
$status, | |||
$tscPID | |||
) |
Filling in the field array $this->excludedTablesAndFields is used to filter fields if needed.
string | $table | Table name |
int | $id | Record ID |
array | $fieldArray | Default values, Preset $fieldArray with 'pid' maybe (pid and uid will be not be overridden anyway) |
array | $incomingFieldArray | Is which fields/values you want to set. There are processed and put into $fieldArray if OK |
int | $realPid | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. |
string | $status | Is 'new' or 'update' |
int | $tscPID | TSconfig PID |
Definition at line 1420 of file DataHandler.php.
References DataHandler\checkValue(), GeneralUtility\deprecationLog(), elseif, BackendUtility\fixVersioningPid(), BackendUtility\getPagesTSconfig(), BackendUtility\getTCAtypes(), BackendUtility\getTCAtypeValue(), ArrayUtility\mergeRecursiveWithOverrule(), DataHandler\pageInfo(), DataHandler\recordInfo(), BackendUtility\RTEsetup(), GeneralUtility\stripSlashesOnArray(), DataHandler\transformRichtextContentToDatabase(), and BackendUtility\workspaceOL().
fixCopyAfterDuplFields | ( | $table, | |
$uid, | |||
$prevUid, | |||
$update, | |||
$newData = array() |
|||
) |
When er record is copied you can specify fields from the previous record which should be copied into the new one This function is also called with new elements. But then $update must be set to zero and $newData containing the data array. In that case data in the incoming array is NOT overridden. (250202)
string | $table | Table name |
int | $uid | Record UID |
int | $prevUid | UID of previous record |
bool | $update | If set, updates the record |
array | $newData | Input array. If fields are already specified AND $update is not set, values are not set in output array. |
Definition at line 7344 of file DataHandler.php.
References DataHandler\recordInfo(), GeneralUtility\trimExplode(), and DataHandler\updateDB().
Referenced by DataHandler\moveRecord_raw().
fixUniqueInPid | ( | $table, | |
$uid | |||
) |
Checks if any uniqueInPid eval input fields are in the record and if so, they are re-written to be correct.
string | $table | Table name |
int | $uid | Record UID |
Definition at line 7308 of file DataHandler.php.
References DataHandler\getUnique(), DataHandler\recordInfo(), GeneralUtility\trimExplode(), and DataHandler\updateDB().
Referenced by DataHandler\moveRecord_raw().
getAutoVersionId | ( | $table, | |
$id | |||
) |
Gets the automatically versionized id of a record.
string | $table | Name of the table |
int | $id | Uid of the record |
Definition at line 7980 of file DataHandler.php.
Referenced by DataHandler\overlayAutoVersionId().
|
protected |
Create and returns an instance of the CacheManager
Definition at line 8250 of file DataHandler.php.
References GeneralUtility\makeInstance().
Referenced by DataHandler\clear_cacheCmd(), and DataHandler\getRuntimeCache().
|
protected |
Gets the 'checkModifyAccessList' hook objects. The first call initializes the accordant objects.
\UnexpectedValueException |
Definition at line 917 of file DataHandler.php.
References DataHandler\$checkModifyAccessListHookObjects, $GLOBALS, and GeneralUtility\getUserObj().
|
protected |
Gets elements of the command map that match a particular command.
string | $needle | The command to be matched |
Definition at line 8167 of file DataHandler.php.
Referenced by DataHandler\registerElementsToBeDeleted(), and DataHandler\unsetElementsToBeDeleted().
getCopyHeader | ( | $table, | |
$pid, | |||
$field, | |||
$value, | |||
$count, | |||
$prevTitle = '' |
|||
) |
Get modified header for a copied record
string | $table | Table name |
int | $pid | PID value in which other records to test might be |
string | $field | Field name to get header value for. |
string | $value | Current field value |
int | $count | Counter (number of recursions) |
string | $prevTitle | Previous title we checked for (in previous recursion) |
Definition at line 7455 of file DataHandler.php.
References DataHandler\deleteClause(), and DataHandler\prependLabel().
getExcludeListArray | ( | ) |
Generate an array of fields to be excluded from editing for the user. Based on "exclude"-field in TCA and a look up in non_exclude_fields Will also generate this list for admin-users so they must be check for before calling the function
Definition at line 6376 of file DataHandler.php.
References $list, and GeneralUtility\trimExplode().
Referenced by DataHandler\start().
|
protected |
Return the cache entry identifier for field evals
string | $additionalIdentifier |
Definition at line 8230 of file DataHandler.php.
Referenced by DataHandler\checkValueForInput(), and DataHandler\checkValueForText().
getInlineFieldType | ( | $conf | ) |
Returns the subtype as a string of an inline field. If it's not an inline field at all, it returns FALSE.
array | $conf | Config array for TCA/columns field |
Definition at line 7427 of file DataHandler.php.
References elseif.
Referenced by DataHandler\copyRecord_flexFormCallBack(), DataHandler\copyRecord_procBasedOnFieldType(), DataHandler\moveRecord_procBasedOnFieldType(), DataHandlerHook\moveRecord_processFieldValue(), and DataHandlerHook\version_swap_processFields().
|
protected |
Returns an instance of DataHandler for handling local datamaps/cmdmaps
bool | $stripslashesValues | If TRUE, incoming values in the data-array have their slashes stripped. |
bool | $dontProcessTransformations | If set, then transformations are NOT performed on the input. |
Definition at line 5542 of file DataHandler.php.
References DataHandler\$cachedTSconfig, DataHandler\$copyTree, DataHandler\$dontProcessTransformations, and GeneralUtility\makeInstance().
|
protected |
Gets the outer most instance of Since can create nested objects of itself, this method helps to determine the first (= outer most) one.
Definition at line 8027 of file DataHandler.php.
References DataHandler\$outerMostInstance.
Referenced by DataHandler\isOuterMostInstance().
getPID | ( | $table, | |
$uid | |||
) |
Returns the pid of a record from $table with $uid
string | $table | Table name |
int | $uid | Record uid |
Definition at line 7222 of file DataHandler.php.
getPlaceholderTitleForTableLabel | ( | $table, | |
$placeholderContent = null |
|||
) |
Create a placeholder title for the label field that does match the field requirements
string | $table | The table name |
string | $placeholderContent | Placeholder content to be used |
Definition at line 1391 of file DataHandler.php.
References DataHandler\checkValue_input_Eval(), and GeneralUtility\trimExplode().
Referenced by DataHandlerHook\moveRecord_wsPlaceholders().
|
protected |
Returning uid of previous localized record, if any, for tables with a "sortby" column Used when new localized records are created so that localized records are sorted in the same order as the default language records
string | $table | Table name |
int | $uid | Uid of default language record |
int | $pid | Pid of default language record |
int | $language | Language of localization |
Definition at line 6876 of file DataHandler.php.
References DataHandler\deleteClause(), BackendUtility\getRecord(), and BackendUtility\getRecordLocalization().
getRecordProperties | ( | $table, | |
$id, | |||
$noWSOL = false |
|||
) |
Returns an array with record properties, like header and pid No check for deleted or access is done! For versionized records, pid is resolved to its live versions pid. Used for logging
string | $table | Table name |
int | $id | Uid of record |
bool | $noWSOL | If set, no workspace overlay is performed |
Definition at line 6481 of file DataHandler.php.
References DataHandler\getRecordPropertiesFromRow(), DataHandler\recordInfo(), and BackendUtility\workspaceOL().
Referenced by DataHandler\checkRecordInsertAccess(), DataHandler\checkValue(), DataHandler\deleteRecord(), DataHandler\getSortNumber(), DataHandler\insertDB(), DataHandler\isRecordInWebMount(), DataHandler\moveRecord(), DataHandler\moveRecord_raw(), and DataHandler\newlog2().
getRecordPropertiesFromRow | ( | $table, | |
$row | |||
) |
Returns an array with record properties, like header and pid, based on the row
string | $table | Table name |
array | $row | Input row |
Definition at line 6497 of file DataHandler.php.
References DataHandler\eventPid(), BackendUtility\fixVersioningPid(), and BackendUtility\getRecordTitle().
Referenced by DataHandler\getRecordProperties(), DataHandler\insertDB(), and DataHandler\updateDB().
getRecordsWithSameValue | ( | $tableName, | |
$uid, | |||
$fieldName, | |||
$value, | |||
$pageId = 0 |
|||
) |
gets all records that have the same value in a field excluding the given uid
string | $tableName | Table name |
int | $uid | UID to filter out in the lookup (the record itself...) |
string | $fieldName | Field name for which $value must be unique |
string | $value | Value string. |
int | $pageId | If set, the value will be unique for this PID |
Definition at line 2735 of file DataHandler.php.
References BackendUtility\getRecordsByField().
Referenced by DataHandler\checkValueForCheck().
|
protected |
Gets the resourceFactory
Definition at line 8260 of file DataHandler.php.
References ResourceFactory\getInstance().
Referenced by DataHandler\extFileFunctions(), and DataHandler\removeRegisteredFiles().
|
protected |
Gets an instance of the runtime cache.
Definition at line 8058 of file DataHandler.php.
References DataHandler\getCacheManager().
Referenced by DataHandler\__construct().
getSortNumber | ( | $table, | |
$uid, | |||
$pid | |||
) |
Returning sorting number for tables with a "sortby" column Using when new records are created and existing records are moved around.
string | $table | Table name |
int | $uid | Uid of record to find sorting number for. May be zero in case of new. |
int | $pid | Positioning PID, either >=0 (pointing to page in which case we find sorting number for first record in page) or <0 (pointing to record in which case to find next sorting number after this record) |
Definition at line 6745 of file DataHandler.php.
References DataHandler\$sortIntervals, DataHandler\deleteClause(), BackendUtility\getLiveVersionOfRecord(), BackendUtility\getMovePlaceholder(), DataHandler\getRecordProperties(), DataHandler\log(), and DataHandler\resorting().
Referenced by DataHandler\moveRecord_raw().
getTableEntries | ( | $table, | |
$TSconfig | |||
) |
Extract entries from TSconfig for a specific table. This will merge specific and default configuration together.
string | $table | Table name |
array | $TSconfig | TSconfig for page |
Definition at line 7207 of file DataHandler.php.
References ArrayUtility\mergeRecursiveWithOverrule().
getTCEMAIN_TSconfig | ( | $tscPID | ) |
Return TSconfig for a page id
int | $tscPID | Page id (PID) from which to get configuration. |
Definition at line 7191 of file DataHandler.php.
References BackendUtility\getPagesTSconfig().
getUnique | ( | $table, | |
$field, | |||
$value, | |||
$id, | |||
$newPid = 0 |
|||
) |
Gets a unique value for $table/$id/$field based on $value
string | $table | Table name |
string | $field | Field name for which $value must be unique |
string | $value | Value string. |
int | $id | UID to filter out in the lookup (the record itself...) |
int | $newPid | If set, the value will be unique for this PID |
Definition at line 2691 of file DataHandler.php.
References DataHandler\deleteClause().
Referenced by DataHandler\checkValueForInput(), and DataHandler\fixUniqueInPid().
getVersionizedIncomingFieldArray | ( | $table, | |
$id, | |||
& | $incomingFieldArray, | ||
& | $registerDBList | ||
) |
If a parent record was versionized on a workspace in $this->process_datamap, it might be possible, that child records (e.g. on using IRRE) were affected. This function finds these relations and updates their uids in the $incomingFieldArray. The $incomingFieldArray is updated by reference!
string | $table | Table name of the parent record |
int | $id | Uid of the parent record |
array | $incomingFieldArray | Reference to the incomingFieldArray of process_datamap |
array | $registerDBList | Reference to the $registerDBList array that was created/updated by versionizing calls to TCEmain in process_datamap. |
Definition at line 5991 of file DataHandler.php.
References DataHandler\$registerDBList.
hook_processDatamap_afterDatabaseOperations | ( | & | $hookObjectsArr, |
& | $status, | ||
& | $table, | ||
& | $id, | ||
& | $fieldArray | ||
) |
Hook: processDatamap_afterDatabaseOperations (calls $hookObj->processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, $this);)
Note: When using the hook after INSERT operations, you will only get the temporary NEW... id passed to your hook as $id, but you can easily translate it to the real uid of the inserted record using the $this->substNEWwithIDs array.
array | $hookObjectsArr | (reference) Array with hook objects |
string | $status | (reference) Status of the current operation, 'new' or 'update |
string | $table | (reference) The table currently processing data for |
string | $id | (reference) The record uid currently processing data for, [integer] or [string] (like 'NEW...') |
array | $fieldArray | (reference) The field array of a record |
Definition at line 892 of file DataHandler.php.
insertDB | ( | $table, | |
$id, | |||
$fieldArray, | |||
$newVersion = false , |
|||
$suggestedUid = 0 , |
|||
$dontSetNewIdIndex = false |
|||
) |
Insert into database Does not check permissions but expects them to be verified on beforehand
string | $table | Record table name |
string | $id | "NEW...." uid string |
array | $fieldArray | Array of field=>value pairs to insert. FIELDS MUST MATCH the database FIELDS. No check is done. "pid" must point to the destination of the record! |
bool | $newVersion | Set to TRUE if new version is created. |
int | $suggestedUid | Suggested UID value for the inserted record. See the array $this->suggestedInsertUids; Admin-only feature |
bool | $dontSetNewIdIndex | If TRUE, the ->substNEWwithIDs array is not updated. Only useful in very rare circumstances! |
Definition at line 6587 of file DataHandler.php.
References DataHandler\checkStoredRecord(), elseif, DataHandler\getRecordProperties(), DataHandler\getRecordPropertiesFromRow(), DataHandler\insertUpdateDB_preprocessBasedOnFieldType(), DataHandler\log(), and DataHandler\registerRecordIdForPageCacheClearing().
Referenced by DataHandler\insertNewCopyVersion(), and DataHandlerHook\moveRecord_wsPlaceholders().
insertNewCopyVersion | ( | $table, | |
$fieldArray, | |||
$realPid | |||
) |
Inserts a record in the database, passing TCA configuration values through checkValue() but otherwise does NOTHING and checks nothing regarding permissions. Passes the "version" parameter to insertDB() so the copy will look like a new version in the log - should probably be changed or modified a bit for more broad usage...
string | $table | Table name |
array | $fieldArray | Field array to insert as a record |
int | $realPid | The value of PID field. -1 is indication that we are creating a new version! |
Definition at line 3709 of file DataHandler.php.
References DataHandler\$dontProcessTransformations, DataHandler\$userid, DataHandler\checkValue(), StringUtility\getUniqueId(), and DataHandler\insertDB().
Referenced by DataHandler\copyRecord_raw().
insertUpdateDB_preprocessBasedOnFieldType | ( | $table, | |
$fieldArray | |||
) |
Preprocesses field array based on field type. Some fields must be adjusted before going to database. This is done on the copy of the field array because original values are used in remap action later.
string | $table | Table name |
array | $fieldArray | Field array to check |
Definition at line 7956 of file DataHandler.php.
References MathUtility\canBeInterpretedAsInteger(), and GeneralUtility\trimExplode().
Referenced by DataHandler\insertDB(), and DataHandler\updateDB().
int_pageTreeInfo | ( | $CPtable, | |
$pid, | |||
$counter, | |||
$rootID | |||
) |
Returns array, $CPtable, of pages under the $pid going down to $counter levels. Selecting ONLY pages which the user has read-access to!
array | $CPtable | Accumulation of page uid=>pid pairs in branch of $pid |
int | $pid | Page ID for which to find subpages |
int | $counter | Number of levels to go down. |
int | $rootID | ID of root point for new copied branch: The idea seems to be that a copy is not made of the already new page! |
Definition at line 7272 of file DataHandler.php.
References DataHandler\deleteClause().
Referenced by DataHandler\copyPages(), and DataHandlerHook\versionizePages().
|
protected |
Determines whether an element was registered to be deleted in the registry.
string | $table | Name of the table |
int | $id | Uid of the record |
Definition at line 8114 of file DataHandler.php.
Referenced by DataHandler\copyRecord_raw(), and DataHandler\versionizeRecord().
isInWebMount | ( | $pid | ) |
Checks if the input page ID is in the BE_USER webmounts
int | $pid | Page ID to check |
Definition at line 6059 of file DataHandler.php.
Referenced by DataHandler\isRecordInWebMount().
|
protected |
Determines nested element calls.
string | $table | Name of the table |
int | $id | Uid of the record |
string | $identifier | Name of the action to be checked |
Definition at line 8071 of file DataHandler.php.
isOuterMostInstance | ( | ) |
Determines whether the this object is the outer most instance of itself Since DataHandler can create nested objects of itself, this method helps to determine the first (= outer most) one.
Definition at line 8048 of file DataHandler.php.
References DataHandler\getOuterMostInstance().
isRecordCopied | ( | $table, | |
$uid | |||
) |
Determine if a record was copied or if a record is the result of a copy action.
string | $table | The tablename of the record |
int | $uid | The uid of the record |
Definition at line 7591 of file DataHandler.php.
References elseif.
Referenced by DataHandler\copyRecord_raw(), and DataHandlerHook\moveRecord().
isRecordInWebMount | ( | $table, | |
$id | |||
) |
Checking if a record with uid $id from $table is in the BE_USERS webmounts which is required for editing etc.
string | $table | Table name |
int | $id | UID of record |
Definition at line 6044 of file DataHandler.php.
References DataHandler\getRecordProperties(), and DataHandler\isInWebMount().
Referenced by DataHandler\doesRecordExist().
isRecordUndeletable | ( | $table, | |
$uid | |||
) |
Determines whether a record can be undeleted.
string | $table | Table name of the record |
int | $uid | uid of the record |
Definition at line 5179 of file DataHandler.php.
References elseif, BackendUtility\getRecord(), and DataHandler\log().
Referenced by DataHandler\undeleteRecord().
isReferenceField | ( | $conf | ) |
Returns TRUE if the TCA/columns field type is a DB reference field
array | $conf | Config array for TCA/columns field |
Definition at line 7415 of file DataHandler.php.
Referenced by DataHandler\copyRecord_flexFormCallBack(), DataHandler\copyRecord_procBasedOnFieldType(), and DataHandler\remapListedDBRecords_flexFormCallBack().
|
protected |
Determines whether submitted values and stored values are equal. This prevents from adding superfluous field changes which would be shown in the record history as well. For NULL fields (see accordant TCA definition 'eval' = 'null'), a special handling is required since (!strcmp(NULL, '')) would be a false-positive.
mixed | $submittedValue | Value that has submitted (e.g. from a backend form) |
mixed | $storedValue | Value that is currently stored in the database |
string | $storedType | SQL type of the stored value column (see mysql_field_type(), e.g 'int', 'string', ...) |
bool | $allowNull | Whether NULL values are allowed by accordant TCA definition ('eval' = 'null') |
Definition at line 7072 of file DataHandler.php.
References elseif.
Referenced by DataHandler\compareFieldArrayWithCurrentAndUnset().
isTableAllowedForThisPage | ( | $page_uid, | |
$checkTable | |||
) |
Checks if a table is allowed on a certain page id according to allowed tables set for the page "doktype" and its [ctrl][rootLevel]-settings if any.
int | $page_uid | Page id for which to check, including 0 (zero) if checking for page tree root. |
string | $checkTable | Table name to check |
Definition at line 6159 of file DataHandler.php.
References BackendUtility\isRootLevelRestrictionIgnored(), DataHandler\pageInfo(), and GeneralUtility\trimExplode().
Referenced by DataHandler\checkRecordInsertAccess().
log | ( | $table, | |
$recuid, | |||
$action, | |||
$recpid, | |||
$error, | |||
$details, | |||
$details_nr = -1 , |
|||
$data = array() , |
|||
$event_pid = -1 , |
|||
$NEWid = '' |
|||
) |
Logging actions from TCEmain
string | $table | Table name the log entry is concerned with. Blank if NA |
int | $recuid | Record UID. Zero if NA |
int | $action | Action number: 0=No category, 1=new record, 2=update record, 3= delete record, 4= move record, 5= Check/evaluate |
int | $recpid | Normally 0 (zero). If set, it indicates that this log-entry is used to notify the backend of a record which is moved to another location |
int | $error | The severity: 0 = message, 1 = error, 2 = System Error, 3 = security notice (admin) |
string | $details | Default error message in english |
int | $details_nr | This number is unique for every combination of $type and $action. This is the error-message number, which can later be used to translate error messages. 0 if not categorized, -1 if temporary |
array | $data | Array with special information that may go into $details by 's' marks / sprintf() when the log is shown |
int | $event_pid | The page_uid (pid) where the event occurred. Used to select log-content for specific pages. |
string | $NEWid | NEW id for new records |
Definition at line 7862 of file DataHandler.php.
Referenced by DataHandler\checkRecordInsertAccess(), DataHandler\checkStoredRecord(), DataHandler\checkValue(), DataHandler\checkValueForCheck(), DataHandler\copyPages(), DataHandler\copyRecord_raw(), DataHandler\deleteRecord(), DataHandler\extFileFunctions(), DataHandler\getSortNumber(), DataHandler\insertDB(), DataHandler\isRecordUndeletable(), DataHandler\moveRecord(), DataHandler\moveRecord_raw(), DataHandler\newlog(), DataHandler\newlog2(), DataHandler\updateDB(), and DataHandlerHook\version_setStage().
moveL10nOverlayRecords | ( | $table, | |
$uid, | |||
$destPid, | |||
$originalRecordDestinationPid | |||
) |
Find l10n-overlay records and perform the requested move action for these records.
string | $table | Record Table |
string | $uid | Record UID |
string | $destPid | Position to move to |
string | $originalRecordDestinationPid | Position to move the original record to |
Definition at line 4452 of file DataHandler.php.
References BackendUtility\getRecordsByField(), BackendUtility\isTableLocalizable(), and DataHandler\moveRecord().
Referenced by DataHandler\moveRecord_raw(), and DataHandlerHook\moveRecord_wsPlaceholders().
moveRecord | ( | $table, | |
$uid, | |||
$destPid | |||
) |
Moving single records
string | $table | Table name to move |
int | $uid | Record uid to move |
int | $destPid | Position to move to: $destPid: >=0 then it points to a page-id on which to insert the record (as the first element). <0 then it points to a uid from its own table after which to insert it (works if |
Definition at line 4158 of file DataHandler.php.
References DataHandler\checkRecordInsertAccess(), DataHandler\checkRecordUpdateAccess(), DataHandler\doesRecordExist(), BackendUtility\getLiveVersionOfRecord(), DataHandler\getRecordProperties(), GeneralUtility\getUserObj(), DataHandler\log(), DataHandler\moveRecord_raw(), and DataHandler\resolvePid().
Referenced by DataHandler\moveL10nOverlayRecords(), DataHandler\moveRecord_procBasedOnFieldType(), and DataHandlerHook\moveRecord_processFieldValue().
moveRecord_procBasedOnFieldType | ( | $table, | |
$uid, | |||
$destPid, | |||
$field, | |||
$value, | |||
$conf | |||
) |
Move child records depending on the field type of the parent record.
string | $table | Record Table |
string | $uid | Record UID |
string | $destPid | Position to move to |
string | $field | Record field |
string | $value | Record field value |
array | $conf | TCA configuration of current field |
Definition at line 4415 of file DataHandler.php.
References DataHandler\createRelationHandlerInstance(), DataHandler\getInlineFieldType(), and DataHandler\moveRecord().
Referenced by DataHandler\moveRecord_procFields().
moveRecord_procFields | ( | $table, | |
$uid, | |||
$destPid | |||
) |
Walk through all fields of the moved record and look for children of e.g. the inline type. If child records are found, they are also move to the new $destPid.
string | $table | Record Table |
string | $uid | Record UID |
string | $destPid | Position to move to |
Definition at line 4393 of file DataHandler.php.
References BackendUtility\getRecordWSOL(), and DataHandler\moveRecord_procBasedOnFieldType().
Referenced by DataHandler\moveRecord_raw().
moveRecord_raw | ( | $table, | |
$uid, | |||
$destPid | |||
) |
Moves a record without checking security of any sort. USE ONLY INTERNALLY
string | $table | Table name to move |
int | $uid | Record uid to move |
int | $destPid | Position to move to: $destPid: >=0 then it points to a page-id on which to insert the record (as the first element). <0 then it points to a uid from its own table after which to insert it (works if |
Definition at line 4245 of file DataHandler.php.
References DataHandler\destNotInsideSelf(), elseif, DataHandler\fixCopyAfterDuplFields(), DataHandler\fixUniqueInPid(), DataHandler\getRecordProperties(), DataHandler\getSortNumber(), GeneralUtility\getUserObj(), DataHandler\log(), DataHandler\moveL10nOverlayRecords(), DataHandler\moveRecord_procFields(), DataHandler\registerRecordIdForPageCacheClearing(), and DataHandler\resolvePid().
Referenced by DataHandler\moveRecord(), and DataHandlerHook\moveRecord_wsPlaceholders().
newFieldArray | ( | $table | ) |
Returns a fieldArray with default values. Values will be picked up from the TCA array looking at the config key "default" for each column. If values are set in ->defaultValues they will overrule though. Used for new records and during copy operations for defaults
string | $table | Table name for which to set default values. |
Definition at line 6944 of file DataHandler.php.
References DataHandler\$userid, DataHandler\assemblePermissions(), and elseif.
newlog | ( | $message, | |
$error = 0 |
|||
) |
Simple logging function meant to be used when logging messages is not yet fixed.
Definition at line 7890 of file DataHandler.php.
References DataHandler\log().
Referenced by DataHandlerHook\moveRecord(), DataHandler\process_uploads(), DataHandlerHook\processCmdmap_deleteAction(), DataHandlerHook\version_clearWSID(), DataHandlerHook\version_setStage(), DataHandlerHook\versionizePages(), and DataHandler\versionizeRecord().
newlog2 | ( | $message, | |
$table, | |||
$uid, | |||
$pid = null , |
|||
$error = 0 |
|||
) |
Simple logging function meant to bridge the gap between newlog() and log() with a little more info, in particular the record table/uid and event_pid so we can filter messages per page.
string | $message | Message string |
string | $table | Table name |
int | $uid | Record uid |
int | $pid | Record PID (from page tree). Will be turned into an event_pid internally in function: Meaning that the PID for a page will be its own UID, not its page tree PID. |
int | $error | Error code, see log() |
Definition at line 7906 of file DataHandler.php.
References GeneralUtility\deprecationLog(), DataHandler\eventPid(), DataHandler\getRecordProperties(), and DataHandler\log().
Referenced by DataHandler\placeholderShadowing(), and DataHandlerHook\version_setStage().
noRecordsFromUnallowedTables | ( | $inList | ) |
Used by the deleteFunctions to check if there are records from disallowed tables under the pages to be deleted.
string | $inList | List of page integers |
Definition at line 7570 of file DataHandler.php.
References BackendUtility\deleteClause(), DataHandler\rmComma(), and DataHandler\tableReadOnly().
Referenced by DataHandler\canDeletePage().
|
protected |
Overlays the automatically versionized id of a record.
string | $table | Name of the table |
int | $id | Uid of the record |
Definition at line 7996 of file DataHandler.php.
References DataHandler\getAutoVersionId().
overrideFieldArray | ( | $table, | |
$data | |||
) |
Returns the $data array from $table overridden in the fields defined in ->overrideValues.
string | $table | Table name |
array | $data | Data array with fields from table. These will be overlaid with values in $this->overrideValues[$table] |
Definition at line 6998 of file DataHandler.php.
pageInfo | ( | $id, | |
$field | |||
) |
Returns the value of the $field from page $id NOTICE; the function caches the result for faster delivery next time. You can use this function repeatedly without performance loss since it doesn't look up the same record twice!
int | $id | Page uid |
string | $field | Field name for which to return value |
Definition at line 6439 of file DataHandler.php.
Referenced by DataHandler\fillInFieldArray(), and DataHandler\isTableAllowedForThisPage().
placeholderShadowing | ( | $table, | |
$id | |||
) |
Fix shadowing of data in case we are editing an offline version of a live "New" placeholder record:
string | $table | Table name |
int | $id | Record uid |
Definition at line 1357 of file DataHandler.php.
References Enumeration\cast(), BackendUtility\getLiveVersionOfRecord(), BackendUtility\getRecord(), DataHandler\newlog2(), GeneralUtility\trimExplode(), and DataHandler\updateDB().
prependLabel | ( | $table | ) |
Return "copy" label for a table. Although the name is "prepend" it actually APPENDs the label (after ...)
string | $table | Table name |
Definition at line 7481 of file DataHandler.php.
Referenced by DataHandler\clearPrefixFromValue(), and DataHandler\getCopyHeader().
process_uploads | ( | $postFiles | ) |
Processing of uploaded files. It turns out that some versions of PHP arranges submitted data for files different if sent in an array. This function will unify this so the internal array $this->uploadedFileArray will always contain files arranged in the same structure.
array | $postFiles | $_FILES array |
Definition at line 824 of file DataHandler.php.
References DataHandler\newlog(), and DataHandler\process_uploads_traverseArray().
process_uploads_traverseArray | ( | & | $outputArr, |
$inputArr, | |||
$keyToSet | |||
) |
Traverse the upload array if needed to rearrange values.
array | $outputArr | $this->uploadedFileArray passed by reference |
array | $inputArr | Input array ($_FILES parts) |
string | $keyToSet | The current $_FILES array key to set on the outermost level. |
Definition at line 862 of file DataHandler.php.
Referenced by DataHandler\process_uploads().
processRemapStack | ( | ) |
Processes the $this->remapStack at the end of copying, inserting, etc. actions. The remapStack takes care about the correct mapping of new and old uids in case of relational data.
Definition at line 5766 of file DataHandler.php.
References DataHandler\castReferenceValue(), DataHandler\checkValue_checkMax(), elseif, DataHandler\updateDB(), and DataHandler\updateFlexFormData().
Referenced by DataHandler\copySpecificPage().
recordInfo | ( | $table, | |
$id, | |||
$fieldList | |||
) |
Returns the row of a record given by $table and $id and $fieldList (list of fields, may be '*') NOTICE: No check for deleted or access!
string | $table | Table name |
int | $id | UID of the record from $table |
string | $fieldList | Field list for the SELECT query, eg. "*" or "uid,pid,... |
Definition at line 6460 of file DataHandler.php.
Referenced by DataHandler\checkValue(), DataHandler\copyRecord_raw(), DataHandler\fillInFieldArray(), DataHandler\fixCopyAfterDuplFields(), DataHandler\fixUniqueInPid(), DataHandler\getRecordProperties(), DataHandler\remapListedDBRecords(), DataHandler\updateFlexFormData(), and DataHandler\versionizeRecord().
|
protected |
Registers elements to be deleted in the registry.
Definition at line 8126 of file DataHandler.php.
References DataHandler\getCommandMapElements().
|
protected |
Registers nested elements calls. This is used to track nested calls (e.g. for following m:n relations).
string | $table | Name of the table |
int | $id | Uid of the record |
string | $identifier | Name of the action to be tracked |
Definition at line 8086 of file DataHandler.php.
registerRecordIdForPageCacheClearing | ( | $table, | |
$uid | |||
) |
Clearing the cache based on a page being updated If the $table is 'pages' then cache is cleared for all pages on the same level (and subsequent?) Else just clear the cache for the parent page of the record.
string | $table | Table name of record that was just updated. |
int | $uid | UID of updated / inserted record |
Definition at line 7618 of file DataHandler.php.
Referenced by DataHandler\deleteRecord(), DataHandler\insertDB(), DataHandler\moveRecord_raw(), and DataHandler\updateDB().
remapListedDBRecords | ( | ) |
Processes the fields with references as registered during the copy process. This includes all FlexForm fields which had references.
Definition at line 5559 of file DataHandler.php.
References DataHandler\checkValue_flex_procInData(), debug(), BackendUtility\getFlexFormDS(), DataHandler\recordInfo(), DataHandler\remapListedDBRecords_procDBRefs(), DataHandler\updateDB(), BackendUtility\workspaceOL(), BackendUtility\wsMapId(), and GeneralUtility\xml2array().
remapListedDBRecords_flexFormCallBack | ( | $pParams, | |
$dsConf, | |||
$dataValue, | |||
$dataValue_ext1, | |||
$dataValue_ext2 | |||
) |
Callback function for traversing the FlexForm structure in relation to creating copied files of file relations inside of flex form structures.
array | $pParams | Set of parameters in numeric array: table, uid, field |
array | $dsConf | TCA config for field (from Data Structure of course) |
string | $dataValue | Field value (from FlexForm XML) |
string | $dataValue_ext1 | Not used |
string | $dataValue_ext2 | Not used |
Definition at line 5623 of file DataHandler.php.
References DataHandler\isReferenceField(), and DataHandler\remapListedDBRecords_procDBRefs().
remapListedDBRecords_procDBRefs | ( | $conf, | |
$value, | |||
$MM_localUid, | |||
$table | |||
) |
Performs remapping of old UID values to NEW uid values for a DB reference field.
array | $conf | TCA field config |
string | $value | Field value |
int | $MM_localUid | UID of local record (for MM relations - might need to change if support for FlexForms should be done!) |
string | $table | Table name |
Definition at line 5648 of file DataHandler.php.
References DataHandler\createRelationHandlerInstance(), BackendUtility\getLiveVersionIdOfRecord(), and GeneralUtility\trimExplode().
Referenced by DataHandler\remapListedDBRecords(), and DataHandler\remapListedDBRecords_flexFormCallBack().
removeRegisteredFiles | ( | ) |
Removing files registered for removal before exit
Definition at line 7252 of file DataHandler.php.
References DataHandler\getResourceFactory().
|
protected |
Resets the elements to be deleted in the registry.
Definition at line 8138 of file DataHandler.php.
|
protected |
resolvePid | ( | $table, | |
$pid | |||
) |
Get the final pid based on $table and $pid ($destPid type... pos/neg)
string | $table | Table name |
int | $pid | "Destination pid" : If the value is >= 0 it's just returned directly (through (int)though) but if the value is <0 then the method looks up the record with the uid equal to abs($pid) (positive number) and returns the PID of that record! The idea is that negative numbers point to the record AFTER WHICH the position is supposed to be! |
Definition at line 7498 of file DataHandler.php.
References BackendUtility\getLiveVersionOfRecord().
Referenced by DataHandler\moveRecord(), and DataHandler\moveRecord_raw().
resorting | ( | $table, | |
$pid, | |||
$sortRow, | |||
$return_SortNumber_After_This_Uid | |||
) |
Resorts a table. Used internally by getSortNumber()
string | $table | Table name |
int | $pid | Pid in which to resort records. |
string | $sortRow | Sorting row |
int | $return_SortNumber_After_This_Uid | Uid of record from $table in this $pid and for which the return value will be set to a free sorting number after that record. This is used to return a sortingValue if the list is resorted because of inserting records inside the list and not in the top |
Definition at line 6839 of file DataHandler.php.
References DataHandler\$sortIntervals, and DataHandler\deleteClause().
Referenced by DataHandler\getSortNumber().
rmComma | ( | $input | ) |
Returns the $input string without a comma in the end
string | $input | Input string |
Definition at line 7119 of file DataHandler.php.
Referenced by DataHandler\noRecordsFromUnallowedTables().
setControl | ( | array | $control | ) |
array | $control |
Definition at line 706 of file DataHandler.php.
References DataHandler\$control.
setDefaultsFromUserTS | ( | $userTS | ) |
Initializes default values coming from User TSconfig
array | $userTS | User TSconfig array |
Definition at line 797 of file DataHandler.php.
References $GLOBALS.
setHistory | ( | $table, | |
$id, | |||
$logId | |||
) |
Setting sys_history record, based on content previously set in $this->historyRecords[$table . ':' . $id] (by compareFieldArrayWithCurrentAndUnset())
string | $table | Table name |
int | $id | Record ID |
int | $logId | Log entry ID, important for linking between log and history views |
Definition at line 6699 of file DataHandler.php.
Referenced by DataHandler\updateDB().
setMirror | ( | $mirror | ) |
Function that can mirror input values in datamap-array to other uid numbers. Example: $mirror[table][11] = '22,33' will look for content in $this->datamap[table][11] and copy it to $this->datamap[table][22] and $this->datamap[table][33]
array | $mirror | This array has the syntax $mirror[table_name][uid] = [list of uids to copy data-value TO!] |
Definition at line 767 of file DataHandler.php.
References GeneralUtility\trimExplode().
|
protected |
Sets NULL values in haystack array. The general behaviour in the user interface is to enable/activate fields. Thus, this method uses NULL as value to be stored if a field is not active.
array | $active | hierarchical array with active elements |
array | $haystack | hierarchical array with haystack to be modified |
Definition at line 8207 of file DataHandler.php.
References elseif.
Referenced by DataHandler\controlActiveElements().
setTSconfigPermissions | ( | $fieldArray, | |
$TSConfig_p | |||
) |
Setting up perms_* fields in $fieldArray based on TSconfig input Used for new pages
array | $fieldArray | Field Array, returned with modifications |
array | $TSConfig_p | TSconfig properties |
Definition at line 6917 of file DataHandler.php.
References DataHandler\assemblePermissions(), and MathUtility\canBeInterpretedAsInteger().
start | ( | $data, | |
$cmd, | |||
$altUserObject = null |
|||
) |
Initializing. For details, see 'TYPO3 Core API' document. This function does not start the processing of data, but merely initializes the object
array | $data | Data to be modified or inserted in the database |
array | $cmd | Commands to copy, move, delete, localize, versionize records. |
BackendUserAuthentication | NULL | $altUserObject | An alternative userobject you can set instead of the default, which is $GLOBALS['BE_USER'] |
Definition at line 721 of file DataHandler.php.
References DataHandler\$defaultPermissions, $GLOBALS, and DataHandler\getExcludeListArray().
tableAdminOnly | ( | $table | ) |
Checks if the $table is only editable by admin-users
string | $table | Table name |
Definition at line 6330 of file DataHandler.php.
tableReadOnly | ( | $table | ) |
Checks if the $table is readOnly
string | $table | Table name |
Definition at line 6318 of file DataHandler.php.
Referenced by DataHandler\noRecordsFromUnallowedTables().
|
protected |
Performs transformation of content from richtext element to database.
string | $value | Value to transform. |
string | $table | The table name |
string | $field | The field name |
array | $defaultExtras | Default extras configuration of this field - typically "richtext:rte_transform[mode=ts_css]" |
array | $thisConfig | Configuration for RTEs; A mix between TSconfig and others. Configuration for additional transformation information |
int | $pid | PID value of record (true parent page id) |
Definition at line 1588 of file DataHandler.php.
References BackendUtility\getSpecConfParametersFromArray(), and GeneralUtility\makeInstance().
Referenced by DataHandler\checkValue_flex_procInData_travDS(), and DataHandler\fillInFieldArray().
|
protected |
Triggers a remap action for a specific record.
Some records are post-processed by the processRemapStack() method (e.g. IRRE children). This method determines whether an action/modification is executed directly to a record or is postponed to happen after remapping data.
string | $table | Name of the table |
string | $id | Id of the record (can also be a "NEW..." string) |
array | $callback | The method to be called |
array | $arguments | The arguments to be submitted to the callback method |
bool | $forceRemapStackActions | Whether to force to use the stack |
Definition at line 5936 of file DataHandler.php.
References DataHandler\addRemapAction().
undeleteRecord | ( | $table, | |
$uid | |||
) |
Undelete a single record
string | $table | Table name |
int | $uid | Record UID |
Definition at line 4835 of file DataHandler.php.
References DataHandler\deleteRecord(), and DataHandler\isRecordUndeletable().
|
protected |
Unsets elements (e.g. of the data map) that shall be deleted. This avoids to modify records that will be deleted later on.
array | $elements | Elements to be modified |
Definition at line 8150 of file DataHandler.php.
References ArrayUtility\arrayDiffAssocRecursive(), and DataHandler\getCommandMapElements().
updateDB | ( | $table, | |
$id, | |||
$fieldArray | |||
) |
Update database record Does not check permissions but expects them to be verified on beforehand
string | $table | Record table name |
int | $id | Record uid |
array | $fieldArray | Array of field=>value pairs to insert. FIELDS MUST MATCH the database FIELDS. No check is done. |
Definition at line 6538 of file DataHandler.php.
References DataHandler\checkStoredRecord(), elseif, DataHandler\getRecordPropertiesFromRow(), DataHandler\insertUpdateDB_preprocessBasedOnFieldType(), DataHandler\log(), DataHandler\registerRecordIdForPageCacheClearing(), and DataHandler\setHistory().
Referenced by DataHandler\fixCopyAfterDuplFields(), DataHandler\fixUniqueInPid(), DataHandler\placeholderShadowing(), DataHandler\processRemapStack(), DataHandler\remapListedDBRecords(), and DataHandler\updateFlexFormData().
|
protected |
Updates FlexForm data.
string | $flexFormId,e.g. | |
array | $modifications | Modifications with paths and values (e.g. 'sDEF/lDEV/field/vDEF' => 'TYPO3') |
Definition at line 5885 of file DataHandler.php.
References MathUtility\canBeInterpretedAsInteger(), DataHandler\recordInfo(), ArrayUtility\setValueByPath(), DataHandler\updateDB(), BackendUtility\workspaceOL(), and GeneralUtility\xml2array().
Referenced by DataHandler\processRemapStack().
version_remapMMForVersionSwap_execSwap | ( | $table, | |
$id, | |||
$swapWith | |||
) |
Performing the remapping operations found necessary in version_remapMMForVersionSwap() It must be done in three steps with an intermediate "fake" uid. The UID can be something else than -$id (fx. 9999999+$id if you dare... :-)- as long as it is unique.
string | $table | Table for the two input records |
int | $id | Current record (about to go offline) |
int | $swapWith | Swap record (about to go online) |
Definition at line 5510 of file DataHandler.php.
versionizeRecord | ( | $table, | |
$id, | |||
$label, | |||
$delete = false |
|||
) |
Creates a new version of a record (Requires support in the table)
string | $table | Table name |
int | $id | Record uid to versionize |
string | $label | Version label |
bool | $delete | If TRUE, the version is created to delete the record. |
Definition at line 5319 of file DataHandler.php.
References DataHandler\cannotDeleteRecord(), Enumeration\cast(), DataHandler\copyRecord_raw(), VersionState\DEFAULT_STATE, VersionState\DELETE_PLACEHOLDER, DataHandler\deleteClause(), DataHandler\doesRecordExist(), BackendUtility\getWorkspaceVersionOfRecord(), DataHandler\isElementToBeDeleted(), VersionState\MOVE_PLACEHOLDER, DataHandler\newlog(), and DataHandler\recordInfo().
Referenced by DataHandlerHook\moveRecord(), DataHandlerHook\processCmdmap(), DataHandlerHook\processCmdmap_deleteAction(), and DataHandlerHook\versionizePages().
$admin |
Definition at line 375 of file DataHandler.php.
$alternativeFileName = array() |
Definition at line 232 of file DataHandler.php.
$alternativeFilePath = array() |
Definition at line 239 of file DataHandler.php.
$autoVersionIdMap = array() |
Definition at line 277 of file DataHandler.php.
$autoVersioningUpdate = false |
Definition at line 639 of file DataHandler.php.
$BE_USER |
Definition at line 354 of file DataHandler.php.
$bypassAccessCheckForRecords = false |
Definition at line 187 of file DataHandler.php.
$bypassFileHandling = false |
Definition at line 179 of file DataHandler.php.
$bypassWorkspaceRestrictions = false |
Definition at line 171 of file DataHandler.php.
$cachedTSconfig = array() |
Definition at line 496 of file DataHandler.php.
Referenced by DataHandler\getLocalTCE().
|
protected |
Definition at line 692 of file DataHandler.php.
$callBackObj |
Definition at line 267 of file DataHandler.php.
$callFromImpExp = false |
Definition at line 609 of file DataHandler.php.
|
protected |
Definition at line 651 of file DataHandler.php.
Referenced by DataHandler\getCheckModifyAccessListHookObjects().
$checkSimilar = true |
Definition at line 85 of file DataHandler.php.
$checkStoredRecords = true |
Definition at line 102 of file DataHandler.php.
$checkStoredRecords_loose = true |
Definition at line 109 of file DataHandler.php.
$checkValue_currentRecord = array() |
Definition at line 632 of file DataHandler.php.
$checkWorkspaceCache = array() |
Definition at line 510 of file DataHandler.php.
$clear_flexFormData_vDEFbase = false |
Definition at line 146 of file DataHandler.php.
$cmdmap = array() |
Definition at line 421 of file DataHandler.php.
|
protected |
Definition at line 407 of file DataHandler.php.
Referenced by DataHandler\setControl().
$copiedFileMap = array() |
Definition at line 312 of file DataHandler.php.
$copyMappingArray = array() |
Definition at line 558 of file DataHandler.php.
$copyMappingArray_merged = array() |
Definition at line 305 of file DataHandler.php.
$copyTree = 0 |
Definition at line 204 of file DataHandler.php.
Referenced by DataHandler\getLocalTCE().
$copyWhichTables = '*' |
Definition at line 195 of file DataHandler.php.
$data_disableFields = array() |
Definition at line 248 of file DataHandler.php.
|
protected |
Definition at line 678 of file DataHandler.php.
$datamap = array() |
Definition at line 414 of file DataHandler.php.
$dbAnalysisStore = array() |
Definition at line 518 of file DataHandler.php.
$defaultPermissions |
Definition at line 382 of file DataHandler.php.
Referenced by DataHandler\start().
$defaultValues = array() |
Definition at line 214 of file DataHandler.php.
$deleteTree = false |
Definition at line 117 of file DataHandler.php.
|
protected |
Definition at line 646 of file DataHandler.php.
$dontProcessTransformations = false |
Definition at line 138 of file DataHandler.php.
Referenced by DataHandler\getLocalTCE(), and DataHandler\insertNewCopyVersion().
$enableLogging = true |
Definition at line 69 of file DataHandler.php.
$errorLog = array() |
Definition at line 326 of file DataHandler.php.
|
protected |
Definition at line 393 of file DataHandler.php.
$fileFunc |
Definition at line 625 of file DataHandler.php.
|
protected |
Definition at line 435 of file DataHandler.php.
$include_filefunctions |
Definition at line 399 of file DataHandler.php.
$isImporting = false |
Definition at line 131 of file DataHandler.php.
$isInWebMount_Cache = array() |
Definition at line 489 of file DataHandler.php.
$isRecordInWebMount_Cache = array() |
Definition at line 482 of file DataHandler.php.
|
protected |
Definition at line 428 of file DataHandler.php.
$neverHideAtCopy = false |
Definition at line 124 of file DataHandler.php.
$newIndexMap = array() |
Definition at line 616 of file DataHandler.php.
$newRelatedIDs = array() |
Definition at line 298 of file DataHandler.php.
|
protected |
Definition at line 664 of file DataHandler.php.
Referenced by DataHandler\getOuterMostInstance().
$overrideValues = array() |
Definition at line 223 of file DataHandler.php.
Referenced by DataHandler\copyL10nOverlayRecords().
$pageCache = array() |
Definition at line 503 of file DataHandler.php.
$pagetreeNeedsRefresh = false |
Definition at line 340 of file DataHandler.php.
$pagetreeRefreshFieldsFromPages = array('pid', 'sorting', 'deleted', 'hidden', 'title', 'doktype', 'is_siteroot', 'fe_group', 'nav_hide', 'nav_title', 'module', 'starttime', 'endtime', 'content_from_pid') |
Definition at line 333 of file DataHandler.php.
$pMap |
Definition at line 443 of file DataHandler.php.
$recInsertAccessCache = array() |
Definition at line 475 of file DataHandler.php.
|
staticprotected |
Definition at line 671 of file DataHandler.php.
$recUpdateAccessCache = array() |
Definition at line 468 of file DataHandler.php.
$registerDBList = array() |
Definition at line 539 of file DataHandler.php.
Referenced by DataHandler\getVersionizedIncomingFieldArray().
$registerDBPids = array() |
Definition at line 546 of file DataHandler.php.
$remapStack = array() |
Definition at line 565 of file DataHandler.php.
|
protected |
Definition at line 587 of file DataHandler.php.
|
protected |
Definition at line 580 of file DataHandler.php.
$remapStackRecords = array() |
Definition at line 573 of file DataHandler.php.
|
protected |
Definition at line 594 of file DataHandler.php.
$removeFilesStore = array() |
Definition at line 525 of file DataHandler.php.
$reverseOrder = false |
Definition at line 77 of file DataHandler.php.
$RTEmagic_copyIndex = array() |
Definition at line 319 of file DataHandler.php.
|
protected |
Definition at line 685 of file DataHandler.php.
$sortIntervals = 256 |
Definition at line 460 of file DataHandler.php.
Referenced by DataHandler\getSortNumber(), and DataHandler\resorting().
$storeLogMessages = true |
Definition at line 62 of file DataHandler.php.
$stripslashes_values = true |
Definition at line 94 of file DataHandler.php.
$substNEWwithIDs = array() |
Definition at line 284 of file DataHandler.php.
$substNEWwithIDs_table = array() |
Definition at line 291 of file DataHandler.php.
$suggestedInsertUids = array() |
Definition at line 259 of file DataHandler.php.
$updateModeL10NdiffData = true |
Definition at line 155 of file DataHandler.php.
$updateModeL10NdiffDataClear = false |
Definition at line 163 of file DataHandler.php.
$updateRefIndexStack = array() |
Definition at line 601 of file DataHandler.php.
$uploadedFileArray = array() |
Definition at line 532 of file DataHandler.php.
$userid |
Definition at line 361 of file DataHandler.php.
Referenced by DataHandler\insertNewCopyVersion(), and DataHandler\newFieldArray().
$username |
Definition at line 368 of file DataHandler.php.
|
protected |
Definition at line 656 of file DataHandler.php.