Public Member Functions | |
| start ($data, $cmd, $altUserObject='') | |
| setMirror ($mirror) | |
| setDefaultsFromUserTS ($userTS) | |
| process_uploads ($postFiles) | |
| process_uploads_traverseArray (&$outputArr, $inputArr, $keyToSet) | |
| hook_processDatamap_afterDatabaseOperations (&$hookObjectsArr, &$status, &$table, &$id, &$fieldArray) | |
| process_datamap () | |
| placeholderShadowing ($table, $id) | |
| 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) | |
| checkValue_text ($res, $value, $tcaFieldConf, $PP, $field='') | |
| checkValue_input ($res, $value, $tcaFieldConf, $PP, $field='') | |
| checkValue_check ($res, $value, $tcaFieldConf, $PP) | |
| checkValue_radio ($res, $value, $tcaFieldConf, $PP) | |
| checkValue_group_select ($res, $value, $tcaFieldConf, $PP, $uploadedFiles, $field) | |
| checkValue_group_select_file ($valueArray, $tcaFieldConf, $curValue, $uploadedFileArray, $status, $table, $id, $recFID) | |
| checkValue_flex ($res, $value, $tcaFieldConf, $PP, $uploadedFiles, $field) | |
| checkValue_flexArray2Xml ($array, $addPrologue=FALSE) | |
| _ACTION_FLEX_FORMdata (&$valueArray, $actionCMDs) | |
| checkValue_inline ($res, $value, $tcaFieldConf, $PP, $field) | |
| checkValue_checkMax ($tcaFieldConf, $valueArray) | |
| getUnique ($table, $field, $value, $id, $newPid=0) | |
| checkValue_text_Eval ($value, $evalArray, $is_in) | |
| checkValue_input_Eval ($value, $evalArray, $is_in) | |
| checkValue_group_select_processDBdata ($valueArray, $tcaFieldConf, $id, $status, $type, $currentTable, $currentField) | |
| 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) | |
| process_cmdmap () | |
| copyRecord ($table, $uid, $destPid, $first=0, $overrideValues=array(), $excludeFields='', $language=0) | |
| copyPages ($uid, $destPid) | |
| copySpecificPage ($uid, $destPid, $copyTablesArray, $first=0) | |
| copyRecord_raw ($table, $uid, $pid, $overrideArray=array()) | |
| rawCopyPageContent ($old_pid, $new_pid, $copyTablesArray) | |
| insertNewCopyVersion ($table, $fieldArray, $realPid) | |
| copyRecord_procBasedOnFieldType ($table, $uid, $field, $value, $row, $conf, $realDestPid, $language=0) | |
| copyRecord_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
| copyRecord_procFilesRefs ($conf, $uid, $value) | |
| copyRecord_fixRTEmagicImages ($table, $theNewSQLID) | |
| copyL10nOverlayRecords ($table, $uid, $destPid, $first=0, $overrideValues=array(), $excludeFields='') | |
| moveRecord ($table, $uid, $destPid) | |
| moveRecord_wsPlaceholders ($table, $uid, $destPid, $wsUid) | |
| moveRecord_raw ($table, $uid, $destPid) | |
| moveRecord_procFields ($table, $uid, $destPid) | |
| moveRecord_procBasedOnFieldType ($table, $uid, $destPid, $field, $value, $conf) | |
| moveL10nOverlayRecords ($table, $uid, $destPid) | |
| localize ($table, $uid, $language) | |
| 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) | |
| deleteRecord_flexFormCallBack ($dsArr, $dataValue, $PA, $structurePath, $pObj) | |
| deletePages ($uid, $force=FALSE, $forceHardDelete=FALSE) | |
| deleteSpecificPage ($uid, $forceHardDelete=FALSE) | |
| canDeletePage ($uid) | |
| cannotDeleteRecord ($table, $id) | |
| isRecordUndeletable ($table, $uid) | |
| deleteRecord_procFields ($table, $uid, $undeleteRecord=false) | |
| deleteRecord_procBasedOnFieldType ($table, $uid, $field, $value, $conf, $undeleteRecord=false) | |
| deleteL10nOverlayRecords ($table, $uid) | |
| versionizeRecord ($table, $id, $label, $delete=FALSE, $versionizeTree=-1) | |
| versionizePages ($uid, $label, $versionizeTree) | |
| version_swap ($table, $id, $swapWith, $swapIntoWS=0) | |
| version_clearWSID ($table, $id, $flush=FALSE) | |
| version_setStage ($table, $id, $stageId, $comment='', $accumulateForNotifEmail=FALSE) | |
| version_swap_procBasedOnFieldType ($table, $field, $conf, &$curVersion, &$swapVersion) | |
| version_remapMMForVersionSwap ($table, $id, $swapWith) | |
| version_remapMMForVersionSwap_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) | |
| version_remapMMForVersionSwap_execSwap ($table, $id, $swapWith) | |
| remapListedDBRecords () | |
| remapListedDBRecords_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
| remapListedDBRecords_procDBRefs ($conf, $value, $MM_localUid, $table) | |
| remapListedDBRecords_procInline ($conf, $value, $uid, $table) | |
| processRemapStack () | |
| getVersionizedIncomingFieldArray ($table, $id, &$incomingFieldArray, &$registerDBList) | |
| checkModifyAccessList ($table) | |
| isRecordInWebMount ($table, $id) | |
| isInWebMount ($pid) | |
| checkRecordUpdateAccess ($table, $id, $data=false, &$hookObjectsArr=false) | |
| 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 ($dest, $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) | |
| clearHistory ($maxAgeSeconds=604800, $table) | |
| updateRefIndex ($table, $id) | |
| 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 () | |
| removeCacheFiles () | |
| int_pageTreeInfo ($CPtable, $pid, $counter, $rootID) | |
| compileAdminTables () | |
| fixUniqueInPid ($table, $uid) | |
| fixCopyAfterDuplFields ($table, $uid, $prevUid, $update, $newData=array()) | |
| extFileFields ($table) | |
| getUniqueFields ($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) | |
| notifyStageChange ($stat, $stageId, $table, $id, $comment) | |
| notifyStageChange_getEmails ($listOfUsers, $noTablePrefix=FALSE) | |
| isRecordCopied ($table, $uid) | |
| clear_cache ($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=FALSE, $error=0) | |
| printLogErrorMessages ($redirect) | |
| internal_clearPageCache () | |
| findPageIdsForVersionStateChange ($table, $idList, $workspaceId, &$pageIdList, &$elementList) | |
| findPageElementsForVersionStageChange ($pageIdList, $workspaceId, &$elementList) | |
| findRealPageIds (&$idList) | |
| findPageElementsForVersionSwap ($table, $id, $offlineId) | |
| insertUpdateDB_preprocessBasedOnFieldType ($table, $fieldArray) | |
Public Attributes | |
| $storeLogMessages = TRUE | |
| $enableLogging = TRUE | |
| $reverseOrder = FALSE | |
| $checkSimilar = TRUE | |
| $stripslashes_values = TRUE | |
| $checkStoredRecords = TRUE | |
| $checkStoredRecords_loose = TRUE | |
| $deleteTree = FALSE | |
| $neverHideAtCopy = FALSE | |
| $dontProcessTransformations = FALSE | |
| $clear_flexFormData_vDEFbase = FALSE | |
| $updateModeL10NdiffData = TRUE | |
| $updateModeL10NdiffDataClear = FALSE | |
| $bypassWorkspaceRestrictions = FALSE | |
| $bypassFileHandling = FALSE | |
| $bypassAccessCheckForRecords = FALSE | |
| $copyWhichTables = '*' | |
| $generalComment = '' | |
| $copyTree = 0 | |
| $defaultValues = array() | |
| $overrideValues = array() | |
| $alternativeFileName = array() | |
| $alternativeFilePath = array() | |
| $data_disableFields = array() | |
| $suggestedInsertUids = array() | |
| $callBackObj | |
| $autoVersionIdMap = Array() | |
| $substNEWwithIDs = Array() | |
| $substNEWwithIDs_table = Array() | |
| $newRelatedIDs = Array() | |
| $copyMappingArray_merged = Array() | |
| $copiedFileMap = Array() | |
| $RTEmagic_copyIndex = Array() | |
| $errorLog = Array() | |
| $accumulateForNotifEmail = Array() | |
| $BE_USER | |
| $userid | |
| $username | |
| $admin | |
| $defaultPermissions | |
| $exclude_array | |
| $datamap = Array() | |
| $cmdmap = Array() | |
| $pMap | |
| $sortIntervals = 256 | |
| $recUpdateAccessCache = Array() | |
| $recInsertAccessCache = Array() | |
| $isRecordInWebMount_Cache = array() | |
| $isInWebMount_Cache = array() | |
| $cachedTSconfig = array() | |
| $pageCache = Array() | |
| $checkWorkspaceCache = Array() | |
| $dbAnalysisStore = array() | |
| $removeFilesStore = array() | |
| $uploadedFileArray = array() | |
| $registerDBList = array() | |
| $registerDBPids = array() | |
| $copyMappingArray = Array() | |
| $remapStack = array() | |
| $remapStackRecords = array() | |
| $updateRefIndexStack = array() | |
| $callFromImpExp = false | |
| $newIndexMap = array() | |
| $fileFunc | |
| $checkValue_currentRecord = array() | |
| $autoVersioningUpdate = FALSE | |
Protected Member Functions | |
| getCheckModifyAccessListHookObjects () | |
| checkValue_inline_processDBdata ($valueArray, $tcaFieldConf, $id, $status, $table, $field) | |
| inlineLocalizeSynchronize ($table, $id, $command) | |
Protected Attributes | |
| $disableDeleteClause = false | |
| $checkModifyAccessListHookObjects | |
Definition at line 233 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::_ACTION_FLEX_FORMdata | ( | &$ | valueArray, | |
| $ | actionCMDs | |||
| ) |
Actions for flex form element (move, delete)
| array | &$valueArrayToRemoveFrom: by reference | |
| array | $deleteCMDS: ... * |
Definition at line 1907 of file class.t3lib_tcemain.php.
References $key, $value, and t3lib_div::array_merge().
Referenced by checkValue_flex().
| t3lib_TCEmain::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 name | |
| array | Incoming array (passed by reference) |
Definition at line 6484 of file class.t3lib_tcemain.php.
References $GLOBALS, and t3lib_BEfunc::deleteClause().
Referenced by process_datamap().
| t3lib_TCEmain::assemblePermissions | ( | $ | string | ) |
Calculates the bitvalue of the permissions given in a string, comma-sep
| string | List of pMap strings |
Definition at line 6580 of file class.t3lib_tcemain.php.
References $key, $value, and t3lib_div::trimExplode().
Referenced by newFieldArray(), and setTSconfigPermissions().
| t3lib_TCEmain::canDeletePage | ( | $ | uid | ) |
Used to evaluate if a page can be deleted
| integer | Page id |
Definition at line 4421 of file class.t3lib_tcemain.php.
References doesBranchExist(), doesRecordExist(), noRecordsFromUnallowedTables(), and t3lib_div::trimExplode().
Referenced by cannotDeleteRecord(), and deletePages().
| t3lib_TCEmain::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 | Record Table | |
| integer | Record UID |
Definition at line 4456 of file class.t3lib_tcemain.php.
References $res, canDeletePage(), and doesRecordExist().
Referenced by versionizeRecord().
| t3lib_TCEmain::checkModifyAccessList | ( | $ | table | ) |
Checking group modify_table access list
| string | Table name |
Definition at line 5568 of file class.t3lib_tcemain.php.
References $res, getCheckModifyAccessListHookObjects(), t3lib_div::inList(), and tableAdminOnly().
Referenced by getCheckModifyAccessListHookObjects(), noRecordsFromUnallowedTables(), process_cmdmap(), and process_datamap().
| t3lib_TCEmain::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 | Tablename to check | |
| integer | Integer PID | |
| integer | For logging: Action number. |
Definition at line 5654 of file class.t3lib_tcemain.php.
References $pid, $res, doesRecordExist(), getRecordProperties(), isTableAllowedForThisPage(), and log().
Referenced by moveRecord(), and process_datamap().
| t3lib_TCEmain::checkRecordUpdateAccess | ( | $ | table, | |
| $ | id, | |||
| $ | data = false, |
|||
| &$ | hookObjectsArr = false | |||
| ) |
Checks if user may update a record with uid=$id from $table
| string | Record table | |
| integer | Record UID | |
| array | Record data | |
| array | Hook objects |
Definition at line 5617 of file class.t3lib_tcemain.php.
References $res, and doesRecordExist().
Referenced by moveRecord(), process_datamap(), version_clearWSID(), version_setStage(), and version_swap().
| t3lib_TCEmain::checkStoredRecord | ( | $ | table, | |
| $ | id, | |||
| $ | fieldArray, | |||
| $ | action | |||
| ) |
Checking stored record to see if the written values are properly updated.
| string | Record table name | |
| integer | Record uid | |
| array | Array of field=>value pairs to insert/update | |
| string | Action, for logging only. |
Definition at line 6215 of file class.t3lib_tcemain.php.
References $GLOBALS, $key, $res, $row, $value, and log().
Referenced by insertDB(), and updateDB().
| t3lib_TCEmain::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 name | |
| string | Field name | |
| string | 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 | The record-uid, mainly - but not exclusively - used for logging | |
| string | 'update' or 'new' flag | |
| integer | 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. | |
| integer | $tscPID |
Definition at line 1245 of file class.t3lib_tcemain.php.
References $PAGES_TYPES, $res, $TCA, $value, checkValue_SW(), doesPageHaveUnallowedTables(), getRecordProperties(), t3lib_div::inList(), t3lib_div::loadTCA(), log(), and recordInfo().
Referenced by fillInFieldArray(), and insertNewCopyVersion().
| t3lib_TCEmain::checkValue_check | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP | |||
| ) |
Evaluates 'check' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
Definition at line 1413 of file class.t3lib_tcemain.php.
Referenced by checkValue_SW().
| t3lib_TCEmain::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 1984 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select(), checkValue_inline_processDBdata(), and processRemapStack().
| t3lib_TCEmain::checkValue_flex | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | uploadedFiles, | |||
| $ | field | |||
| ) |
Evaluates 'flex' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| array | Uploaded files for the field | |
| array | Current record array. | |
| string | Field name |
Definition at line 1833 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $value, _ACTION_FLEX_FORMdata(), t3lib_div::_GP(), t3lib_div::array_merge_recursive_overrule(), checkValue_flex_procInData(), checkValue_flexArray2Xml(), t3lib_BEfunc::getFlexFormDS(), and t3lib_div::xml2array().
Referenced by checkValue_SW().
| t3lib_TCEmain::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 class.t3lib_flexformtools.php
| array | The 'data' part of the INPUT flexform data | |
| array | The 'data' part of the CURRENT flexform data | |
| array | The uploaded files for the 'data' part of the INPUT flexform data | |
| array | 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 | A set of parameters to pass through for the calling of the evaluation functions | |
| string | Optional call back function, see checkValue_flex_procInData_travDS() DEPRICATED, use class.t3lib_flexformtools.php instead for traversal! |
Definition at line 2281 of file class.t3lib_tcemain.php.
References checkValue_flex_procInData_travDS(), and t3lib_div::resolveSheetDefInDS().
Referenced by checkValue_flex(), copyRecord_procBasedOnFieldType(), remapListedDBRecords(), and version_remapMMForVersionSwap().
| t3lib_TCEmain::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 | New values (those being processed): Multidimensional Data array for sheet/language, passed by reference! | |
| array | Current values: Multidimensional Data array. May be empty array() if not needed (for callBackFunctions) | |
| array | Uploaded files array for sheet/language. May be empty array() if not needed (for callBackFunctions) | |
| array | Data structure which fits the data array | |
| array | A set of parameters to pass through for the calling of the evaluation functions / call back function | |
| string | Call back function, default is checkValue_SW(). If $this->callBackObj is set to an object, the callback function in that object is called instead. | |
| [type] | $structurePath: ... |
Definition at line 2318 of file class.t3lib_tcemain.php.
References $GLOBALS, $key, $res, checkValue_SW(), debug(), t3lib_BEfunc::getPagesTSconfig(), t3lib_BEfunc::getSpecConfParts(), t3lib_BEfunc::getTCAtypeValue(), t3lib_BEfunc::RTEgetObj(), and t3lib_BEfunc::RTEsetup().
Referenced by checkValue_flex_procInData().
| t3lib_TCEmain::checkValue_flexArray2Xml | ( | $ | array, | |
| $ | addPrologue = FALSE | |||
| ) |
Converts an array to FlexForm XML
| array | Array with FlexForm data | |
| boolean | If set, the XML prologue is returned as well. |
Definition at line 1894 of file class.t3lib_tcemain.php.
References t3lib_div::makeInstance().
Referenced by checkValue_flex(), and remapListedDBRecords().
| t3lib_TCEmain::checkValue_group_select | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | uploadedFiles, | |||
| $ | field | |||
| ) |
Evaluates 'group' or 'select' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| [type] | $uploadedFiles: ... | |
| string | Field name |
Definition at line 1462 of file class.t3lib_tcemain.php.
References $res, $value, checkValue_checkMax(), checkValue_group_select_explodeSelectGroupValue(), checkValue_group_select_file(), checkValue_group_select_processDBdata(), convNumEntityToByteValue(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_group_select_explodeSelectGroupValue | ( | $ | value | ) |
Explodes the $value, which is a list of files/uids (group select)
| string | 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 2254 of file class.t3lib_tcemain.php.
References $value, and t3lib_div::trimExplode().
Referenced by checkValue_group_select().
| t3lib_TCEmain::checkValue_group_select_file | ( | $ | valueArray, | |
| $ | tcaFieldConf, | |||
| $ | curValue, | |||
| $ | uploadedFileArray, | |||
| $ | status, | |||
| $ | table, | |||
| $ | id, | |||
| $ | recFID | |||
| ) |
Handling files for group/select function
| array | Array of incoming file references. Keys are numeric, values are files (basically, this is the exploded list of incoming files) | |
| array | Configuration array from TCA of the field | |
| string | Current value of the field | |
| array | Array of uploaded files, if any | |
| string | Status ("update" or ?) | |
| string | tablename of record | |
| integer | UID of record | |
| string | Field identifier ([table:uid:field:....more for flexforms?] |
Definition at line 1574 of file class.t3lib_tcemain.php.
References $GLOBALS, $key, $uploadedFileArray, destPathFromUploadFolder(), t3lib_div::fixWindowsFilePath(), t3lib_div::formatSize(), getRecordProperties(), t3lib_div::getUserObj(), t3lib_div::isFirstPartOfStr(), log(), t3lib_div::makeInstance(), t3lib_div::mkdir_deep(), t3lib_div::removeArrayEntryByValue(), t3lib_div::split_fileref(), t3lib_div::trimExplode(), and t3lib_div::upload_copy_move().
Referenced by checkValue_group_select().
| t3lib_TCEmain::checkValue_group_select_processDBdata | ( | $ | valueArray, | |
| $ | tcaFieldConf, | |||
| $ | id, | |||
| $ | status, | |||
| $ | type, | |||
| $ | currentTable, | |||
| $ | currentField | |||
| ) |
Returns data for group/db and select fields
| array | Current value array | |
| array | TCA field config | |
| integer | Record id, used for look-up of MM relations (local_uid) | |
| string | Status string ('update' or 'new') | |
| string | The type, either 'select', 'group' or 'inline' | |
| string | Table name, needs to be passed to t3lib_loadDBGroup | |
| string | field name, needs to be set for writing to sys_history |
Definition at line 2207 of file class.t3lib_tcemain.php.
References t3lib_div::makeInstance().
Referenced by checkValue_group_select(), and checkValue_inline_processDBdata().
| t3lib_TCEmain::checkValue_inline | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | field | |||
| ) |
Evaluates 'inline' type values. (partly copied from the select_group function on this issue)
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| string | Field name |
Definition at line 1944 of file class.t3lib_tcemain.php.
References $res, $value, checkValue_inline_processDBdata(), t3lib_div::testInt(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_inline_processDBdata | ( | $ | valueArray, | |
| $ | tcaFieldConf, | |||
| $ | id, | |||
| $ | status, | |||
| $ | table, | |||
| $ | field | |||
| ) | [protected] |
Returns data for inline fields.
| array | Current value array | |
| array | TCA field config | |
| integer | Record id | |
| string | Status string ('update' or 'new') | |
| string | Table name, needs to be passed to t3lib_loadDBGroup | |
| string | The current field the values are modified for |
Definition at line 2481 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, checkValue_checkMax(), checkValue_group_select_processDBdata(), getInlineFieldType(), t3lib_BEfunc::getInlineLocalizationMode(), t3lib_BEfunc::getRecordWSOL(), t3lib_div::makeInstance(), and updateDB().
Referenced by checkValue_inline().
| t3lib_TCEmain::checkValue_input | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | field = '' | |||
| ) |
Evaluate "input" type values.
| array | The result array. The processed value (if any!) is set in the "value" key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| string | Field name |
Definition at line 1373 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $value, checkValue_input_Eval(), getUnique(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_input_Eval | ( | $ | value, | |
| $ | evalArray, | |||
| $ | is_in | |||
| ) |
Evaluation of 'input'-type values based on 'eval' list
| string | Value to evaluate | |
| array | Array of evaluations to traverse. | |
| string | Is-in string for 'is_in' evaluation |
Definition at line 2101 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $value, and t3lib_div::getUserObj().
Referenced by checkValue_input().
| t3lib_TCEmain::checkValue_radio | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP | |||
| ) |
Evaluates 'radio' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
Definition at line 1436 of file class.t3lib_tcemain.php.
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_SW | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | table, | |||
| $ | id, | |||
| $ | curValue, | |||
| $ | status, | |||
| $ | realPid, | |||
| $ | recFID, | |||
| $ | field, | |||
| $ | uploadedFiles, | |||
| $ | tscPID | |||
| ) |
Branches out evaluation of a field value based on its type as configured in TCA Can be called for FlexForm pseudo fields as well, BUT must not have $field set if so.
| array | The result array. The processed value (if any!) is set in the "value" key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| string | Table name | |
| integer | Return UID | |
| [type] | $curValue: ... | |
| [type] | $status: ... | |
| integer | 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. | |
| [type] | $recFID: ... | |
| string | Field name. Must NOT be set if the call is for a flexform field (since flexforms are not allowed within flexforms). | |
| [type] | $uploadedFiles: ... | |
| [type] | $tscPID: ... |
Definition at line 1305 of file class.t3lib_tcemain.php.
References $res, $value, checkValue_check(), checkValue_flex(), checkValue_group_select(), checkValue_inline(), checkValue_input(), checkValue_radio(), and checkValue_text().
Referenced by checkValue(), and checkValue_flex_procInData_travDS().
| t3lib_TCEmain::checkValue_text | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | field = '' | |||
| ) |
Evaluate "text" type values.
| array | The result array. The processed value (if any!) is set in the "value" key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| string | Field name |
Definition at line 1357 of file class.t3lib_tcemain.php.
References $res, $value, checkValue_text_Eval(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_text_Eval | ( | $ | value, | |
| $ | evalArray, | |||
| $ | is_in | |||
| ) |
Definition at line 2066 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $value, and t3lib_div::getUserObj().
Referenced by checkValue_text().
| t3lib_TCEmain::clear_cache | ( | $ | 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 name of record that was just updated. | |
| integer | UID of updated / inserted record |
Definition at line 7280 of file class.t3lib_tcemain.php.
References $GLOBALS, $pageCache, $TYPO3_CONF_VARS, t3lib_div::callUserFunction(), clear_cacheCmd(), getPID(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSCpid(), t3lib_extMgm::isLoaded(), and t3lib_div::trimExplode().
Referenced by deleteRecord(), insertDB(), moveRecord_raw(), updateDB(), and version_swap().
| t3lib_TCEmain::clear_cacheCmd | ( | $ | cacheCmd | ) |
Clears the cache based on the command $cacheCmd.
$cacheCmd='pages': Clears cache for all pages. 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.
$cacheCmd=[integer]: Clears cache for the page pointed to by $cacheCmd (an integer).
Can call a list of post processing functions as defined in $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] (numeric array with values being the function references, called by t3lib_div::callUserFunction()).
Note: The following cache_* are intentionally not cleared by $cacheCmd='all':
| string | the cache command, see above description |
Definition at line 7434 of file class.t3lib_tcemain.php.
References $GLOBALS, $pageCache, $TYPO3_CONF_VARS, t3lib_div::callUserFunction(), internal_clearPageCache(), t3lib_cache::isCachingFrameworkInitialized(), t3lib_extMgm::isLoaded(), removeCacheFiles(), and t3lib_div::testInt().
Referenced by clear_cache().
| t3lib_TCEmain::clearHistory | ( | $ | maxAgeSeconds = 604800, |
|
| $ | table | |||
| ) |
Clearing sys_history table from older entries that are expired.
| integer | $maxAgeSeconds (int+) however will set a max age in seconds so that any entry older than current time minus the age removed no matter what. If zero, this is not effective. | |
| string | table where the history should be cleared |
Definition at line 6285 of file class.t3lib_tcemain.php.
References $GLOBALS.
Referenced by setHistory().
| t3lib_TCEmain::clearPrefixFromValue | ( | $ | table, | |
| $ | value | |||
| ) |
Removes the prependAtCopy prefix on values
| string | Table name | |
| string | The value to fix |
Definition at line 7000 of file class.t3lib_tcemain.php.
References $value, and prependLabel().
Referenced by copyRecord().
| t3lib_TCEmain::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 | Record table name | |
| integer | Record uid | |
| array | 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 6524 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, and $val.
Referenced by process_datamap(), and version_swap().
| t3lib_TCEmain::compileAdminTables | ( | ) |
List of all tables (those administrators has access to = array_keys of $TCA)
Definition at line 6771 of file class.t3lib_tcemain.php.
References $GLOBALS.
Referenced by copyPages(), and versionizePages().
| t3lib_TCEmain::convNumEntityToByteValue | ( | $ | input | ) |
Converts a HTML entity (like {) to the character '123'
| string | Input string |
Definition at line 6607 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select().
| t3lib_TCEmain::copyL10nOverlayRecords | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid, | |||
| $ | first = 0, |
|||
| $ | overrideValues = array(), |
|||
| $ | excludeFields = '' | |||
| ) |
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 |
Definition at line 3435 of file class.t3lib_tcemain.php.
References $GLOBALS, $overrideValues, copyRecord(), t3lib_BEfunc::getRecordsByField(), and t3lib_BEfunc::isTableLocalizable().
Referenced by copyRecord().
| t3lib_TCEmain::copyPages | ( | $ | uid, | |
| $ | destPid | |||
| ) |
Copying pages Main function for copying pages.
| integer | Page UID to copy | |
| integer | 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 2897 of file class.t3lib_tcemain.php.
References compileAdminTables(), copySpecificPage(), t3lib_div::inList(), int_pageTreeInfo(), and log().
Referenced by process_cmdmap().
| t3lib_TCEmain::copyRecord | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid, | |||
| $ | first = 0, |
|||
| $ | overrideValues = array(), |
|||
| $ | excludeFields = '', |
|||
| $ | language = 0 | |||
| ) |
Copying a single record
| string | Element table | |
| integer | Element UID | |
| integer | $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 | |
| boolean | $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 | |
| array | Associative array with field/value pairs to override directly. Notice; Fields must exist in the table record and NOT be among excluded fields! | |
| string | Commalist of fields to exclude from the copy process (might get default values) | |
| integer | Language ID (from sys_language table) |
Definition at line 2761 of file class.t3lib_tcemain.php.
References $GLOBALS, $overrideValues, $row, $TCA, $value, clearPrefixFromValue(), copyL10nOverlayRecords(), copyRecord_fixRTEmagicImages(), copyRecord_procBasedOnFieldType(), doesRecordExist(), fixCopyAfterDuplFields(), getCopyHeader(), t3lib_BEfunc::getRecordWSOL(), getTableEntries(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSconfig_pidValue(), t3lib_div::inList(), isRecordCopied(), t3lib_div::loadTCA(), log(), t3lib_div::makeInstance(), newFieldArray(), resolvePid(), t3lib_div::trimExplode(), and t3lib_BEfunc::wsMapId().
Referenced by copyL10nOverlayRecords(), copyRecord_procBasedOnFieldType(), copySpecificPage(), localize(), and process_cmdmap().
| t3lib_TCEmain::copyRecord_fixRTEmagicImages | ( | $ | table, | |
| $ | theNewSQLID | |||
| ) |
Copies any "RTEmagic" image files found in record with table/id to new names. Usage: After copying a record this function should be called to search for "RTEmagic"-images inside the record. If such are found they should be duplicated to new names so all records have a 1-1 relation to them. Reason for copying RTEmagic files: a) if you remove an RTEmagic image from a record it will remove the file - any other record using it will have a lost reference! b) RTEmagic images keeps an original and a copy. The copy always is re-calculated to have the correct physical measures as the HTML tag inserting it defines. This is calculated from the original. Two records using the same image could have difference HTML-width/heights for the image and the copy could only comply with one of them. If you don't want a 1-1 relation you should NOT use RTEmagic files but just insert it as a normal file reference to a file inside fileadmin/ folder
| string | Table name | |
| integer | Record UID |
Definition at line 3346 of file class.t3lib_tcemain.php.
References $TYPO3_DB, t3lib_div::getFileAbsFileName(), t3lib_div::isFirstPartOfStr(), t3lib_div::makeInstance(), newlog(), t3lib_refindex::setReferenceValue(), and t3lib_div::upload_copy_move().
Referenced by copyRecord(), and copyRecord_raw().
| t3lib_TCEmain::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 | Array of parameters in num-indexes: table, uid, field | |
| array | TCA field configuration (from Data Structure XML) | |
| string | The value of the flexForm field | |
| string | Not used. | |
| string | Not used. |
Definition at line 3264 of file class.t3lib_tcemain.php.
References copyRecord_procBasedOnFieldType(), copyRecord_procFilesRefs(), and isReferenceField().
Referenced by copyRecord_procBasedOnFieldType().
| t3lib_TCEmain::copyRecord_procBasedOnFieldType | ( | $ | table, | |
| $ | uid, | |||
| $ | field, | |||
| $ | value, | |||
| $ | row, | |||
| $ | conf, | |||
| $ | realDestPid, | |||
| $ | language = 0 | |||
| ) |
Processing/Preparing content for copyRecord() function
| string | Table name | |
| integer | Record uid | |
| string | Field name being processed | |
| string | Input value to be processed. | |
| array | Record array | |
| array | TCA field configuration | |
| integer | Real page id (pid) the record is copied to | |
| integer | Language ID (from sys_language table) used in the duplicated record |
Definition at line 3143 of file class.t3lib_tcemain.php.
References $row, $TCA, $value, checkValue_flex_procInData(), copyRecord(), copyRecord_flexFormCallBack(), copyRecord_procFilesRefs(), copyRecord_raw(), t3lib_BEfunc::getFlexFormDS(), getInlineFieldType(), t3lib_BEfunc::getInlineLocalizationMode(), t3lib_BEfunc::getRecordLocalization(), isReferenceField(), t3lib_BEfunc::isTableLocalizable(), localize(), t3lib_div::makeInstance(), t3lib_div::testInt(), versionizeRecord(), and t3lib_div::xml2array().
Referenced by copyRecord(), copyRecord_flexFormCallBack(), and copyRecord_raw().
| t3lib_TCEmain::copyRecord_procFilesRefs | ( | $ | conf, | |
| $ | uid, | |||
| $ | value | |||
| ) |
Modifying a field value for any situation regarding files/references: For attached files: take current filenames and prepend absolute paths so they get copied. For DB references: Nothing done.
| array | TCE field config | |
| integer | Record UID | |
| string | Field value (eg. list of files) |
Definition at line 3293 of file class.t3lib_tcemain.php.
References $value, destPathFromUploadFolder(), t3lib_div::makeInstance(), and t3lib_div::trimExplode().
Referenced by copyRecord_flexFormCallBack(), and copyRecord_procBasedOnFieldType().
| t3lib_TCEmain::copyRecord_raw | ( | $ | table, | |
| $ | uid, | |||
| $ | pid, | |||
| $ | overrideArray = 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 | Element table | |
| integer | Element UID | |
| integer | Element PID (real PID, not checked) | |
| array | Override array - must NOT contain any fields not in the table! |
Definition at line 2986 of file class.t3lib_tcemain.php.
References $pid, $row, $TCA, $value, copyRecord_fixRTEmagicImages(), copyRecord_procBasedOnFieldType(), dbAnalysisStoreExec(), doesRecordExist(), insertNewCopyVersion(), isRecordCopied(), t3lib_div::loadTCA(), log(), recordInfo(), and t3lib_BEfunc::wsMapId().
Referenced by copyRecord_procBasedOnFieldType(), rawCopyPageContent(), versionizePages(), and versionizeRecord().
| t3lib_TCEmain::copySpecificPage | ( | $ | uid, | |
| $ | destPid, | |||
| $ | copyTablesArray, | |||
| $ | first = 0 | |||
| ) |
Copying a single page ($uid) to $destPid and all tables in the array copyTablesArray.
| integer | Page uid | |
| integer | 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 | Table on pages to copy along with the page. | |
| boolean | $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 2951 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $TCA, copyRecord(), and deleteClause().
Referenced by copyPages().
| t3lib_TCEmain::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 6707 of file class.t3lib_tcemain.php.
References t3lib_div::testInt(), and t3lib_BEfunc::wsMapId().
Referenced by copyRecord_raw(), and process_datamap().
| t3lib_TCEmain::deleteAction | ( | $ | table, | |
| $ | id | |||
| ) |
Delete a single record
| string | Table name | |
| integer | Record UID |
Definition at line 4101 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, deleteEl(), deleteL10nOverlayRecords(), t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), newlog(), version_clearWSID(), and versionizeRecord().
Referenced by deleteL10nOverlayRecords(), deleteRecord_procBasedOnFieldType(), and process_cmdmap().
| t3lib_TCEmain::deleteClause | ( | $ | table | ) |
Returns delete-clause for the $table
| string | Table name |
Definition at line 6650 of file class.t3lib_tcemain.php.
References disableDeleteClause().
Referenced by copySpecificPage(), deleteSpecificPage(), destNotInsideSelf(), doesBranchExist(), doesRecordExist(), doesRecordExist_pageLookUp(), getCopyHeader(), getSortNumber(), getUnique(), int_pageTreeInfo(), rawCopyPageContent(), resorting(), and versionizeRecord().
| t3lib_TCEmain::deleteEl | ( | $ | table, | |
| $ | uid, | |||
| $ | noRecordCheck = FALSE, |
|||
| $ | forceHardDelete = FALSE | |||
| ) |
Delete element from any table
| string | Table name | |
| integer | Record UID | |
| boolean | Flag: If $noRecordCheck is set, then the function does not check permission to delete record | |
| boolean | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4159 of file class.t3lib_tcemain.php.
References deletePages(), deleteRecord(), and deleteVersionsForRecord().
Referenced by deleteAction(), version_clearWSID(), and version_swap().
| t3lib_TCEmain::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 4571 of file class.t3lib_tcemain.php.
References $GLOBALS, deleteAction(), t3lib_BEfunc::getRecordsByField(), and t3lib_BEfunc::isTableLocalizable().
Referenced by deleteAction(), and deleteRecord().
| t3lib_TCEmain::deletePages | ( | $ | uid, | |
| $ | force = FALSE, |
|||
| $ | forceHardDelete = FALSE | |||
| ) |
Used to delete page because it will check for branch below pages and unallowed tables on the page as well.
| integer | Page id | |
| boolean | If TRUE, pages are not checked for permission. | |
| boolean | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4369 of file class.t3lib_tcemain.php.
References $res, canDeletePage(), deleteSpecificPage(), doesBranchExist(), newlog(), and t3lib_div::trimExplode().
Referenced by deleteEl(), and deleteVersionsForRecord().
| t3lib_TCEmain::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 name | |
| integer | Record UID | |
| boolean | Flag: If $noRecordCheck is set, then the function does not check permission to delete record | |
| boolean | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! | |
| boolean | If TRUE, the "deleted" flag is set to 0 again and thus, the item is undeleted. |
Definition at line 4217 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $value, clear_cache(), deleteL10nOverlayRecords(), deleteRecord_flexFormCallBack(), deleteRecord_procFields(), doesRecordExist(), extFileFields(), extFileFunctions(), getRecordProperties(), t3lib_BEfunc::getRecordRaw(), t3lib_div::loadTCA(), log(), t3lib_div::makeInstance(), and updateRefIndex().
Referenced by deleteEl(), deleteSpecificPage(), deleteVersionsForRecord(), and undeleteRecord().
| t3lib_TCEmain::deleteRecord_flexFormCallBack | ( | $ | dsArr, | |
| $ | dataValue, | |||
| $ | PA, | |||
| $ | structurePath, | |||
| $ | pObj | |||
| ) |
Call back function for deleting file relations for flexform fields in records which are being completely deleted.
| [type] | $dsArr: ... | |
| [type] | $dataValue: ... | |
| [type] | $PA: ... | |
| [type] | $structurePath: ... | |
| [type] | $pObj: ... |
Definition at line 4342 of file class.t3lib_tcemain.php.
References $refIndexObj, log(), and t3lib_div::makeInstance().
Referenced by deleteRecord().
| t3lib_TCEmain::deleteRecord_procBasedOnFieldType | ( | $ | table, | |
| $ | uid, | |||
| $ | field, | |||
| $ | value, | |||
| $ | conf, | |||
| $ | undeleteRecord = false | |||
| ) |
Process fields of a record to be deleted and search for special handling, like inline type, MM records, etc.
| string | $table: Record Table | |
| string | $uid: Record UID | |
| string | $field: Record field | |
| string | $value: Record field value | |
| array | $conf: TCA configuration of current field | |
| boolean | $undeleteRecord: If a record should be undeleted (e.g. from history/undo) |
Definition at line 4528 of file class.t3lib_tcemain.php.
References $value, deleteAction(), getInlineFieldType(), isReferenceField(), t3lib_div::makeInstance(), and undeleteRecord().
Referenced by deleteRecord_procFields().
| t3lib_TCEmain::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 | |
| boolean | $undeleteRecord: If a record should be undeleted (e.g. from history/undo) |
Definition at line 4505 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $value, deleteRecord_procBasedOnFieldType(), t3lib_BEfunc::getRecord(), and t3lib_div::loadTCA().
Referenced by deleteRecord().
| t3lib_TCEmain::deleteSpecificPage | ( | $ | uid, | |
| $ | forceHardDelete = FALSE | |||
| ) |
Delete a page and all records on it.
| integer | Page id | |
| boolean | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4397 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, deleteClause(), deleteRecord(), and deleteVersionsForRecord().
Referenced by deletePages().
| t3lib_TCEmain::deleteVersionsForRecord | ( | $ | table, | |
| $ | uid, | |||
| $ | forceHardDelete | |||
| ) |
Delete versions for element from any table
| string | Table name | |
| integer | Record UID | |
| boolean | If TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY! |
Definition at line 4176 of file class.t3lib_tcemain.php.
References deletePages(), deleteRecord(), and t3lib_BEfunc::selectVersionsOfRecord().
Referenced by deleteEl(), and deleteSpecificPage().
| t3lib_TCEmain::destNotInsideSelf | ( | $ | dest, | |
| $ | id | |||
| ) |
Checks if piage $id is a uid in the rootline from page id, $dest Used when moving a page
| integer | Destination Page ID to test | |
| integer | Page ID to test for presence inside Destination |
Definition at line 5878 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, deleteClause(), and t3lib_BEfunc::fixVersioningPid().
Referenced by moveRecord_raw().
| t3lib_TCEmain::destPathFromUploadFolder | ( | $ | folder | ) |
Returns absolute destination path for the uploadfolder, $folder
| string | Upload folder name, relative to PATH_site |
Definition at line 6629 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select_file(), copyRecord_procFilesRefs(), and extFileFunctions().
| t3lib_TCEmain::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 6640 of file class.t3lib_tcemain.php.
Referenced by deleteClause().
| t3lib_TCEmain::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 | List of page uids, this is added to and outputted in the end | |
| integer | Page ID to select subpages from. | |
| integer | Perms integer to check each page record for. | |
| boolean | Recursion flag: If set, it will go out through the branch. |
Definition at line 5817 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $row, and deleteClause().
Referenced by canDeletePage(), deletePages(), and versionizePages().
| t3lib_TCEmain::doesPageHaveUnallowedTables | ( | $ | page_uid, | |
| $ | doktype | |||
| ) |
Checks if there are records on a page from tables that are not allowed
| integer | Page ID | |
| integer | Page doktype |
Definition at line 5930 of file class.t3lib_tcemain.php.
References $GLOBALS, $PAGES_TYPES, and t3lib_div::trimExplode().
Referenced by checkValue().
| t3lib_TCEmain::doesRecordExist | ( | $ | table, | |
| $ | id, | |||
| $ | perms | |||
| ) |
Checks if record can be selected based on given permission criteria
| string | Record table name | |
| integer | Record UID | |
| mixed | 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 |
Definition at line 5721 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, deleteClause(), doesRecordExist_pageLookUp(), t3lib_BEfunc::fixVersioningPid(), t3lib_BEfunc::getRecordRaw(), isRecordInWebMount(), and t3lib_div::testInt().
Referenced by canDeletePage(), cannotDeleteRecord(), checkRecordInsertAccess(), checkRecordUpdateAccess(), copyRecord(), copyRecord_raw(), deleteRecord(), localize(), moveRecord(), version_swap(), and versionizeRecord().
| t3lib_TCEmain::doesRecordExist_pageLookUp | ( | $ | id, | |
| $ | perms | |||
| ) |
Looks up a page based on permissions.
| integer | Page id | |
| integer | Permission integer |
Definition at line 5791 of file class.t3lib_tcemain.php.
References $GLOBALS, and deleteClause().
Referenced by doesRecordExist().
| t3lib_TCEmain::eventPid | ( | $ | table, | |
| $ | uid, | |||
| $ | pid | |||
| ) |
Definition at line 6052 of file class.t3lib_tcemain.php.
References $pid.
Referenced by getRecordPropertiesFromRow(), and newlog2().
| t3lib_TCEmain::extFileFields | ( | $ | table | ) |
Returns all fieldnames from a table which are a list of files
| string | Table name |
Definition at line 6840 of file class.t3lib_tcemain.php.
References $GLOBALS, and t3lib_div::loadTCA().
Referenced by deleteRecord().
| t3lib_TCEmain::extFileFunctions | ( | $ | table, | |
| $ | field, | |||
| $ | filelist, | |||
| $ | func | |||
| ) |
File functions on external file references. eg. deleting files when deleting record
| string | Table name | |
| string | Field name | |
| string | List of files to work on from field | |
| string | Function, eg. "deleteAll" which will delete all files listed. |
Definition at line 7015 of file class.t3lib_tcemain.php.
References destPathFromUploadFolder(), t3lib_div::loadTCA(), and log().
Referenced by deleteRecord().
| t3lib_TCEmain::fillInFieldArray | ( | $ | table, | |
| $ | id, | |||
| $ | fieldArray, | |||
| $ | incomingFieldArray, | |||
| $ | realPid, | |||
| $ | status, | |||
| $ | tscPID | |||
| ) |
Filling in the field array $this->exclude_array is used to filter fields if needed.
| string | Table name | |
| integer | Record ID | |
| array | 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 | |
| integer | 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 = 'new' or 'update' | |
| integer | $tscPID: TSconfig PID |
Definition at line 1010 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $TCA, $value, t3lib_div::array_merge_recursive_overrule(), checkValue(), debug(), t3lib_parsehtml_proc::evalWriteFile(), t3lib_BEfunc::fixVersioningPid(), t3lib_BEfunc::getPagesTSconfig(), t3lib_BEfunc::getTCAtypes(), t3lib_BEfunc::getTCAtypeValue(), t3lib_div::loadTCA(), log(), t3lib_div::makeInstance(), pageInfo(), recordInfo(), t3lib_BEfunc::RTEgetObj(), t3lib_BEfunc::RTEsetup(), t3lib_div::stripSlashesOnArray(), t3lib_BEfunc::workspaceOL(), and t3lib_div::writeFile().
Referenced by process_datamap().
| t3lib_TCEmain::findPageElementsForVersionStageChange | ( | $ | pageIdList, | |
| $ | workspaceId, | |||
| &$ | elementList | |||
| ) |
Searches for all elements from all tables on the given pages in the same workspace.
| array | $pageIdList List of PIDs to search | |
| int | $workspaceId Workspace ID | |
| array | $elementList List of found elements. Key is table name, value is array of element UIDs |
Definition at line 7718 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, and t3lib_BEfunc::deleteClause().
Referenced by process_cmdmap().
| t3lib_TCEmain::findPageElementsForVersionSwap | ( | $ | table, | |
| $ | id, | |||
| $ | offlineId | |||
| ) |
Finds all elements for swapping versions in workspace
| string | $table Table name of the original element to swap | |
| int | $id UID of the original element to swap (online) | |
| int | $offlineId As above but offline |
Definition at line 7770 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, t3lib_BEfunc::deleteClause(), t3lib_BEfunc::getRecord(), and t3lib_BEfunc::workspaceOL().
Referenced by process_cmdmap().
| t3lib_TCEmain::findPageIdsForVersionStateChange | ( | $ | table, | |
| $ | idList, | |||
| $ | workspaceId, | |||
| &$ | pageIdList, | |||
| &$ | elementList | |||
| ) |
Finds page UIDs for the element from table $table with UIDs from $idList
| array | $table Table to search | |
| array | $idList List of records' UIDs | |
| int | $workspaceId Workspace ID. We need this parameter because user can be in LIVE but he still can publisg DRAFT from ws module! | |
| array | $pageIdList List of found page UIDs | |
| array | $elementList List of found element UIDs. Key is table name, value is list of UIDs |
Definition at line 7685 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, t3lib_BEfunc::deleteClause(), t3lib_BEfunc::getRecord(), and t3lib_BEfunc::workspaceOL().
Referenced by process_cmdmap().
| t3lib_TCEmain::findRealPageIds | ( | &$ | idList | ) |
Finds real page IDs for state change.
| array | $idList List of page UIDs, possibly versioned |
Definition at line 7753 of file class.t3lib_tcemain.php.
References $key, and t3lib_BEfunc::getRecord().
Referenced by process_cmdmap().
| t3lib_TCEmain::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 name | |
| integer | Record UID | |
| integer | UID of previous record | |
| boolean | If set, updates the record | |
| array | Input array. If fields are already specified AND $update is not set, values are not set in output array. |
Definition at line 6816 of file class.t3lib_tcemain.php.
References t3lib_div::loadTCA(), recordInfo(), t3lib_div::trimExplode(), and updateDB().
Referenced by copyRecord(), and moveRecord_raw().
| t3lib_TCEmain::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 name | |
| integer | Record UID |
Definition at line 6782 of file class.t3lib_tcemain.php.
References $GLOBALS, getUnique(), t3lib_div::loadTCA(), recordInfo(), t3lib_div::trimExplode(), and updateDB().
Referenced by moveRecord_raw().
| t3lib_TCEmain::getCheckModifyAccessListHookObjects | ( | ) | [protected] |
Gets the 'checkModifyAccessList' hook objects. The first call initializes the accordant objects.
Definition at line 575 of file class.t3lib_tcemain.php.
References $GLOBALS, checkModifyAccessList(), and t3lib_div::getUserObj().
Referenced by checkModifyAccessList().
| t3lib_TCEmain::getCopyHeader | ( | $ | table, | |
| $ | pid, | |||
| $ | field, | |||
| $ | value, | |||
| $ | count, | |||
| $ | prevTitle = '' | |||
| ) |
Get modified header for a copied record
| string | Table name | |
| integer | PID value in which other records to test might be | |
| string | Field name to get header value for. | |
| string | Current field value | |
| integer | Counter (number of recursions) | |
| string | Previous title we checked for (in previous recursion) |
Definition at line 6918 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $value, deleteClause(), and prependLabel().
Referenced by copyRecord().
| t3lib_TCEmain::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 5910 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_div::inList(), and t3lib_div::loadTCA().
Referenced by start().
| t3lib_TCEmain::getInlineFieldType | ( | $ | conf | ) |
Returns the subtype as a string of an inline field. If it's not a inline field at all, it returns false.
| array | config array for TCA/columns field |
Definition at line 6894 of file class.t3lib_tcemain.php.
Referenced by checkValue_inline_processDBdata(), copyRecord_procBasedOnFieldType(), deleteRecord_procBasedOnFieldType(), inlineLocalizeSynchronize(), moveRecord_procBasedOnFieldType(), remapListedDBRecords_procInline(), and version_swap_procBasedOnFieldType().
| t3lib_TCEmain::getPID | ( | $ | table, | |
| $ | uid | |||
| ) |
Returns the pid of a record from $table with $uid
| string | Table name | |
| integer | Record uid |
Definition at line 6694 of file class.t3lib_tcemain.php.
References $GLOBALS, and $row.
Referenced by clear_cache().
| t3lib_TCEmain::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 loggin
| string | Table name | |
| integer | Uid of record | |
| boolean | If set, no workspace overlay is performed |
Definition at line 6020 of file class.t3lib_tcemain.php.
References $row, getRecordPropertiesFromRow(), recordInfo(), and t3lib_BEfunc::workspaceOL().
Referenced by checkRecordInsertAccess(), checkValue(), checkValue_group_select_file(), deleteRecord(), getSortNumber(), insertDB(), isRecordInWebMount(), moveRecord(), moveRecord_raw(), newlog2(), and process_datamap().
| t3lib_TCEmain::getRecordPropertiesFromRow | ( | $ | table, | |
| $ | row | |||
| ) |
Returns an array with record properties, like header and pid, based on the row
| string | Table name | |
| array | Input row |
Definition at line 6036 of file class.t3lib_tcemain.php.
References $row, eventPid(), and t3lib_BEfunc::fixVersioningPid().
Referenced by getRecordProperties(), insertDB(), updateDB(), and version_swap().
| t3lib_TCEmain::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 name | |
| integer | Uid of record to find sorting number for. May be zero in case of new. | |
| integer | 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 6332 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, deleteClause(), t3lib_BEfunc::getLiveVersionOfRecord(), getRecordProperties(), log(), and resorting().
Referenced by moveRecord_raw(), and process_datamap().
| t3lib_TCEmain::getTableEntries | ( | $ | table, | |
| $ | TSconfig | |||
| ) |
Extract entries from TSconfig for a specific table. This will merge specific and default configuration together.
| string | Table name | |
| array | TSconfig for page |
Definition at line 6681 of file class.t3lib_tcemain.php.
References t3lib_div::array_merge_recursive_overrule().
Referenced by copyRecord(), and setHistory().
| t3lib_TCEmain::getTCEMAIN_TSconfig | ( | $ | tscPID | ) |
Return TSconfig for a page id
| integer | Page id (PID) from which to get configuration. |
Definition at line 6666 of file class.t3lib_tcemain.php.
References t3lib_BEfunc::getPagesTSconfig().
Referenced by clear_cache(), copyRecord(), localize(), notifyStageChange(), process_datamap(), and setHistory().
| t3lib_TCEmain::getUnique | ( | $ | table, | |
| $ | field, | |||
| $ | value, | |||
| $ | id, | |||
| $ | newPid = 0 | |||
| ) |
Gets a unique value for $table/$id/$field based on $value
| string | Table name | |
| string | Field name for which $value must be unique | |
| string | Value string. | |
| integer | UID to filter out in the lookup (the record itself...) | |
| integer | If set, the value will be unique for this PID |
Definition at line 2036 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $TCA, $value, deleteClause(), and t3lib_div::loadTCA().
Referenced by checkValue_input(), and fixUniqueInPid().
| t3lib_TCEmain::getUniqueFields | ( | $ | table | ) |
Returns all fieldnames from a table which have the unique evaluation type set.
| string | Table name |
Definition at line 6861 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_div::loadTCA(), and t3lib_div::trimExplode().
Referenced by version_swap().
| t3lib_TCEmain::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 | |
| integer | $id: Uid of the parent record | |
| array | $incomingFieldArray: Reference to the incominfFieldArray of process_datamap | |
| array |
|
Definition at line 5525 of file class.t3lib_tcemain.php.
References $GLOBALS, $registerDBList, and $value.
Referenced by process_datamap().
| t3lib_TCEmain::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.
| object | $hookObjectsArr: (reference) Array with hook objects | |
| string | $status: (reference) Status of the current operation, 'new' or 'update | |
| string | $table: (refrence) 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 551 of file class.t3lib_tcemain.php.
Referenced by process_datamap().
| t3lib_TCEmain::inlineLocalizeSynchronize | ( | $ | table, | |
| $ | id, | |||
| $ | command | |||
| ) | [protected] |
Performs localization or synchronization of child records.
| string | $table: The table of the localized parent record | |
| integer | $id: The uid of the localized parent record | |
| mixed | $command: Defines the type 'localize' or 'synchronize' (string) or a single uid to be localized (integer) |
Definition at line 3990 of file class.t3lib_tcemain.php.
References $GLOBALS, $value, getInlineFieldType(), t3lib_BEfunc::getInlineLocalizationMode(), t3lib_BEfunc::getRecordWSOL(), t3lib_div::inList(), localize(), t3lib_div::makeInstance(), t3lib_div::testInt(), t3lib_div::trimExplode(), and updateDB().
Referenced by process_cmdmap().
| t3lib_TCEmain::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 | Record table name | |
| string | "NEW...." uid string | |
| array | 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! | |
| boolean | Set to true if new version is created. | |
| integer | Suggested UID value for the inserted record. See the array $this->suggestedInsertUids; Admin-only feature | |
| boolean | If true, the ->substNEWwithIDs array is not updated. Only useful in very rare circumstances! |
Definition at line 6139 of file class.t3lib_tcemain.php.
References $GLOBALS, checkStoredRecord(), clear_cache(), getRecordProperties(), getRecordPropertiesFromRow(), insertUpdateDB_preprocessBasedOnFieldType(), log(), and updateRefIndex().
Referenced by insertNewCopyVersion(), moveRecord_wsPlaceholders(), and process_datamap().
| t3lib_TCEmain::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 name | |
| array | Field array to insert as a record | |
| integer | The value of PID field. -1 is indication that we are creating a new version! |
Definition at line 3081 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $TCA, checkValue(), insertDB(), and processRemapStack().
Referenced by copyRecord_raw().
| t3lib_TCEmain::insertUpdateDB_preprocessBasedOnFieldType | ( | $ | table, | |
| $ | fieldArray | |||
| ) |
Proprocesses 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 7821 of file class.t3lib_tcemain.php.
References $value, t3lib_div::testInt(), and t3lib_div::trimExplode().
Referenced by insertDB(), and updateDB().
| t3lib_TCEmain::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 | Accumulation of page uid=>pid pairs in branch of $pid | |
| integer | Page ID for which to find subpages | |
| integer | Number of levels to go down. | |
| integer | 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 6749 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $row, and deleteClause().
Referenced by copyPages(), and versionizePages().
| t3lib_TCEmain::internal_clearPageCache | ( | ) |
Clears page cache. Takes into account file cache.
Definition at line 7656 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_extMgm::isLoaded(), t3lib_div::rmdir(), and t3lib_div::sysLog().
Referenced by clear_cacheCmd().
| t3lib_TCEmain::isInWebMount | ( | $ | pid | ) |
Checks if the input page ID is in the BE_USER webmounts
| integer | Page ID to check |
Definition at line 5601 of file class.t3lib_tcemain.php.
References $pid.
Referenced by isRecordInWebMount().
| t3lib_TCEmain::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 | |
| integer | $uid: The uid of the record |
Definition at line 7243 of file class.t3lib_tcemain.php.
Referenced by copyRecord(), and copyRecord_raw().
| t3lib_TCEmain::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 name | |
| integer | UID of record |
Definition at line 5587 of file class.t3lib_tcemain.php.
References getRecordProperties(), and isInWebMount().
Referenced by doesRecordExist().
| t3lib_TCEmain::isRecordUndeletable | ( | $ | table, | |
| $ | uid | |||
| ) |
Determines whether a record can be undeleted.
| string | $table: Table name of the record | |
| integer | $uid: uid of the record |
Definition at line 4472 of file class.t3lib_tcemain.php.
References t3lib_BEfunc::getRecord(), and log().
Referenced by undeleteRecord().
| t3lib_TCEmain::isReferenceField | ( | $ | conf | ) |
Returns true if the TCA/columns field type is a DB reference field
| array | config array for TCA/columns field |
Definition at line 6883 of file class.t3lib_tcemain.php.
Referenced by copyRecord_flexFormCallBack(), copyRecord_procBasedOnFieldType(), deleteRecord_procBasedOnFieldType(), remapListedDBRecords_flexFormCallBack(), version_remapMMForVersionSwap(), and version_remapMMForVersionSwap_flexFormCallBack().
| t3lib_TCEmain::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.
| integer | Page id for which to check, including 0 (zero) if checking for page tree root. | |
| string | Table name to check |
Definition at line 5688 of file class.t3lib_tcemain.php.
References $PAGES_TYPES, pageInfo(), and t3lib_div::trimExplode().
Referenced by checkRecordInsertAccess().
| t3lib_TCEmain::localize | ( | $ | table, | |
| $ | uid, | |||
| $ | language | |||
| ) |
Localizes a record to another system language In reality it only works if transOrigPointerTable is not set. For "pages" the implementation is hardcoded
| string | Table name | |
| integer | Record uid (to be localized) | |
| integer | Language ID (from sys_language table) |
Definition at line 3889 of file class.t3lib_tcemain.php.
References $overrideValues, $row, copyRecord(), doesRecordExist(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordLocalization(), t3lib_BEfunc::getRecordsByField(), t3lib_BEfunc::getRecordWSOL(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSCpid(), t3lib_div::inList(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), and newlog().
Referenced by copyRecord_procBasedOnFieldType(), inlineLocalizeSynchronize(), and process_cmdmap().
| t3lib_TCEmain::log | ( | $ | table, | |
| $ | recuid, | |||
| $ | action, | |||
| $ | recpid, | |||
| $ | error, | |||
| $ | details, | |||
| $ | details_nr = -1, |
|||
| $ | data = array(), |
|||
| $ | event_pid = -1, |
|||
| $ | NEWid = '' | |||
| ) |
Logging actions from TCEmain
| string | Table name the log entry is concerned with. Blank if NA | |
| integer | Record UID. Zero if NA | |
| integer | Action number: 0=No category, 1=new record, 2=update record, 3= delete record, 4= move record, 5= Check/evaluate | |
| integer | 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 | |
| integer | The severity: 0 = message, 1 = error, 2 = System Error, 3 = security notice (admin) | |
| string | Default error message in english | |
| integer | 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 | Array with special information that may go into $details by 's' marks / sprintf() when the log is shown | |
| integer | The page_uid (pid) where the event occurred. Used to select log-content for specific pages. | |
| string | NEW id for new records |
Definition at line 7576 of file class.t3lib_tcemain.php.
Referenced by checkRecordInsertAccess(), checkStoredRecord(), checkValue(), checkValue_group_select_file(), copyPages(), copyRecord(), copyRecord_raw(), deleteRecord(), deleteRecord_flexFormCallBack(), extFileFunctions(), fillInFieldArray(), getSortNumber(), insertDB(), isRecordUndeletable(), moveRecord(), moveRecord_raw(), newlog(), newlog2(), process_cmdmap(), process_datamap(), updateDB(), version_setStage(), and version_swap().
| t3lib_TCEmain::moveL10nOverlayRecords | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid | |||
| ) |
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 |
Definition at line 3862 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_BEfunc::getRecordsByField(), t3lib_BEfunc::isTableLocalizable(), and moveRecord().
Referenced by moveRecord_raw(), and moveRecord_wsPlaceholders().
| t3lib_TCEmain::moveRecord | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid | |||
| ) |
Moving single records
| string | Table name to move | |
| integer | Record uid to move | |
| integer | 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 3476 of file class.t3lib_tcemain.php.
References $TCA, checkRecordInsertAccess(), checkRecordUpdateAccess(), doesRecordExist(), t3lib_BEfunc::getLiveVersionOfRecord(), getRecordProperties(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), log(), moveRecord_raw(), moveRecord_wsPlaceholders(), newlog(), resolvePid(), and versionizeRecord().
Referenced by moveL10nOverlayRecords(), moveRecord_procBasedOnFieldType(), and process_cmdmap().
| t3lib_TCEmain::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 3821 of file class.t3lib_tcemain.php.
References $value, getInlineFieldType(), t3lib_div::makeInstance(), and moveRecord().
Referenced by moveRecord_procFields().
| t3lib_TCEmain::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 3799 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $value, t3lib_BEfunc::getRecordWSOL(), t3lib_div::loadTCA(), and moveRecord_procBasedOnFieldType().
Referenced by moveRecord_raw().
| t3lib_TCEmain::moveRecord_raw | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid | |||
| ) |
Moves a record without checking security of any sort. USE ONLY INTERNALLY
| string | Table name to move | |
| integer | Record uid to move | |
| integer | 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 3660 of file class.t3lib_tcemain.php.
References $GLOBALS, $TYPO3_CONF_VARS, clear_cache(), destNotInsideSelf(), fixCopyAfterDuplFields(), fixUniqueInPid(), getRecordProperties(), getSortNumber(), t3lib_div::getUserObj(), log(), moveL10nOverlayRecords(), moveRecord_procFields(), and resolvePid().
Referenced by moveRecord(), and moveRecord_wsPlaceholders().
| t3lib_TCEmain::moveRecord_wsPlaceholders | ( | $ | table, | |
| $ | uid, | |||
| $ | destPid, | |||
| $ | wsUid | |||
| ) |
Creates a move placeholder for workspaces. USE ONLY INTERNALLY Moving placeholder: Can be done because the system sees it as a placeholder for NEW elements like t3ver_state=1 Moving original: Will either create the placeholder if it doesn't exist or move existing placeholder in workspace.
| string | Table name to move | |
| integer | Record uid to move (online record) | |
| integer | 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 | |
| integer | UID of offline version of online record |
Definition at line 3588 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_BEfunc::getMovePlaceholder(), t3lib_BEfunc::getRecord(), insertDB(), moveL10nOverlayRecords(), moveRecord_raw(), and t3lib_BEfunc::readPageAccess().
Referenced by moveRecord().
| t3lib_TCEmain::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 name for which to set default values. |
Definition at line 6455 of file class.t3lib_tcemain.php.
References $content, $GLOBALS, assemblePermissions(), and t3lib_div::loadTCA().
Referenced by copyRecord(), and process_datamap().
| t3lib_TCEmain::newlog | ( | $ | message, | |
| $ | error = 0 | |||
| ) |
Simple logging function meant to be used when logging messages is not yet fixed.
| string | Message string | |
| integer | Error code, see log() |
Definition at line 7593 of file class.t3lib_tcemain.php.
References log().
Referenced by copyRecord_fixRTEmagicImages(), deleteAction(), deletePages(), localize(), moveRecord(), process_cmdmap(), process_datamap(), process_uploads(), version_clearWSID(), version_setStage(), version_swap(), versionizePages(), and versionizeRecord().
| t3lib_TCEmain::newlog2 | ( | $ | message, | |
| $ | table, | |||
| $ | uid, | |||
| $ | pid = FALSE, |
|||
| $ | error = 0 | |||
| ) |
Simple logging function meant to bridge the gap between newlog() and log() with a littme more info, in particular the record table/uid and event_pid so we can filter messages pr page.
| string | Message string | |
| string | Table name | |
| integer | Record uid | |
| integer | 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. | |
| integer | Error code, see log() |
Definition at line 7608 of file class.t3lib_tcemain.php.
References $pid, eventPid(), getRecordProperties(), and log().
Referenced by notifyStageChange(), placeholderShadowing(), version_setStage(), and version_swap().
| t3lib_TCEmain::noRecordsFromUnallowedTables | ( | $ | inList | ) |
Used by the deleteFunctions to check if there are records from disallowed tables under the pages to be deleted.
| string | List of page integers |
Definition at line 7045 of file class.t3lib_tcemain.php.
References $GLOBALS, checkModifyAccessList(), t3lib_BEfunc::deleteClause(), rmComma(), and tableReadOnly().
Referenced by canDeletePage().
| t3lib_TCEmain::notifyStageChange | ( | $ | stat, | |
| $ | stageId, | |||
| $ | table, | |||
| $ | id, | |||
| $ | comment | |||
| ) |
Send an email notification to users in workspace
| array | Workspace access array (from t3lib_userauthgroup::checkWorkspace()) | |
| integer | New Stage number: 0 = editing, 1= just ready for review, 10 = ready for publication, -1 = rejected! | |
| string | Table name of element (or list of element names if $id is zero) | |
| integer | Record uid of element (if zero, then $table is used as reference to element(s) alone) | |
| string | User comment sent along with action |
Definition at line 7072 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_BEfunc::fixVersioningPid(), t3lib_div::getIndpEnv(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordPath(), t3lib_BEfunc::getRecordTitle(), getTCEMAIN_TSconfig(), newlog2(), notifyStageChange_getEmails(), and t3lib_div::plainMailEncoded().
Referenced by process_cmdmap(), and version_setStage().
| t3lib_TCEmain::notifyStageChange_getEmails | ( | $ | listOfUsers, | |
| $ | noTablePrefix = FALSE | |||
| ) |
Return emails addresses of be_users from input list.
| string | List of backend users, on the form "be_users_10,be_users_2" or "10,2" in case noTablePrefix is set. | |
| boolean | If set, the input list are integers and not strings. |
Definition at line 7216 of file class.t3lib_tcemain.php.
References t3lib_BEfunc::getRecord(), t3lib_div::revExplode(), and t3lib_div::trimExplode().
Referenced by notifyStageChange().
| t3lib_TCEmain::overrideFieldArray | ( | $ | table, | |
| $ | data | |||
| ) |
Returns the $data array from $table overridden in the fields defined in ->overrideValues.
| string | Table name | |
| array | Data array with fields from table. These will be overlaid with values in $this->overrideValues[$table] |
Definition at line 6508 of file class.t3lib_tcemain.php.
Referenced by process_datamap().
| t3lib_TCEmain::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 performanceloss since it doesn't look up the same record twice!
| integer | Page uid | |
| string | Field name for which to return value |
Definition at line 5977 of file class.t3lib_tcemain.php.
References $GLOBALS, and $res.
Referenced by fillInFieldArray(), and isTableAllowedForThisPage().
| t3lib_TCEmain::placeholderShadowing | ( | $ | table, | |
| $ | id | |||
| ) |
Fix shadowing of data in case we are editing a offline version of a live "New" placeholder record:
| string | Table name | |
| integer | Record uid |
Definition at line 967 of file class.t3lib_tcemain.php.
References $TCA, t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getRecord(), t3lib_div::loadTCA(), newlog2(), t3lib_div::trimExplode(), and updateDB().
Referenced by process_datamap().
| t3lib_TCEmain::prependLabel | ( | $ | table | ) |
Return "copy" label for a table. Although the name is "prepend" it actually APPENDs the label (after ...)
| string | Table name |
Definition at line 6953 of file class.t3lib_tcemain.php.
References $GLOBALS.
Referenced by clearPrefixFromValue(), and getCopyHeader().
| t3lib_TCEmain::printLogErrorMessages | ( | $ | redirect | ) |
Print log error messages from the operations of this script instance
| string | Redirect URL (for creating link in message) |
Definition at line 7623 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, t3lib_FlashMessageQueue::addMessage(), t3lib_FlashMessage::ERROR, and t3lib_div::makeInstance().
| t3lib_TCEmain::process_cmdmap | ( | ) |
Processing the cmd-array See "TYPO3 Core API" for a description of the options.
Definition at line 2562 of file class.t3lib_tcemain.php.
References $TCA, $TYPO3_CONF_VARS, $value, t3lib_div::array_merge_recursive_overrule(), checkModifyAccessList(), copyPages(), copyRecord(), deleteAction(), findPageElementsForVersionStageChange(), findPageElementsForVersionSwap(), findPageIdsForVersionStateChange(), findRealPageIds(), t3lib_BEfunc::getRecord(), t3lib_div::getUserObj(), inlineLocalizeSynchronize(), t3lib_div::intInRange(), localize(), log(), moveRecord(), newlog(), notifyStageChange(), remapListedDBRecords(), tableReadOnly(), t3lib_div::trimExplode(), undeleteRecord(), version_clearWSID(), version_setStage(), version_swap(), versionizePages(), and versionizeRecord().
| t3lib_TCEmain::process_datamap | ( | ) |
Processing the data-array Call this function to process the data-array set by start()
Definition at line 619 of file class.t3lib_tcemain.php.
References $GLOBALS, $registerDBList, $res, $TCA, $TYPO3_CONF_VARS, addDefaultPermittedLanguageIfNotSet(), t3lib_div::array_merge_recursive_overrule(), checkModifyAccessList(), checkRecordInsertAccess(), checkRecordUpdateAccess(), compareFieldArrayWithCurrentAndUnset(), dbAnalysisStoreExec(), debug(), fillInFieldArray(), getRecordProperties(), getSortNumber(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSCpid(), t3lib_div::getUserObj(), getVersionizedIncomingFieldArray(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), hook_processDatamap_afterDatabaseOperations(), insertDB(), t3lib_div::intInRange(), log(), t3lib_div::makeInstance(), newFieldArray(), newlog(), overrideFieldArray(), placeholderShadowing(), processRemapStack(), recordInfo(), removeRegisteredFiles(), setTSconfigPermissions(), tableReadOnly(), t3lib_div::testInt(), and updateDB().
| t3lib_TCEmain::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 | $_FILES array |
Definition at line 469 of file class.t3lib_tcemain.php.
References $key, newlog(), and process_uploads_traverseArray().
| t3lib_TCEmain::process_uploads_traverseArray | ( | &$ | outputArr, | |
| $ | inputArr, | |||
| $ | keyToSet | |||
| ) |
Traverse the upload array if needed to rearrange values.
| array | $this->uploadedFileArray passed by reference | |
| array | Input array ($_FILES parts) | |
| string | The current $_FILES array key to set on the outermost level. |
Definition at line 507 of file class.t3lib_tcemain.php.
Referenced by process_uploads().
| t3lib_TCEmain::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 5438 of file class.t3lib_tcemain.php.
References $key, $value, checkValue_checkMax(), and updateDB().
Referenced by insertNewCopyVersion(), and process_datamap().
| t3lib_TCEmain::rawCopyPageContent | ( | $ | old_pid, | |
| $ | new_pid, | |||
| $ | copyTablesArray | |||
| ) |
Copies all records from tables in $copyTablesArray from page with $old_pid to page with $new_pid Uses raw-copy for the operation (meant for versioning!)
| integer | Current page id. | |
| integer | New page id | |
| array | Array of tables from which to copy |
Definition at line 3052 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $TCA, copyRecord_raw(), and deleteClause().
Referenced by versionizePages().
| t3lib_TCEmain::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 name | |
| integer | UID of the record from $table | |
| string | Field list for the SELECT query, eg. "*" or "uid,pid,..." |
Definition at line 5997 of file class.t3lib_tcemain.php.
References $GLOBALS, and $res.
Referenced by checkValue(), copyRecord_raw(), fillInFieldArray(), fixCopyAfterDuplFields(), fixUniqueInPid(), getRecordProperties(), process_datamap(), remapListedDBRecords(), and versionizeRecord().
| t3lib_TCEmain::remapListedDBRecords | ( | ) |
Processes the fields with references as registered during the copy process. This includes all FlexForm fields which had references.
Definition at line 5241 of file class.t3lib_tcemain.php.
References $value, checkValue_flex_procInData(), checkValue_flexArray2Xml(), debug(), t3lib_BEfunc::getFlexFormDS(), t3lib_div::loadTCA(), recordInfo(), remapListedDBRecords_flexFormCallBack(), remapListedDBRecords_procDBRefs(), remapListedDBRecords_procInline(), updateDB(), t3lib_BEfunc::workspaceOL(), t3lib_BEfunc::wsMapId(), and t3lib_div::xml2array().
Referenced by process_cmdmap().
| t3lib_TCEmain::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 | Set of parameters in numeric array: table, uid, field | |
| array | TCA config for field (from Data Structure of course) | |
| string | Field value (from FlexForm XML) | |
| string | Not used | |
| string | Not used |
Definition at line 5320 of file class.t3lib_tcemain.php.
References isReferenceField(), and remapListedDBRecords_procDBRefs().
Referenced by remapListedDBRecords().
| t3lib_TCEmain::remapListedDBRecords_procDBRefs | ( | $ | conf, | |
| $ | value, | |||
| $ | MM_localUid, | |||
| $ | table | |||
| ) |
Performs remapping of old UID values to NEW uid values for a DB reference field.
| array | TCA field config | |
| string | Field value | |
| integer | UID of local record (for MM relations - might need to change if support for FlexForms should be done!) | |
| string | Table name |
Definition at line 5347 of file class.t3lib_tcemain.php.
References $value, t3lib_div::makeInstance(), and t3lib_div::trimExplode().
Referenced by remapListedDBRecords(), remapListedDBRecords_flexFormCallBack(), and remapListedDBRecords_procInline().
| t3lib_TCEmain::remapListedDBRecords_procInline | ( | $ | conf, | |
| $ | value, | |||
| $ | uid, | |||
| $ | table | |||
| ) |
Performs remapping of old UID values to NEW uid values for a inline field.
| array | $conf: TCA field config | |
| string | $value: Field value | |
| integer | $uid: The uid of the ORIGINAL record | |
| string | $table: Table name |
Definition at line 5392 of file class.t3lib_tcemain.php.
References $GLOBALS, $value, getInlineFieldType(), t3lib_div::makeInstance(), and remapListedDBRecords_procDBRefs().
Referenced by remapListedDBRecords().
| t3lib_TCEmain::removeCacheFiles | ( | ) |
Unlink (delete) typo3conf/temp_CACHED_*.php cache files
Definition at line 6735 of file class.t3lib_tcemain.php.
References t3lib_extMgm::removeCacheFiles().
Referenced by clear_cacheCmd().
| t3lib_TCEmain::removeRegisteredFiles | ( | ) |
Removing files registered for removal before exit
Definition at line 6724 of file class.t3lib_tcemain.php.
Referenced by process_datamap().
| t3lib_TCEmain::resolvePid | ( | $ | table, | |
| $ | pid | |||
| ) |
Get the final pid based on $table and $pid ($destPid type... pos/neg)
| string | Table name | |
| integer | "Destination pid" : If the value is >= 0 it's just returned directly (through intval() 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 6970 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, t3lib_BEfunc::getLiveVersionOfRecord(), and t3lib_BEfunc::getWorkspaceVersionOfRecord().
Referenced by copyRecord(), moveRecord(), and moveRecord_raw().
| t3lib_TCEmain::resorting | ( | $ | table, | |
| $ | pid, | |||
| $ | sortRow, | |||
| $ | return_SortNumber_After_This_Uid | |||
| ) |
Resorts a table. Used internally by getSortNumber()
| string | Table name | |
| integer | Pid in which to resort records. | |
| string | Sorting row | |
| integer | 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 6406 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, and deleteClause().
Referenced by getSortNumber().
| t3lib_TCEmain::rmComma | ( | $ | input | ) |
Returns the $input string without a comma in the end
| string | Input string |
Definition at line 6597 of file class.t3lib_tcemain.php.
Referenced by noRecordsFromUnallowedTables().
| t3lib_TCEmain::setDefaultsFromUserTS | ( | $ | userTS | ) |
Initializes default values coming from User TSconfig
| array | User TSconfig array |
Definition at line 446 of file class.t3lib_tcemain.php.
References $TCA.
| t3lib_TCEmain::setHistory | ( | $ | table, | |
| $ | id, | |||
| $ | logId | |||
| ) |
Setting sys_history record, based on content previously set in $this->historyRecords[$table.':'.$id] (by compareFieldArrayWithCurrentAndUnset())
| string | Table name | |
| integer | Record ID | |
| integer | Log entry ID, important for linking between log and history views |
Definition at line 6252 of file class.t3lib_tcemain.php.
References $GLOBALS, clearHistory(), getTableEntries(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSCpid(), and t3lib_div::intInRange().
Referenced by updateDB(), and version_swap().
| t3lib_TCEmain::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 | This array has the syntax $mirror[table_name][uid] = [list of uids to copy data-value TO!] |
Definition at line 422 of file class.t3lib_tcemain.php.
References t3lib_div::trimExplode().
| t3lib_TCEmain::setTSconfigPermissions | ( | $ | fieldArray, | |
| $ | TSConfig_p | |||
| ) |
Setting up perms_* fields in $fieldArray based on TSconfig input Used for new pages
| array | Field Array, returned with modifications | |
| array | TSconfig properties |
Definition at line 6438 of file class.t3lib_tcemain.php.
References assemblePermissions(), and t3lib_div::testInt().
Referenced by process_datamap().
| t3lib_TCEmain::start | ( | $ | data, | |
| $ | cmd, | |||
| $ | altUserObject = '' | |||
| ) |
Initializing. For details, see 'TYPO3 Core API' document. This function does not start the processing of data, but merely initializes the object
| array | Data to be modified or inserted in the database | |
| array | Commands to copy, move, delete, localize, versionize records. | |
| object | An alternative userobject you can set instead of the default, which is $GLOBALS['BE_USER'] |
Definition at line 379 of file class.t3lib_tcemain.php.
References $defaultPermissions, $GLOBALS, and getExcludeListArray().
| t3lib_TCEmain::tableAdminOnly | ( | $ | table | ) |
Checks if the $table is only editable by admin-users
| string | Table name |
Definition at line 5864 of file class.t3lib_tcemain.php.
Referenced by checkModifyAccessList().
| t3lib_TCEmain::tableReadOnly | ( | $ | table | ) |
Checks if the $table is readOnly
| string | Table name |
Definition at line 5852 of file class.t3lib_tcemain.php.
Referenced by noRecordsFromUnallowedTables(), process_cmdmap(), and process_datamap().
| t3lib_TCEmain::undeleteRecord | ( | $ | table, | |
| $ | uid | |||
| ) |
Undelete a single record
| string | Table name | |
| integer | Record UID |
Definition at line 4198 of file class.t3lib_tcemain.php.
References deleteRecord(), and isRecordUndeletable().
Referenced by deleteRecord_procBasedOnFieldType(), and process_cmdmap().
| t3lib_TCEmain::updateDB | ( | $ | table, | |
| $ | id, | |||
| $ | fieldArray | |||
| ) |
Update database record Does not check permissions but expects them to be verified on beforehand
| string | Record table name | |
| integer | Record uid | |
| array | Array of field=>value pairs to insert. FIELDS MUST MATCH the database FIELDS. No check is done. |
Definition at line 6085 of file class.t3lib_tcemain.php.
References $GLOBALS, checkStoredRecord(), clear_cache(), getRecordPropertiesFromRow(), insertUpdateDB_preprocessBasedOnFieldType(), log(), setHistory(), and updateRefIndex().
Referenced by checkValue_inline_processDBdata(), fixCopyAfterDuplFields(), fixUniqueInPid(), inlineLocalizeSynchronize(), placeholderShadowing(), process_datamap(), processRemapStack(), and remapListedDBRecords().
| t3lib_TCEmain::updateRefIndex | ( | $ | table, | |
| $ | id | |||
| ) |
Update Reference Index (sys_refindex) for a record Should be called any almost any update to a record which could affect references inside the record.
| string | Table name | |
| integer | Record UID |
Definition at line 6299 of file class.t3lib_tcemain.php.
References $refIndexObj, and t3lib_div::makeInstance().
Referenced by deleteRecord(), insertDB(), updateDB(), and version_swap().
| t3lib_TCEmain::version_clearWSID | ( | $ | table, | |
| $ | id, | |||
| $ | flush = FALSE | |||
| ) |
Release version from this workspace (and into "Live" workspace but as an offline version).
| string | Table name | |
| integer | Record UID | |
| boolean | If set, will completely delete element |
Definition at line 4975 of file class.t3lib_tcemain.php.
References $GLOBALS, checkRecordUpdateAccess(), deleteEl(), t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getMovePlaceholder(), t3lib_BEfunc::getRecord(), and newlog().
Referenced by deleteAction(), and process_cmdmap().
| t3lib_TCEmain::version_remapMMForVersionSwap | ( | $ | table, | |
| $ | id, | |||
| $ | swapWith | |||
| ) |
Swaps MM-relations for current/swap record, see version_swap()
| string | Table for the two input records | |
| integer | Current record (about to go offline) | |
| integer | Swap record (about to go online) |
Definition at line 5091 of file class.t3lib_tcemain.php.
References checkValue_flex_procInData(), t3lib_BEfunc::getFlexFormDS(), t3lib_BEfunc::getRecord(), isReferenceField(), t3lib_div::makeInstance(), version_remapMMForVersionSwap_execSwap(), version_remapMMForVersionSwap_flexFormCallBack(), and t3lib_div::xml2array().
Referenced by version_swap().
| t3lib_TCEmain::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 for the two input records | |
| integer | Current record (about to go offline) | |
| integer | Swap record (about to go online) |
Definition at line 5199 of file class.t3lib_tcemain.php.
Referenced by version_remapMMForVersionSwap().
| t3lib_TCEmain::version_remapMMForVersionSwap_flexFormCallBack | ( | $ | pParams, | |
| $ | dsConf, | |||
| $ | dataValue, | |||
| $ | dataValue_ext1, | |||
| $ | dataValue_ext2, | |||
| $ | path | |||
| ) |
Callback function for traversing the FlexForm structure in relation to ...
| array | Array of parameters in num-indexes: table, uid, field | |
| array | TCA field configuration (from Data Structure XML) | |
| string | The value of the flexForm field | |
| string | Not used. | |
| string | Not used. | |
| string | Path in flexforms |
Definition at line 5172 of file class.t3lib_tcemain.php.
References isReferenceField(), and t3lib_div::makeInstance().
Referenced by version_remapMMForVersionSwap().
| t3lib_TCEmain::version_setStage | ( | $ | table, | |
| $ | id, | |||
| $ | stageId, | |||
| $ | comment = '', |
|||
| $ | accumulateForNotifEmail = FALSE | |||
| ) |
Setting stage of record
| string | Table name | |
| integer | Record UID | |
| integer | Stage ID to set | |
| string | Comment that goes into log | |
| boolean | Accumulate state changes in memory for compiled notification email? |
Definition at line 5019 of file class.t3lib_tcemain.php.
References $accumulateForNotifEmail, $GLOBALS, checkRecordUpdateAccess(), t3lib_BEfunc::getRecord(), t3lib_div::inList(), log(), newlog(), newlog2(), and notifyStageChange().
Referenced by process_cmdmap().
| t3lib_TCEmain::version_swap | ( | $ | table, | |
| $ | id, | |||
| $ | swapWith, | |||
| $ | swapIntoWS = 0 | |||
| ) |
Swapping versions of a record Version from archive (future/past, called "swap version") will get the uid of the "t3ver_oid", the official element with uid = "t3ver_oid" will get the new versions old uid. PIDs are swapped also
| string | Table name | |
| integer | UID of the online record to swap | |
| integer | UID of the archived version to swap with! | |
| boolean | If set, swaps online into workspace instead of publishing out of workspace. |
Definition at line 4755 of file class.t3lib_tcemain.php.
References $GLOBALS, checkRecordUpdateAccess(), clear_cache(), compareFieldArrayWithCurrentAndUnset(), deleteEl(), doesRecordExist(), t3lib_BEfunc::getMovePlaceholder(), t3lib_BEfunc::getRecord(), getRecordPropertiesFromRow(), getUniqueFields(), log(), newlog(), newlog2(), setHistory(), updateRefIndex(), version_remapMMForVersionSwap(), version_swap_procBasedOnFieldType(), and t3lib_div::writeFileToTypo3tempDir().
Referenced by process_cmdmap().
| t3lib_TCEmain::version_swap_procBasedOnFieldType | ( | $ | table, | |
| $ | field, | |||
| $ | conf, | |||
| &$ | curVersion, | |||
| &$ | swapVersion | |||
| ) |
Update relations on version/workspace swapping.
| string | $table: Record Table | |
| string | $field: Record field | |
| array | $conf: TCA configuration of current field | |
| string | $curVersion: Reference to the current (original) record | |
| string | $swapVersion: Reference to the record (workspace/versionized) to publish in or swap with |
Definition at line 5058 of file class.t3lib_tcemain.php.
References getInlineFieldType(), and t3lib_div::makeInstance().
Referenced by version_swap().
| t3lib_TCEmain::versionizePages | ( | $ | uid, | |
| $ | label, | |||
| $ | versionizeTree | |||
| ) |
Creates a new version of a page including content and possible subpages.
| integer | Page uid to create new version of. | |
| string | Version label | |
| integer | Indicating "treeLevel" - "page" (0) or "branch" (>=1) ["element" type must call versionizeRecord() directly] |
Definition at line 4692 of file class.t3lib_tcemain.php.
References compileAdminTables(), copyRecord_raw(), doesBranchExist(), int_pageTreeInfo(), newlog(), rawCopyPageContent(), and versionizeRecord().
Referenced by process_cmdmap().
| t3lib_TCEmain::versionizeRecord | ( | $ | table, | |
| $ | id, | |||
| $ | label, | |||
| $ | delete = FALSE, |
|||
| $ | versionizeTree = -1 | |||
| ) |
Creates a new version of a record (Requires support in the table)
| string | Table name | |
| integer | Record uid to versionize | |
| string | Version label | |
| boolean | If true, the version is created to delete the record. | |
| integer | Indicating "treeLevel" - or versioning type - "element" (-1), "page" (0) or "branch" (>=1) |
Definition at line 4613 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, cannotDeleteRecord(), copyRecord_raw(), deleteClause(), doesRecordExist(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), newlog(), and recordInfo().
Referenced by copyRecord_procBasedOnFieldType(), deleteAction(), moveRecord(), process_cmdmap(), and versionizePages().
| t3lib_TCEmain::$accumulateForNotifEmail = Array() |
| t3lib_TCEmain::$admin |
Definition at line 302 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$alternativeFileName = array() |
Definition at line 264 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$alternativeFilePath = array() |
Definition at line 265 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$autoVersionIdMap = Array() |
Definition at line 277 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$autoVersioningUpdate = FALSE |
Definition at line 354 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$BE_USER |
Definition at line 299 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassAccessCheckForRecords = FALSE |
Definition at line 255 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassFileHandling = FALSE |
Definition at line 254 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassWorkspaceRestrictions = FALSE |
Definition at line 253 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$cachedTSconfig = array() |
Definition at line 329 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$callBackObj |
Definition at line 269 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$callFromImpExp = false |
Definition at line 343 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$checkModifyAccessListHookObjects [protected] |
Definition at line 357 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkSimilar = TRUE |
Definition at line 243 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkStoredRecords = TRUE |
Definition at line 245 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkStoredRecords_loose = TRUE |
Definition at line 246 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkValue_currentRecord = array() |
Definition at line 353 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkWorkspaceCache = Array() |
Definition at line 331 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$clear_flexFormData_vDEFbase = FALSE |
Definition at line 250 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$cmdmap = Array() |
Definition at line 312 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copiedFileMap = Array() |
Definition at line 282 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyMappingArray = Array() |
Definition at line 339 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyMappingArray_merged = Array() |
Definition at line 281 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyTree = 0 |
Definition at line 260 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyWhichTables = '*' |
Definition at line 257 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$data_disableFields = array() |
Definition at line 266 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$datamap = Array() |
Definition at line 311 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$dbAnalysisStore = array() |
Definition at line 334 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$defaultPermissions |
Initial value:
array( // Can be overridden from $TYPO3_CONF_VARS 'user' => 'show,edit,delete,new,editcontent', 'group' => 'show,edit,new,editcontent', 'everybody' => '' )
Definition at line 304 of file class.t3lib_tcemain.php.
Referenced by start().
| t3lib_TCEmain::$defaultValues = array() |
Definition at line 262 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$deleteTree = FALSE |
Definition at line 247 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$disableDeleteClause = false [protected] |