TYPO3 API  SVNRelease
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
t3lib_TCEmain Class Reference

List of all members.

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

Detailed Description

Definition at line 220 of file class.t3lib_tcemain.php.


Member Function Documentation

t3lib_TCEmain::_ACTION_FLEX_FORMdata ( &$  valueArray,
actionCMDs 
)

Actions for flex form element (move, delete)

Parameters:
array&$valueArrayToRemoveFrom,:by reference
array$deleteCMDS,:... *
Returns:
void

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.

Parameters:
stringTable name
arrayIncoming array (passed by reference)
Returns:
void

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.

Parameters:
array$idValuesuid values
Returns:
void

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).

Parameters:
string$tableThe affected table
integer$idThe affected ID
array$callbackThe callback information (object and method)
array$argumentsThe arguments to be used with the callback
Returns:
void

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.

Parameters:
string$table
integer$id
Returns:
void

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

Parameters:
stringList of pMap strings
Returns:
integer Integer mask
See also:
setTSconfigPermissions(), newFieldArray()

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

Parameters:
integerPage id
Returns:
mixed If array: List of page uids to traverse and delete (means OK), if string: error code.

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.

Parameters:
stringRecord Table
integerRecord UID
Returns:
string Returns a string IF there is an error (error string explaining). FALSE means record can be deleted

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

Parameters:
stringTable name
Returns:
boolean Returns true if the user has general access to modify the $table

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.

Parameters:
stringTablename to check
integerInteger PID
integerFor logging: Action number.
Returns:
boolean Returns true if the user may insert a record from table $insertTable on page $pid

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

Parameters:
stringRecord table
integerRecord UID
arrayRecord data
arrayHook objects
Returns:
boolean Returns true if the user may update the record given by $table and $id

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.

Parameters:
stringRecord table name
integerRecord uid
arrayArray of field=>value pairs to insert/update
stringAction, for logging only.
Returns:
array Selected row
See also:
insertDB(), updateDB()

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() )

Parameters:
stringTable name
stringField name
stringValue 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.
stringThe record-uid, mainly - but not exclusively - used for logging
string'update' or 'new' flag
integerThe 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
Returns:
array Returns the evaluated $value as key "value" in this array. Can be checked with isset($res['value']) ...

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the 'value' key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
Returns:
array Modified $res array

Definition at line 1390 of file class.t3lib_tcemain.php.

References $res, and $value.

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.

Parameters:
array$tcaFieldConf,:Field configuration from TCA
array$valueArray,:Current value array of items
Returns:
array The truncated 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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the 'value' key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
arrayUploaded files for the field
arrayCurrent record array.
stringField name
Returns:
array Modified $res array

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

Parameters:
arrayThe 'data' part of the INPUT flexform data
arrayThe 'data' part of the CURRENT flexform data
arrayThe uploaded files for the 'data' part of the INPUT flexform data
arrayData 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.
arrayA set of parameters to pass through for the calling of the evaluation functions
stringOptional call back function, see checkValue_flex_procInData_travDS() DEPRICATED, use class.t3lib_flexformtools.php instead for traversal!
Returns:
array The modified 'data' part.
See also:
checkValue_flex_procInData_travDS()

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.

Parameters:
arrayNew values (those being processed): Multidimensional Data array for sheet/language, passed by reference!
arrayCurrent values: Multidimensional Data array. May be empty array() if not needed (for callBackFunctions)
arrayUploaded files array for sheet/language. May be empty array() if not needed (for callBackFunctions)
arrayData structure which fits the data array
arrayA set of parameters to pass through for the calling of the evaluation functions / call back function
stringCall 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: ...
Returns:
void
See also:
checkValue_flex_procInData()

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

Parameters:
arrayArray with FlexForm data
booleanIf set, the XML prologue is returned as well.
Returns:
string Input array converted to XML

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the 'value' key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
[type]$uploadedFiles: ...
stringField name
Returns:
array Modified $res array

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)

Parameters:
stringInput 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.
Returns:
array The value array.

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

