|
TYPO3 API
SVNRelease
|
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()) | |
| 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_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) | |
| 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) | |
| processRemapStack () | |
| addRemapAction ($table, $id, array $callback, array $arguments) | |
| addRemapStackRefIndex ($table, $id) | |
| 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) | |
| 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 () | |
| 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 = '*' | |
| $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() | |
| $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) | |
| triggerRemapAction ($table, $id, array $callback, array $arguments, $forceRemapStackActions=FALSE) | |
| getAutoVersionId ($table, $id) | |
| overlayAutoVersionId ($table, $id) | |
| addNewValuesToRemapStackChildIds (array $idValues) | |
Protected Attributes | |
| $remapStackChildIds = array() | |
| $remapStackActions = array() | |
| $remapStackRefIndex = array() | |
| $disableDeleteClause = FALSE | |
| $checkModifyAccessListHookObjects | |
Definition at line 220 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 1913 of file class.t3lib_tcemain.php.
References $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 5998 of file class.t3lib_tcemain.php.
References $GLOBALS, $TCA, and t3lib_BEfunc\deleteClause().
Referenced by process_datamap().
| t3lib_TCEmain::addNewValuesToRemapStackChildIds | ( | array $ | idValues | ) | [protected] |
Adds new values to the remapStackChildIds array.
| array | $idValues | uid values |
Definition at line 7071 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select(), and checkValue_inline().
| t3lib_TCEmain::addRemapAction | ( | $ | table, |
| $ | id, | ||
| array $ | callback, | ||
| array $ | arguments | ||
| ) |
Adds an instruction to the remap action stack (used with IRRE).
| string | $table | The affected table |
| integer | $id | The affected ID |
| array | $callback | The callback information (object and method) |
| array | $arguments | The arguments to be used with the callback |
Definition at line 5024 of file class.t3lib_tcemain.php.
Referenced by triggerRemapAction().
| t3lib_TCEmain::addRemapStackRefIndex | ( | $ | table, |
| $ | id | ||
| ) |
Adds a table-id-pair to the reference index remapping stack.
| string | $table | |
| integer | $id |
Definition at line 5042 of file class.t3lib_tcemain.php.
Referenced by tx_version_tcemain\version_swap().
| t3lib_TCEmain::assemblePermissions | ( | $ | string | ) |
Calculates the bitvalue of the permissions given in a string, comma-sep
| string | List of pMap strings |
Definition at line 6094 of file class.t3lib_tcemain.php.
References $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 4257 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 4304 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 5096 of file class.t3lib_tcemain.php.
References $res, getCheckModifyAccessListHookObjects(), t3lib_div\inList(), and tableAdminOnly().
Referenced by 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 5182 of file class.t3lib_tcemain.php.
References $pid, $res, $TCA, 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 5145 of file class.t3lib_tcemain.php.
References $res, $TCA, and doesRecordExist().
Referenced by moveRecord(), process_datamap(), tx_version_tcemain\version_clearWSID(), tx_version_tcemain\version_setStage(), and tx_version_tcemain\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 5728 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, $TCA, $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 1217 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 1390 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 1991 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 1835 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 2291 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 2328 of file class.t3lib_tcemain.php.
References $GLOBALS, $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 1900 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 1445 of file class.t3lib_tcemain.php.
References $res, $value, addNewValuesToRemapStackChildIds(), 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 2264 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 1558 of file class.t3lib_tcemain.php.
References $GLOBALS, $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 2217 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 1950 of file class.t3lib_tcemain.php.
References $res, $value, addNewValuesToRemapStackChildIds(), 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 2495 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 1346 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 2107 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 1419 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 1278 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 1330 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 2068 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 6617 of file class.t3lib_tcemain.php.
References $GLOBALS, $pageCache, $TCA, $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 tx_version_tcemain\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 6771 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 5798 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 6520 of file class.t3lib_tcemain.php.
References $TCA, $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 6038 of file class.t3lib_tcemain.php.
References $GLOBALS, and $res.
Referenced by process_datamap(), and tx_version_tcemain\version_swap().
| t3lib_TCEmain::compileAdminTables | ( | ) |
List of all tables (those administrators has access to = array_keys of $TCA)
Definition at line 6286 of file class.t3lib_tcemain.php.
References $GLOBALS.
Referenced by copyPages().
| t3lib_TCEmain::convNumEntityToByteValue | ( | $ | input | ) |
Converts a HTML entity (like {) to the character '123'
| string | Input string |
Definition at line 6121 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 3375 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 2847 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 2701 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 3279 of file class.t3lib_tcemain.php.
References $TYPO3_DB, t3lib_div\getFileAbsFileName(), t3lib_div\isFirstPartOfStr(), t3lib_div\makeInstance(), newlog(), 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 3197 of file class.t3lib_tcemain.php.
References copyRecord_procBasedOnFieldType(), copyRecord_procFilesRefs(), and isReferenceField().
| 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 3067 of file class.t3lib_tcemain.php.
References $row, $TCA, $value, checkValue_flex_procInData(), copyRecord(), copyRecord_procFilesRefs(), copyRecord_raw(), t3lib_BEfunc\getFlexFormDS(), getInlineFieldType(), t3lib_BEfunc\getInlineLocalizationMode(), t3lib_BEfunc\getRecordLocalization(), t3lib_BEfunc\getWorkspaceVersionOfRecord(), isReferenceField(), t3lib_BEfunc\isTableLocalizable(), t3lib_BEfunc\isTableWorkspaceEnabled(), 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 3226 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 2936 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(), tx_version_tcemain\rawCopyPageContent(), tx_version_tcemain\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 2901 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 6222 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 3957 of file class.t3lib_tcemain.php.
References $TYPO3_CONF_VARS, deleteEl(), t3lib_BEfunc\getRecord(), and t3lib_div\getUserObj().
Referenced by deleteL10nOverlayRecords(), deleteRecord_procBasedOnFieldType(), and process_cmdmap().
| t3lib_TCEmain::deleteClause | ( | $ | table | ) |
Returns delete-clause for the $table
| string | Table name |
Definition at line 6164 of file class.t3lib_tcemain.php.
References $TCA, and disableDeleteClause().
Referenced by copySpecificPage(), deleteSpecificPage(), destNotInsideSelf(), doesBranchExist(), doesRecordExist(), doesRecordExist_pageLookUp(), getCopyHeader(), getSortNumber(), getUnique(), int_pageTreeInfo(), tx_version_tcemain\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 3991 of file class.t3lib_tcemain.php.
References deletePages(), deleteRecord(), and deleteVersionsForRecord().
Referenced by deleteAction(), tx_version_tcemain\processCmdmap_deleteAction(), tx_version_tcemain\version_clearWSID(), and tx_version_tcemain\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 4419 of file class.t3lib_tcemain.php.
References $GLOBALS, deleteAction(), t3lib_BEfunc\getRecordsByField(), and t3lib_BEfunc\isTableLocalizable().
Referenced by deleteRecord(), and tx_version_tcemain\processCmdmap_deleteAction().
| 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 4205 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 4049 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, $TCA, $value, clear_cache(), deleteL10nOverlayRecords(), 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 4178 of file class.t3lib_tcemain.php.
References log(), and t3lib_div\makeInstance().
| 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 4376 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 4353 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 4233 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 4008 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 5408 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 6143 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 6154 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 5345 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $row, $TCA, and deleteClause().
Referenced by canDeletePage(), deletePages(), and tx_version_tcemain\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 5460 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 5249 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $TCA, 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(), tx_version_tcemain\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 5319 of file class.t3lib_tcemain.php.
References $GLOBALS, $TCA, and deleteClause().
Referenced by doesRecordExist().
| t3lib_TCEmain::eventPid | ( | $ | table, |
| $ | uid, | ||
| $ | pid | ||
| ) |
Definition at line 5576 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 6355 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 6535 of file class.t3lib_tcemain.php.
References $TCA, 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 990 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::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 6331 of file class.t3lib_tcemain.php.
References $TCA, 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 6297 of file class.t3lib_tcemain.php.
References $GLOBALS, getUnique(), t3lib_div\loadTCA(), recordInfo(), t3lib_div\trimExplode(), and updateDB().
Referenced by moveRecord_raw().
| t3lib_TCEmain::getAutoVersionId | ( | $ | table, |
| $ | id | ||
| ) | [protected] |
Gets the automatically versionized id of a record.
| string | $table | Name of the table |
| integer | $id | Uid of the record |
Definition at line 7038 of file class.t3lib_tcemain.php.
Referenced by localize(), and overlayAutoVersionId().
| t3lib_TCEmain::getCheckModifyAccessListHookObjects | ( | ) | [protected] |
Gets the 'checkModifyAccessList' hook objects. The first call initializes the accordant objects.
Definition at line 545 of file class.t3lib_tcemain.php.
References $GLOBALS, 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 6438 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $TCA, $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 5440 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 6409 of file class.t3lib_tcemain.php.
Referenced by checkValue_inline_processDBdata(), copyRecord_procBasedOnFieldType(), deleteRecord_procBasedOnFieldType(), and moveRecord_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 6209 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 5544 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 5560 of file class.t3lib_tcemain.php.
References $row, $TCA, eventPid(), and t3lib_BEfunc\fixVersioningPid().
Referenced by getRecordProperties(), insertDB(), updateDB(), and tx_version_tcemain\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 5834 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, $TCA, 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 6195 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 6180 of file class.t3lib_tcemain.php.
References t3lib_BEfunc\getPagesTSconfig().
Referenced by clear_cache(), copyRecord(), localize(), 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 2032 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 6376 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_div\loadTCA(), and t3lib_div\trimExplode().
Referenced by tx_version_tcemain\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 | $registerDBList,: | Reference to the $registerDBList array that was created/updated by versionizing calls to TCEmain in process_datamap. |
Definition at line 5058 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 521 of file class.t3lib_tcemain.php.
Referenced by process_datamap().
| 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 5652 of file class.t3lib_tcemain.php.
References $GLOBALS, $TCA, checkStoredRecord(), clear_cache(), getRecordProperties(), getRecordPropertiesFromRow(), insertUpdateDB_preprocessBasedOnFieldType(), log(), and updateRefIndex().
Referenced by insertNewCopyVersion(), tx_version_tcemain\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 3005 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 7013 of file class.t3lib_tcemain.php.
References $TCA, $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 6264 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $row, and deleteClause().
Referenced by copyPages(), and tx_version_tcemain\versionizePages().
| t3lib_TCEmain::internal_clearPageCache | ( | ) |
Clears page cache. Takes into account file cache.
Definition at line 6984 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_extMgm\isLoaded(), and t3lib_div\rmdir().
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 5129 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 6590 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 5115 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 4320 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 6398 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 5216 of file class.t3lib_tcemain.php.
References $PAGES_TYPES, $TCA, 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 3727 of file class.t3lib_tcemain.php.
References $overrideValues, $row, $TCA, copyRecord(), doesRecordExist(), getAutoVersionId(), 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(), newlog(), and triggerRemapAction().
Referenced by copyRecord_procBasedOnFieldType(), 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 6901 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(), tx_version_tcemain\version_setStage(), and tx_version_tcemain\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 3700 of file class.t3lib_tcemain.php.
References $GLOBALS, t3lib_BEfunc\getRecordsByField(), t3lib_BEfunc\isTableLocalizable(), and moveRecord().
Referenced by moveRecord_raw(), and tx_version_tcemain\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 3409 of file class.t3lib_tcemain.php.
References $TCA, $TYPO3_CONF_VARS, checkRecordInsertAccess(), checkRecordUpdateAccess(), doesRecordExist(), t3lib_BEfunc\getLiveVersionOfRecord(), getRecordProperties(), t3lib_div\getUserObj(), log(), moveRecord_raw(), and resolvePid().
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 3659 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 3637 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 3494 of file class.t3lib_tcemain.php.
References $GLOBALS, $TCA, $TYPO3_CONF_VARS, clear_cache(), destNotInsideSelf(), fixCopyAfterDuplFields(), fixUniqueInPid(), getRecordProperties(), getSortNumber(), t3lib_div\getUserObj(), log(), moveL10nOverlayRecords(), moveRecord_procFields(), and resolvePid().
Referenced by moveRecord(), and tx_version_tcemain\moveRecord_wsPlaceholders().
| 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 5969 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 6922 of file class.t3lib_tcemain.php.
References log().
Referenced by copyRecord_fixRTEmagicImages(), deletePages(), localize(), tx_version_tcemain\moveRecord(), process_cmdmap(), process_datamap(), process_uploads(), tx_version_tcemain\processCmdmap_deleteAction(), tx_version_tcemain\version_clearWSID(), tx_version_tcemain\version_setStage(), tx_version_tcemain\version_swap(), tx_version_tcemain\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 6937 of file class.t3lib_tcemain.php.
References $pid, eventPid(), getRecordProperties(), and log().
Referenced by placeholderShadowing(), tx_version_tcemain\version_setStage(), and tx_version_tcemain\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 6565 of file class.t3lib_tcemain.php.
References $GLOBALS, checkModifyAccessList(), t3lib_BEfunc\deleteClause(), rmComma(), and tableReadOnly().
Referenced by canDeletePage().
| t3lib_TCEmain::overlayAutoVersionId | ( | $ | table, |
| $ | id | ||
| ) | [protected] |
Overlays the automatically versionized id of a record.
| string | $table | Name of the table |
| integer | $id | Uid of the record |
Definition at line 7055 of file class.t3lib_tcemain.php.
References getAutoVersionId().
| 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 6022 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 5501 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 947 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 6473 of file class.t3lib_tcemain.php.
References $GLOBALS, and $TCA.
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 6952 of file class.t3lib_tcemain.php.
References $GLOBALS, $row, t3lib_FlashMessageQueue\addMessage(), t3lib_message_AbstractMessage\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 2565 of file class.t3lib_tcemain.php.
References $TCA, $TYPO3_CONF_VARS, $value, t3lib_div\array_merge_recursive_overrule(), checkModifyAccessList(), copyPages(), copyRecord(), deleteAction(), t3lib_div\getUserObj(), localize(), log(), moveRecord(), newlog(), processRemapStack(), remapListedDBRecords(), tableReadOnly(), and undeleteRecord().
| t3lib_TCEmain::process_datamap | ( | ) |
Processing the data-array Call this function to process the data-array set by start()
Definition at line 578 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(), triggerRemapAction(), 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 452 of file class.t3lib_tcemain.php.
References 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 490 of file class.t3lib_tcemain.php.
References $value.
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 4892 of file class.t3lib_tcemain.php.
References $value, checkValue_checkMax(), updateDB(), and updateRefIndex().
Referenced by insertNewCopyVersion(), process_cmdmap(), and process_datamap().
| 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 5521 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, and $TCA.
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 4694 of file class.t3lib_tcemain.php.
References $TCA, $value, checkValue_flex_procInData(), checkValue_flexArray2Xml(), debug(), t3lib_BEfunc\getFlexFormDS(), t3lib_div\loadTCA(), recordInfo(), remapListedDBRecords_procDBRefs(), 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 4773 of file class.t3lib_tcemain.php.
References isReferenceField(), and remapListedDBRecords_procDBRefs().
| 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 4800 of file class.t3lib_tcemain.php.
References $value, t3lib_div\makeInstance(), and t3lib_div\trimExplode().
Referenced by remapListedDBRecords(), and remapListedDBRecords_flexFormCallBack().
| t3lib_TCEmain::removeCacheFiles | ( | ) |
Unlink (delete) typo3conf/temp_CACHED_*.php cache files
Definition at line 6250 of file class.t3lib_tcemain.php.
Referenced by clear_cacheCmd().
| t3lib_TCEmain::removeRegisteredFiles | ( | ) |
Removing files registered for removal before exit
Definition at line 6239 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 6490 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, $TCA, 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 5908 of file class.t3lib_tcemain.php.
References $GLOBALS, $pid, $res, $row, $TCA, 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 6111 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 429 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 5765 of file class.t3lib_tcemain.php.
References $GLOBALS, clearHistory(), getTableEntries(), getTCEMAIN_TSconfig(), t3lib_BEfunc\getTSCpid(), and t3lib_div\intInRange().
Referenced by updateDB(), and tx_version_tcemain\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 405 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 5942 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 356 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 5394 of file class.t3lib_tcemain.php.
References $TCA.
Referenced by checkModifyAccessList().
| t3lib_TCEmain::tableReadOnly | ( | $ | table | ) |
Checks if the $table is readOnly
| string | Table name |
Definition at line 5382 of file class.t3lib_tcemain.php.
References $TCA.
Referenced by noRecordsFromUnallowedTables(), process_cmdmap(), and process_datamap().
| t3lib_TCEmain::triggerRemapAction | ( | $ | table, |
| $ | id, | ||
| array $ | callback, | ||
| array $ | arguments, | ||
| $ | forceRemapStackActions = FALSE |
||
| ) | [protected] |
Triggers a remap action for a specific record.
Some records are post-processed by the processRemapStack() method (e.g. IRRE children). This method determines wether an action/modification is executed directly to a record or is postponed to happen after remapping data.
| string | $table | Name of the table |
| string | $id | Id of the record (can also be a "NEW..." string) |
| array | $callback | The method to be called |
| array | $arguments | The arguments to be submitted to the callback method |
| boolean | $forceRemapStackActions | Whether to force to use the stack |
Definition at line 5006 of file class.t3lib_tcemain.php.
References addRemapAction().
Referenced by localize(), and process_datamap().
| t3lib_TCEmain::undeleteRecord | ( | $ | table, |
| $ | uid | ||
| ) |
Undelete a single record
| string | Table name |
| integer | Record UID |
Definition at line 4030 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 5596 of file class.t3lib_tcemain.php.
References $GLOBALS, $TCA, checkStoredRecord(), clear_cache(), getRecordPropertiesFromRow(), insertUpdateDB_preprocessBasedOnFieldType(), log(), setHistory(), and updateRefIndex().
Referenced by checkValue_inline_processDBdata(), fixCopyAfterDuplFields(), fixUniqueInPid(), 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 5812 of file class.t3lib_tcemain.php.
References t3lib_div\makeInstance().
Referenced by deleteRecord(), insertDB(), processRemapStack(), and updateDB().
| 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 4553 of file class.t3lib_tcemain.php.
References $TCA, checkValue_flex_procInData(), t3lib_BEfunc\getFlexFormDS(), t3lib_BEfunc\getRecord(), isReferenceField(), t3lib_div\makeInstance(), version_remapMMForVersionSwap_execSwap(), and t3lib_div\xml2array().
Referenced by tx_version_tcemain\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 4661 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 4634 of file class.t3lib_tcemain.php.
References isReferenceField(), and t3lib_div\makeInstance().
| 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 4457 of file class.t3lib_tcemain.php.
References $GLOBALS, $res, $row, $TCA, cannotDeleteRecord(), copyRecord_raw(), deleteClause(), doesRecordExist(), t3lib_BEfunc\getWorkspaceVersionOfRecord(), newlog(), and recordInfo().
Referenced by copyRecord_procBasedOnFieldType(), tx_version_tcemain\moveRecord(), tx_version_tcemain\processCmdmap(), tx_version_tcemain\processCmdmap_deleteAction(), and tx_version_tcemain\versionizePages().
| t3lib_TCEmain::$admin |
Definition at line 285 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$alternativeFileName = array() |
Definition at line 250 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$alternativeFilePath = array() |
Definition at line 251 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$autoVersionIdMap = array() |
Definition at line 262 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$autoVersioningUpdate = FALSE |
Definition at line 340 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$BE_USER |
Definition at line 282 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassAccessCheckForRecords = FALSE |
Definition at line 242 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassFileHandling = FALSE |
Definition at line 241 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$bypassWorkspaceRestrictions = FALSE |
Definition at line 240 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$cachedTSconfig = array() |
Definition at line 312 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$callBackObj |
Definition at line 255 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$callFromImpExp = FALSE |
Definition at line 329 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$checkModifyAccessListHookObjects [protected] |
Definition at line 343 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkSimilar = TRUE |
Definition at line 230 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkStoredRecords = TRUE |
Definition at line 232 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkStoredRecords_loose = TRUE |
Definition at line 233 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkValue_currentRecord = array() |
Definition at line 339 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$checkWorkspaceCache = array() |
Definition at line 314 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$clear_flexFormData_vDEFbase = FALSE |
Definition at line 237 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$cmdmap = array() |
Definition at line 295 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copiedFileMap = array() |
Definition at line 267 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyMappingArray = array() |
Definition at line 322 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyMappingArray_merged = array() |
Definition at line 266 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyTree = 0 |
Definition at line 246 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$copyWhichTables = '*' |
Definition at line 244 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$data_disableFields = array() |
Definition at line 252 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$datamap = array() |
Definition at line 294 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$dbAnalysisStore = array() |
Definition at line 317 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$defaultPermissions |
array(
'user' => 'show,edit,delete,new,editcontent',
'group' => 'show,edit,new,editcontent',
'everybody' => ''
)
Definition at line 287 of file class.t3lib_tcemain.php.
Referenced by start().
| t3lib_TCEmain::$defaultValues = array() |
Definition at line 248 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$deleteTree = FALSE |
Definition at line 234 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$disableDeleteClause = FALSE [protected] |
Definition at line 342 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$dontProcessTransformations = FALSE |
Definition at line 236 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$enableLogging = TRUE |
Definition at line 228 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$errorLog = array() |
Definition at line 269 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$exclude_array |
Definition at line 293 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$fileFunc |
Definition at line 338 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$isInWebMount_Cache = array() |
Definition at line 311 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$isRecordInWebMount_Cache = array() |
Definition at line 310 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$neverHideAtCopy = FALSE |
Definition at line 235 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$newIndexMap = array() |
Definition at line 330 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$newRelatedIDs = array() |
Definition at line 265 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$overrideValues = array() |
Definition at line 249 of file class.t3lib_tcemain.php.
Referenced by copyL10nOverlayRecords(), copyRecord(), and localize().
| t3lib_TCEmain::$pageCache = array() |
Definition at line 313 of file class.t3lib_tcemain.php.
Referenced by clear_cache(), and clear_cacheCmd().
| t3lib_TCEmain::$pMap |
array(
'show' => 1,
'edit' => 2,
'delete' => 4,
'new' => 8,
'editcontent' => 16
)
Definition at line 298 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$recInsertAccessCache = array() |
Definition at line 309 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$recUpdateAccessCache = array() |
Definition at line 308 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$registerDBList = array() |
Definition at line 320 of file class.t3lib_tcemain.php.
Referenced by getVersionizedIncomingFieldArray(), and process_datamap().
| t3lib_TCEmain::$registerDBPids = array() |
Definition at line 321 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$remapStack = array() |
Definition at line 323 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$remapStackActions = array() [protected] |
Definition at line 326 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$remapStackChildIds = array() [protected] |
Definition at line 325 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$remapStackRecords = array() |
Definition at line 324 of file class.t3lib_tcemain.php.
t3lib_TCEmain::$remapStackRefIndex = array() [protected] |
Definition at line 327 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$removeFilesStore = array() |
Definition at line 318 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$reverseOrder = FALSE |
Definition at line 229 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$RTEmagic_copyIndex = array() |
Definition at line 268 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$sortIntervals = 256 |
Definition at line 305 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$storeLogMessages = TRUE |
Definition at line 227 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$stripslashes_values = TRUE |
Definition at line 231 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$substNEWwithIDs = array() |
Definition at line 263 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$substNEWwithIDs_table = array() |
Definition at line 264 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$suggestedInsertUids = array() |
Definition at line 253 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$updateModeL10NdiffData = TRUE |
Definition at line 238 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$updateModeL10NdiffDataClear = FALSE |
Definition at line 239 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$updateRefIndexStack = array() |
Definition at line 328 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$uploadedFileArray = array() |
Definition at line 319 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select_file().
| t3lib_TCEmain::$userid |
Definition at line 283 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::$username |
Definition at line 284 of file class.t3lib_tcemain.php.
1.7.5.1