Parameters:
arrayArray of incoming file references. Keys are numeric, values are files (basically, this is the exploded list of incoming files)
arrayConfiguration array from TCA of the field
stringCurrent value of the field
arrayArray of uploaded files, if any
stringStatus ("update" or ?)
stringtablename of record
integerUID of record
stringField identifier ([table:uid:field:....more for flexforms?]
Returns:
array Modified value array
See also:
checkValue_group_select()

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

Parameters:
arrayCurrent value array
arrayTCA field config
integerRecord id, used for look-up of MM relations (local_uid)
stringStatus string ('update' or 'new')
stringThe type, either 'select', 'group' or 'inline'
stringTable name, needs to be passed to t3lib_loadDBGroup
stringfield name, needs to be set for writing to sys_history
Returns:
array Modified value array

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)

Parameters:
arrayThe result array. The processed value (if any!) is set in the 'value' key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
stringField name
Returns:
array Modified $res array

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.

Parameters:
arrayCurrent value array
arrayTCA field config
integerRecord id
stringStatus string ('update' or 'new')
stringTable name, needs to be passed to t3lib_loadDBGroup
stringThe current field the values are modified for
Returns:
string Modified values

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the "value" key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
stringField name
Returns:
array Modified $res array

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

Parameters:
stringValue to evaluate
arrayArray of evaluations to traverse.
stringIs-in string for 'is_in' evaluation
Returns:
array Modified $value in key 'value' or empty array

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the 'value' key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
Returns:
array Modified $res array

Definition at line 1419 of file class.t3lib_tcemain.php.

References $res, and $value.

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the "value" key.
stringThe value to set.
arrayField configuration from TCA
stringTable name
integerReturn UID
[type]$curValue: ...
[type]$status: ...
integerThe 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: ...
stringField name. Must NOT be set if the call is for a flexform field (since flexforms are not allowed within flexforms).
[type]$uploadedFiles: ...
[type]$tscPID: ...
Returns:
array Returns the evaluated $value as key "value" in this array.

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.

Parameters:
arrayThe result array. The processed value (if any!) is set in the "value" key.
stringThe value to set.
arrayField configuration from TCA
arrayAdditional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID
stringField name
Returns:
array Modified $res array

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.

Parameters:
stringTable name of record that was just updated.
integerUID of updated / inserted record
Returns:
void

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':

  • cache_md5params: Clearing this table would destroy all simulateStatic URLs, simulates file name and RDCT redirects.
  • cache_imagesizes: Clearing this table would cause a lot of unneeded Imagemagick calls because the size informations have to be fetched again after clearing.
  • cache_extensions: Clearing this table would make the extension manager unusable until a new extension list is fetched from the TER.
Parameters:
stringthe cache command, see above description
Returns:
void

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.

Parameters:
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.
stringtable where the history should be cleared
Returns:
void

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

Parameters:
stringTable name
stringThe value to fix
Returns:
string Clean name

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

Parameters:
stringRecord table name
integerRecord uid
arrayArray of field=>value pairs intended to be inserted into the database. All keys with values matching exactly the current value will be unset!
Returns:
array Returns $fieldArray. If the returned array is empty, then the record should not be updated!

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)

Returns:
array Array of all TCA table names

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'

Parameters:
stringInput string
Returns:
string Output 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.

Parameters:
string$table,:Record Table
string$uid,:Record UID
string$destPid,:Position to move to
Returns:
void

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.

Parameters:
integerPage UID to copy
integerDestination 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
Returns:
void

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

Parameters:
stringElement table
integerElement 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$firstis 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
arrayAssociative array with field/value pairs to override directly. Notice; Fields must exist in the table record and NOT be among excluded fields!
stringCommalist of fields to exclude from the copy process (might get default values)
integerLanguage ID (from sys_language table)
Returns:
integer ID of new record, if any

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

Parameters:
stringTable name
integerRecord UID
Returns:
void

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.

Parameters:
arrayArray of parameters in num-indexes: table, uid, field
arrayTCA field configuration (from Data Structure XML)
stringThe value of the flexForm field
stringNot used.
stringNot used.
Returns:
array Result array with key "value" containing the value of the processing.
See also:
copyRecord(), checkValue_flex_procInData_travDS()

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

Parameters:
stringTable name
integerRecord uid
stringField name being processed
stringInput value to be processed.
arrayRecord array
arrayTCA field configuration
integerReal page id (pid) the record is copied to
integerLanguage ID (from sys_language table) used in the duplicated record
Returns:
mixed Processed value. Normally a string/integer, but can be an array for flexforms! private
See also:
copyRecord()

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.

Parameters:
arrayTCE field config
integerRecord UID
stringField value (eg. list of files)
Returns:
string The (possibly modified) value
See also:
copyRecord(), copyRecord_flexFormCallBack()

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.

Parameters:
stringElement table
integerElement UID
integerElement PID (real PID, not checked)
arrayOverride array - must NOT contain any fields not in the table!
Returns:
integer Returns the new ID of the record (if applicable)

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.

Parameters:
integerPage uid
integerDestination 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
arrayTable on pages to copy along with the page.
boolean$firstis 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
Returns:
integer The id of the new page, if applicable.

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

Returns:
void

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

Parameters:
stringTable name
integerRecord UID
Returns:
void

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)
t3lib_TCEmain::deleteEl ( table,
uid,
noRecordCheck = FALSE,
forceHardDelete = FALSE 
)

Delete element from any table

Parameters:
stringTable name
integerRecord UID
booleanFlag: If $noRecordCheck is set, then the function does not check permission to delete record
booleanIf TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY!
Returns:
void

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.

Parameters:
string$table,:Record Table
string$uid,:Record UID
Returns:
void

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.

Parameters:
integerPage id
booleanIf TRUE, pages are not checked for permission.
booleanIf TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY!
Returns:
void

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!

Parameters:
stringTable name
integerRecord UID
booleanFlag: If $noRecordCheck is set, then the function does not check permission to delete record
booleanIf TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY!
booleanIf TRUE, the "deleted" flag is set to 0 again and thus, the item is undeleted.
Returns:
void

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.

Parameters:
[type]$dsArr: ...
[type]$dataValue: ...
[type]$PA: ...
[type]$structurePath: ...
[type]$pObj: ...
Returns:
[type] ...

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.

Parameters:
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)
Returns:
void
See also:
deleteRecord()

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.

Parameters:
string$table,:Record Table
string$uid,:Record UID
boolean$undeleteRecord,:If a record should be undeleted (e.g. from history/undo)
Returns:
void
See also:
deleteRecord()

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.

Parameters:
integerPage id
booleanIf TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY!
Returns:
void private
See also:
deletePages()

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

Parameters:
stringTable name
integerRecord UID
booleanIf TRUE, the "deleted" flag is ignored if applicable for record and the record is deleted COMPLETELY!
Returns:
void

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

Parameters:
integerDestination Page ID to test
integerPage ID to test for presence inside Destination
Returns:
boolean Returns false if ID is inside destination (including equal to)

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

Parameters:
stringUpload folder name, relative to PATH_site
Returns:
string Input string prefixed with 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.

Returns:
void

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

Parameters:
stringList of page uids, this is added to and outputted in the end
integerPage ID to select subpages from.
integerPerms integer to check each page record for.
booleanRecursion flag: If set, it will go out through the branch.
Returns:
string List of integers in 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

Parameters:
integerPage ID
integerPage doktype
Returns:
array Returns a list of the tables that are 'present' on the page but not allowed with the page_uid/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

Parameters:
stringRecord table name
integerRecord UID
mixedPermission restrictions to observe: Either an integer that will be bitwise AND'ed or a string, which points to a key in the ->pMap array
Returns:
boolean Returns true if the record given by $table, $id and $perms can be selected

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.

Parameters:
integerPage id
integerPermission integer
Returns:
pointer MySQL result pointer (from exec_SELECTquery()) private
See also:
doesRecordExist()

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

Parameters:
stringTable name
Returns:
array Array of fieldnames that are either "group" or "file" types.

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

Parameters:
stringTable name
stringField name
stringList of files to work on from field
stringFunction, eg. "deleteAll" which will delete all files listed.
Returns:
void

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.

Parameters:
stringTable name
integerRecord ID
arrayDefault values, Preset $fieldArray with 'pid' maybe (pid and uid will be not be overridden anyway)
array$incomingFieldArrayis which fields/values you want to set. There are processed and put into $fieldArray if OK
integerThe 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
Returns:
array Field Array

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)

Parameters:
stringTable name
integerRecord UID
integerUID of previous record
booleanIf set, updates the record
arrayInput array. If fields are already specified AND $update is not set, values are not set in output array.
Returns:
array Output array (For when the copying operation needs to get the information instead of updating the info)

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.

Parameters:
stringTable name
integerRecord UID
Returns:
void

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.

Parameters:
string$tableName of the table
integer$idUid of the record
Returns:
integer

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.

Returns:
array The 'checkModifyAccessList' hook objects (if any)

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

Parameters:
stringTable name
integerPID value in which other records to test might be
stringField name to get header value for.
stringCurrent field value
integerCounter (number of recursions)
stringPrevious title we checked for (in previous recursion)
Returns:
string The field value, possibly appended with a "copy label"

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

Returns:
array Array of [table]-[field] pairs to exclude from editing.

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.

Parameters:
arrayconfig array for TCA/columns field
Returns:
mixed string: inline subtype (field|mm|list), boolean: false

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

Parameters:
stringTable name
integerRecord uid
Returns:
integer PID value (unless the record did not exist in which case FALSE)

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

Parameters:
stringTable name
integerUid of record
booleanIf set, no workspace overlay is performed
Returns:
array Properties of record

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

Parameters:
stringTable name
arrayInput row
Returns:
array Output array

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.

Parameters:
stringTable name
integerUid of record to find sorting number for. May be zero in case of new.
integerPositioning 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)
Returns:
mixed Returns integer if PID is >=0, otherwise an array with PID and sorting number. Possibly false in case of error.

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.

Parameters:
stringTable name
arrayTSconfig for page
Returns:
array TSconfig merged
See also:
getTCEMAIN_TSconfig()

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

Parameters:
integerPage id (PID) from which to get configuration.
Returns:
array TSconfig array, if any

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

Parameters:
stringTable name
stringField name for which $value must be unique
stringValue string.
integerUID to filter out in the lookup (the record itself...)
integerIf set, the value will be unique for this PID
Returns:
string Modified value (if not-unique). Will be the value appended with a number (until 100, then the function just breaks).

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.

Parameters:
stringTable name
Returns:
array Array of fieldnames

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!

Parameters:
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.
Returns:
void

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.

Parameters:
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
Returns:
void

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

Parameters:
stringRecord table name
string"NEW...." uid string
arrayArray 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!
booleanSet to true if new version is created.
integerSuggested UID value for the inserted record. See the array $this->suggestedInsertUids; Admin-only feature
booleanIf true, the ->substNEWwithIDs array is not updated. Only useful in very rare circumstances!
Returns:
integer Returns ID on success.

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...

Parameters:
stringTable name
arrayField array to insert as a record
integerThe value of PID field. -1 is indication that we are creating a new version!
Returns:
integer Returns the new ID of the record (if applicable)

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.

Parameters:
string$tableTable name
array$fieldArrayField array to check
Returns:
array Updated field array

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!

Parameters:
arrayAccumulation of page uid=>pid pairs in branch of $pid
integerPage ID for which to find subpages
integerNumber of levels to go down.
integerID of root point for new copied branch: The idea seems to be that a copy is not made of the already new page!
Returns:
array Return array.

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.

Returns:
void

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

Parameters:
integerPage ID to check
Returns:
boolean True if OK. Cached results.

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.

Parameters:
string$table,:The tablename of the record
integer$uid,:The uid of the record
Returns:
boolean Returns true if the record is copied or is the result of a copy action

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.

Parameters:
stringTable name
integerUID of record
Returns:
boolean Returns true if OK. Cached results.

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.

Parameters:
string$table,:Table name of the record
integer$uid,:uid of the record
Returns:
boolean Whether the record can be undeleted

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

Parameters:
arrayconfig array for TCA/columns field
Returns:
boolean True if DB reference field (group/db or select with foreign-table)

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.

Parameters:
integerPage id for which to check, including 0 (zero) if checking for page tree root.
stringTable name to check
Returns:
boolean True if OK

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

Parameters:
stringTable name
integerRecord uid (to be localized)
integerLanguage ID (from sys_language table)
Returns:
mixed The uid (integer) of the new translated record or false (boolean) if something went wrong

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

Parameters:
stringTable name the log entry is concerned with. Blank if NA
integerRecord UID. Zero if NA
integerAction number: 0=No category, 1=new record, 2=update record, 3= delete record, 4= move record, 5= Check/evaluate
integerNormally 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
integerThe severity: 0 = message, 1 = error, 2 = System Error, 3 = security notice (admin)
stringDefault error message in english
integerThis 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
arrayArray with special information that may go into $details by 's' marks / sprintf() when the log is shown
integerThe page_uid (pid) where the event occurred. Used to select log-content for specific pages.
stringNEW id for new records
Returns:
integer Log entry UID
See also:
class.t3lib_userauthgroup.php

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.

Parameters:
string$table,:Record Table
string$uid,:Record UID
string$destPid,:Position to move to
Returns:
void

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

Parameters:
stringTable name to move
integerRecord uid to move
integerPosition 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
Returns:
void

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.

Parameters:
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
Returns:
void

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.

Parameters:
string$table,:Record Table
string$uid,:Record UID
string$destPid,:Position to move to
Returns:
void

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

Parameters:
stringTable name to move
integerRecord uid to move
integerPosition 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
Returns:
void
See also:
moveRecord()

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

Parameters:
stringTable name for which to set default values.
Returns:
array Array with 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.

Parameters:
stringMessage string
integerError code, see log()
Returns:
integer Log entry UID
See also:
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.

Parameters:
stringMessage string
stringTable name
integerRecord uid
integerRecord 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.
integerError code, see log()
Returns:
integer Log entry UID
See also:
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.

Parameters:
stringList of page integers
Returns:
boolean Return true, if permission granted

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.

Parameters:
string$tableName of the table
integer$idUid of the record
Returns:
integer

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.

Parameters:
stringTable name
arrayData array with fields from table. These will be overlaid with values in $this->overrideValues[$table]
Returns:
array Data array, processed.

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!

Parameters:
integerPage uid
stringField name for which to return value
Returns:
string Value of the field. Result is cached in $this->pageCache[$id][$field] and returned from there next time!

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:

Parameters:
stringTable name
integerRecord uid
Returns:
void

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 ...)

Parameters:
stringTable name
Returns:
string Label to append, containing "%s" for the number
See also:
getCopyHeader()

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

Parameters:
stringRedirect URL (for creating link in message)
Returns:
void (Will exit on error)

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 ( )
t3lib_TCEmain::process_datamap ( )
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.

Parameters:
array$_FILESarray
Returns:
void

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.

Parameters:
array$this-,>uploadedFileArraypassed by reference
arrayInput array ($_FILES parts)
stringThe current $_FILES array key to set on the outermost level.
Returns:
void private
See also:
process_uploads()

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.

Returns:
void

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!

Parameters:
stringTable name
integerUID of the record from $table
stringField list for the SELECT query, eg. "*" or "uid,pid,..."
Returns:
mixed Returns the selected record on success, otherwise false.

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.

Returns:
void

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.

Parameters:
arraySet of parameters in numeric array: table, uid, field
arrayTCA config for field (from Data Structure of course)
stringField value (from FlexForm XML)
stringNot used
stringNot used
Returns:
array Array where the "value" key carries the value.
See also:
checkValue_flex_procInData_travDS(), remapListedDBRecords()

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.

Parameters:
arrayTCA field config
stringField value
integerUID of local record (for MM relations - might need to change if support for FlexForms should be done!)
stringTable name
Returns:
array Returns array of items ready to implode for field content.
See also:
remapListedDBRecords()

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

Returns:
integer The number of files deleted

Definition at line 6250 of file class.t3lib_tcemain.php.

Referenced by clear_cacheCmd().

t3lib_TCEmain::removeRegisteredFiles ( )

Removing files registered for removal before exit

Returns:
void

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)

Parameters:
stringTable 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!
Returns:
integer

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()

Parameters:
stringTable name
integerPid in which to resort records.
stringSorting row
integerUid 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
Returns:
integer If $return_SortNumber_After_This_Uid is set, will contain usable sorting number after that record if found (otherwise 0) private
See also:
getSortNumber()

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

Parameters:
stringInput string
Returns:
string Output string with any comma in the end removed, if any.

Definition at line 6111 of file class.t3lib_tcemain.php.

Referenced by noRecordsFromUnallowedTables().

t3lib_TCEmain::setDefaultsFromUserTS ( userTS)

Initializes default values coming from User TSconfig

Parameters:
arrayUser TSconfig array
Returns:
void

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())

Parameters:
stringTable name
integerRecord ID
integerLog entry ID, important for linking between log and history views
Returns:
void

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]

Parameters:
arrayThis array has the syntax $mirror[table_name][uid] = [list of uids to copy data-value TO!]
Returns:
void

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

Parameters:
arrayField Array, returned with modifications
arrayTSconfig properties
Returns:
array Modified Field Array

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

Parameters:
arrayData to be modified or inserted in the database
arrayCommands to copy, move, delete, localize, versionize records.
objectAn alternative userobject you can set instead of the default, which is $GLOBALS['BE_USER']
Returns:
void

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

Parameters:
stringTable name
Returns:
boolean True, if readonly

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

Parameters:
stringTable name
Returns:
boolean True, if readonly

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.

Parameters:
string$tableName of the table
string$idId of the record (can also be a "NEW..." string)
array$callbackThe method to be called
array$argumentsThe arguments to be submitted to the callback method
boolean$forceRemapStackActionsWhether to force to use the stack
Returns:
void
See also:
processRemapStack

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

Parameters:
stringTable name
integerRecord UID
Returns:
void

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

Parameters:
stringRecord table name
integerRecord uid
arrayArray of field=>value pairs to insert. FIELDS MUST MATCH the database FIELDS. No check is done.
Returns:
void

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.

Parameters:
stringTable name
integerRecord UID
Returns:
void

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()

Parameters:
stringTable for the two input records
integerCurrent record (about to go offline)
integerSwap record (about to go online)
Returns:
void
See also:
version_swap()

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.

Parameters:
stringTable for the two input records
integerCurrent record (about to go offline)
integerSwap record (about to go online)
Returns:
void
See also:
version_remapMMForVersionSwap()

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 ...

Parameters:
arrayArray of parameters in num-indexes: table, uid, field
arrayTCA field configuration (from Data Structure XML)
stringThe value of the flexForm field
stringNot used.
stringNot used.
stringPath in flexforms
Returns:
array Result array with key "value" containing the value of the processing.
See also:
version_remapMMForVersionSwap(), checkValue_flex_procInData_travDS()

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)

Parameters:
stringTable name
integerRecord uid to versionize
stringVersion label
booleanIf true, the version is created to delete the record.
integerIndicating "treeLevel" - or versioning type - "element" (-1), "page" (0) or "branch" (>=1)
Returns:
integer Returns the id of the new version (if any)
See also:
copyRecord()

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().


Member Data Documentation

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
Initial value:
 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
Initial value:
 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.


The documentation for this class was generated from the following file: