"TYPO3 4.0.1: t3lib_TCEmain Class Reference", "datetime" => "Sat Dec 2 19:26:23 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
start ($data, $cmd, $altUserObject='') | |
setMirror ($mirror) | |
setDefaultsFromUserTS ($userTS) | |
process_uploads ($postFiles) | |
process_uploads_traverseArray (&$outputArr, $inputArr, $keyToSet) | |
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_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) | |
_DELETE_FLEX_FORMdata (&$valueArrayToRemoveFrom, $deleteCMDS) | |
_MOVE_FLEX_FORMdata (&$valueArrayToMoveIn, $moveCMDS, $direction) | |
getUnique ($table, $field, $value, $id, $newPid=0) | |
checkValue_input_Eval ($value, $evalArray, $is_in) | |
checkValue_group_select_processDBdata ($valueArray, $tcaFieldConf, $id, $status, $type) | |
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='') | |
copyPages ($uid, $destPid) | |
copySpecificPage ($uid, $destPid, $copyTablesArray, $first=0) | |
copyRecord_raw ($table, $uid, $pid, $overrideArray=array()) | |
rawCopyPageContent ($old_pid, $new_pid, $copyTablesArray) | |
insertNewCopyVersion ($table, $fieldArray, $realPid) | |
copyRecord_procBasedOnFieldType ($table, $uid, $field, $value, $row, $conf) | |
copyRecord_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
copyRecord_procFilesRefs ($conf, $uid, $value) | |
moveRecord ($table, $uid, $destPid) | |
localize ($table, $uid, $language) | |
deleteAction ($table, $id) | |
deleteEl ($table, $uid, $noRecordCheck=FALSE, $forceHardDelete=FALSE) | |
undeleteRecord ($table, $uid) | |
deleteRecord ($table, $uid, $noRecordCheck=FALSE, $forceHardDelete=FALSE, $undeleteRecord=FALSE) | |
deletePages ($uid, $force=FALSE, $forceHardDelete=FALSE) | |
deleteSpecificPage ($uid, $forceHardDelete=FALSE) | |
canDeletePage ($uid) | |
cannotDeleteRecord ($table, $id) | |
versionizeRecord ($table, $id, $label, $delete=FALSE, $versionizeTree=-1) | |
versionizePages ($uid, $label, $versionizeTree) | |
version_swap ($table, $id, $swapWith, $swapIntoWS=0) | |
version_clearWSID ($table, $id) | |
version_setStage ($table, $id, $stageId, $comment='') | |
remapListedDBRecords () | |
remapListedDBRecords_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
remapListedDBRecords_procDBRefs ($conf, $value, $MM_localUid) | |
checkModifyAccessList ($table) | |
isRecordInWebMount ($table, $id) | |
isInWebMount ($pid) | |
checkRecordUpdateAccess ($table, $id) | |
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) | |
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) | |
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) | |
getCopyHeader ($table, $pid, $field, $value, $count, $prevTitle='') | |
prependLabel ($table) | |
resolvePid ($table, $pid) | |
clearPrefixFromValue ($table, $value) | |
extFileFunctions ($table, $field, $filelist, $func) | |
noRecordsFromUnallowedTables ($inList) | |
notifyStageChange ($stat, $stageId, $table, $id, $comment) | |
notifyStageChange_getEmails ($listOfUsers, $noTablePrefix=FALSE) | |
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) | |
printLogErrorMessages ($redirect) | |
Public Attributes | |
$storeLogMessages = TRUE | |
$enableLogging = TRUE | |
$reverseOrder = FALSE | |
$checkSimilar = TRUE | |
$stripslashes_values = TRUE | |
$checkStoredRecords = TRUE | |
$checkStoredRecords_loose = TRUE | |
$deleteTree = FALSE | |
$neverHideAtCopy = FALSE | |
$dontProcessTransformations = FALSE | |
$bypassWorkspaceRestrictions = FALSE | |
$copyWhichTables = '*' | |
$generalComment = '' | |
$copyTree = 0 | |
$defaultValues = array() | |
$overrideValues = array() | |
$alternativeFileName = array() | |
$data_disableFields = array() | |
$suggestedInsertUids = array() | |
$callBackObj | |
$autoVersionIdMap = Array() | |
$substNEWwithIDs = Array() | |
$substNEWwithIDs_table = Array() | |
$copyMappingArray_merged = Array() | |
$copiedFileMap = 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() | |
$copyMappingArray = Array() | |
$fileFunc | |
$checkValue_currentRecord = array() | |
$autoVersioningUpdate = FALSE |
Definition at line 229 of file class.t3lib_tcemain.php.
|
Deletes a flex form element
Definition at line 1632 of file class.t3lib_tcemain.php. |
|
Deletes a flex form element TODO: Like _DELETE_FLEX_FORMdata, this is only a temporary solution!
Definition at line 1654 of file class.t3lib_tcemain.php. |
|
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.
Definition at line 4720 of file class.t3lib_tcemain.php. References t3lib_BEfunc::deleteClause(). Referenced by process_datamap(). |
|
Calculates the bitvalue of the permissions given in a string, comma-sep
Definition at line 4806 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Used to evaluate if a page can be deleted
Definition at line 3221 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Returns true if record CANNOT be deleted, otherwise false. Used to check before the versioning API allows a record to be marked for deletion.
Definition at line 3248 of file class.t3lib_tcemain.php. |
|
Checking group modify_table access list
Definition at line 3844 of file class.t3lib_tcemain.php. References t3lib_div::inList(). Referenced by process_datamap(). |
|
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.
Definition at line 3908 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
Checks if user may update a record with uid=$id from $table
Definition at line 3884 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
Checking stored record to see if the written values are properly updated.
Definition at line 4451 of file class.t3lib_tcemain.php. |
|
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() )
Definition at line 1072 of file class.t3lib_tcemain.php. References t3lib_div::inList(), and t3lib_div::loadTCA(). |
|
Evaluates 'check' type values.
Definition at line 1216 of file class.t3lib_tcemain.php. |
|
Evaluates 'flex' type values.
Definition at line 1547 of file class.t3lib_tcemain.php. References t3lib_div::_GP(), t3lib_div::array_merge_recursive_overrule(), t3lib_BEfunc::getFlexFormDS(), and t3lib_div::xml2array(). |
|
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
Definition at line 1907 of file class.t3lib_tcemain.php. References t3lib_div::resolveSheetDefInDS(). |
|
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.
Definition at line 1946 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getPagesTSconfig(), t3lib_BEfunc::getSpecConfParts(), t3lib_BEfunc::getTCAtypeValue(), t3lib_BEfunc::RTEgetObj(), and t3lib_BEfunc::RTEsetup(). |
|
Converts an array to FlexForm XML
Definition at line 1620 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(). |
|
Evaluates 'group' or 'select' type values.
Definition at line 1265 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Explodes the $value, which is a list of files/uids (group select)
Definition at line 1883 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Handling files for group/select function
Definition at line 1377 of file class.t3lib_tcemain.php. References t3lib_div::fixWindowsFilePath(), t3lib_div::formatSize(), t3lib_div::makeInstance(), t3lib_div::removeArrayEntryByValue(), t3lib_div::split_fileref(), t3lib_div::trimExplode(), and t3lib_div::upload_copy_move(). |
|
Returns data for group/db and select fields
Definition at line 1850 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(). |
|
Evaluate "input" type values.
Definition at line 1178 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Evaluation of 'input'-type values based on 'eval' list
Definition at line 1754 of file class.t3lib_tcemain.php. |
|
Evaluates 'radio' type values.
Definition at line 1239 of file class.t3lib_tcemain.php. |
|
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.
Definition at line 1132 of file class.t3lib_tcemain.php. |
|
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.
Definition at line 5412 of file class.t3lib_tcemain.php. References t3lib_div::callUserFunction(), t3lib_BEfunc::getTSCpid(), t3lib_extMgm::isLoaded(), and t3lib_div::trimExplode(). |
|
Clears the cache based on a 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'] (num array with values being the function references, called by t3lib_div::callUserFunction())
Definition at line 5522 of file class.t3lib_tcemain.php. References t3lib_extMgm::isLoaded(). |
|
Clearing sys_history table from older entries that are expired.
Definition at line 4521 of file class.t3lib_tcemain.php. |
|
Removes the prependAtCopy prefix on values
Definition at line 5200 of file class.t3lib_tcemain.php. |
|
Compares the incoming field array with the current record and unsets all fields which are the same. Used for existing records being updated
Definition at line 4760 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
List of all tables (those administrators has access to = array_keys of $TCA)
Definition at line 4985 of file class.t3lib_tcemain.php. |
|
Converts a HTML entity (like {) to the character '123'
Definition at line 4833 of file class.t3lib_tcemain.php. |
|
Copying pages Main function for copying pages.
Definition at line 2354 of file class.t3lib_tcemain.php. References t3lib_div::inList(). |
|
Copying a single record
Definition at line 2232 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getRecordWSOL(), t3lib_BEfunc::getTSconfig_pidValue(), t3lib_div::inList(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), and t3lib_div::trimExplode(). |
|
Callback function for traversing the FlexForm structure in relation to creating copied files of file relations inside of flex form structures.
Definition at line 2637 of file class.t3lib_tcemain.php. |
|
Processing/Preparing content for copyRecord() function
Definition at line 2581 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getFlexFormDS(), t3lib_div::makeInstance(), and t3lib_div::xml2array(). |
|
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.
Definition at line 2665 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(), and t3lib_div::trimExplode(). |
|
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.
Definition at line 2442 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(). |
|
Copying a single page ($uid) to $destPid and all tables in the array copyTablesArray.
Definition at line 2408 of file class.t3lib_tcemain.php. |
|
Executing dbAnalysisStore This will save MM relations for new records but is executed after records are created because we need to know the ID of them
Definition at line 4922 of file class.t3lib_tcemain.php. |
|
Delete a single record
Definition at line 3005 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getRecord(), and t3lib_BEfunc::getWorkspaceVersionOfRecord(). |
|
Returns delete-clause for the $table
Definition at line 4865 of file class.t3lib_tcemain.php. |
|
Delete element from any table
Definition at line 3052 of file class.t3lib_tcemain.php. |
|
Used to delete page because it will check for branch below pages and unallowed tables on the page as well.
Definition at line 3170 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
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 of offline, doesn't matter, the uid decides) If both $noRecordCheck and $forceHardDelete are set it could even delete a "deleted"-flagged record!
Definition at line 3084 of file class.t3lib_tcemain.php. |
|
Delete a page and all records on it.
Definition at line 3198 of file class.t3lib_tcemain.php. |
|
Checks if piage $id is a uid in the rootline from page id, $dest Used when moving a page
Definition at line 4122 of file class.t3lib_tcemain.php. References t3lib_BEfunc::fixVersioningPid(). |
|
Returns absolute destination path for the uploadfolder, $folder
Definition at line 4855 of file class.t3lib_tcemain.php. |
|
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
Definition at line 4062 of file class.t3lib_tcemain.php. |
|
Checks if there are records on a page from tables that are not allowed
Definition at line 4177 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Checks if record can be selected based on given permission criteria
Definition at line 3975 of file class.t3lib_tcemain.php. References t3lib_BEfunc::fixVersioningPid(), and t3lib_div::testInt(). |
|
Looks up a page based on permissions.
Definition at line 4036 of file class.t3lib_tcemain.php. |
|
Returns all fieldnames from a table which are a list of files
Definition at line 5063 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(). |
|
File functions on external file references. eg. deleting files when deleting record
Definition at line 5215 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(). |
|
Filling in the field array $this->exclude_array is used to filter fields if needed.
Definition at line 851 of file class.t3lib_tcemain.php. References t3lib_div::array_merge_recursive_overrule(), t3lib_parsehtml_proc::evalWriteFile(), t3lib_BEfunc::getPagesTSconfig(), t3lib_BEfunc::getTCAtypes(), t3lib_BEfunc::getTCAtypeValue(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), t3lib_BEfunc::RTEgetObj(), t3lib_BEfunc::RTEsetup(), t3lib_div::stripSlashesOnArray(), t3lib_BEfunc::workspaceOL(), and t3lib_div::writeFile(). Referenced by process_datamap(). |
|
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)
Definition at line 5038 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(), and t3lib_div::trimExplode(). |
|
Checks if any uniqueInPid eval input fields are in the record and if so, they are re-written to be correct.
Definition at line 5002 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(), and t3lib_div::trimExplode(). |
|
Get modified header for a copied record
Definition at line 5124 of file class.t3lib_tcemain.php. |
|
Generate an array of fields to be excluded from editing for the user. Based on "exclude"-field in TCA and a look up in non_exclude_fields Will also generate this list for admin-users so they must be check for before calling the function
Definition at line 4154 of file class.t3lib_tcemain.php. References t3lib_div::inList(), and t3lib_div::loadTCA(). Referenced by start(). |
|
Returns the pid of a record from $table with $uid
Definition at line 4909 of file class.t3lib_tcemain.php. |
|
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
Definition at line 4267 of file class.t3lib_tcemain.php. References t3lib_BEfunc::fixVersioningPid(), and t3lib_BEfunc::workspaceOL(). Referenced by process_datamap(). |
|
Returns an array with record properties, like header and pid, based on the row
Definition at line 4283 of file class.t3lib_tcemain.php. |
|
Returning sorting number for tables with a "sortby" column Using when new records are created and existing records are moved around.
Definition at line 4567 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getLiveVersionOfRecord(). Referenced by process_datamap(). |
|
Extract entries from TSconfig for a specific table. This will merge specific and default configuration together.
Definition at line 4896 of file class.t3lib_tcemain.php. References t3lib_div::array_merge_recursive_overrule(). |
|
Return TSconfig for a page id
Definition at line 4881 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getPagesTSconfig(). Referenced by process_datamap(). |
|
Gets a unique value for $table/$id/$field based on $value
Definition at line 1716 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(). |
|
Returns all fieldnames from a table which have the unique evaluation type set.
Definition at line 5084 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(), and t3lib_div::trimExplode(). |
|
Insert into database Does not check permissions but expects them to be verified on beforehand
Definition at line 4378 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
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...
Definition at line 2530 of file class.t3lib_tcemain.php. |
|
Returns array, $CPtable, of pages under the $pid going down to $counter levels. Selecting ONLY pages which the user has read-access to!
Definition at line 4964 of file class.t3lib_tcemain.php. |
|
Checks if the input page ID is in the BE_USER webmounts
Definition at line 3870 of file class.t3lib_tcemain.php. |
|
Checking if a record with uid $id from $table is in the BE_USERS webmounts which is required for editing etc.
Definition at line 3856 of file class.t3lib_tcemain.php. |
|
Returns true if the TCA/columns field type is a DB reference field
Definition at line 5109 of file class.t3lib_tcemain.php. |
|
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.
Definition at line 3942 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Localizes a record to another system language
Definition at line 2921 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordsByField(), t3lib_BEfunc::getRecordWSOL(), t3lib_BEfunc::getTSCpid(), t3lib_div::inList(), and t3lib_div::loadTCA(). |
|
Logging actions from TCEmain
Definition at line 5628 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
Moving single records
Definition at line 2734 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_div::getUserObj(), and t3lib_BEfunc::getWorkspaceVersionOfRecord(). |
|
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
Definition at line 4688 of file class.t3lib_tcemain.php. References t3lib_div::loadTCA(). Referenced by process_datamap(). |
|
Simple logging function meant to be used when logging messages is not yet fixed.
Definition at line 5645 of file class.t3lib_tcemain.php. Referenced by process_datamap(), and process_uploads(). |
|
Used by the deleteFunctions to check if there are records from disallowed tables under the pages to be deleted.
Definition at line 5245 of file class.t3lib_tcemain.php. References t3lib_BEfunc::deleteClause(). |
|
Send an email notification to users in workspace
Definition at line 5271 of file class.t3lib_tcemain.php. References t3lib_div::getIndpEnv(), t3lib_BEfunc::getRecord(), and t3lib_div::plainMailEncoded(). |
|
Return emails addresses of be_users from input list.
Definition at line 5366 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getRecord(), t3lib_div::revExplode(), and t3lib_div::trimExplode(). |
|
Returns the $data array from $table overridden in the fields defined in ->overrideValues.
Definition at line 4744 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
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!
Definition at line 4226 of file class.t3lib_tcemain.php. |
|
Fix shadowing of data in case we are editing a offline version of a live "New" placeholder record:
Definition at line 815 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getRecord(), and t3lib_div::trimExplode(). Referenced by process_datamap(). |
|
Return "copy" label for a table. Although the name is "prepend" it actually APPENDs the label (after ...)
Definition at line 5153 of file class.t3lib_tcemain.php. |
|
Print log error messages from the operations of this script instance
Definition at line 5655 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(). |
|
Processing the cmd-array See "TYPO3 Core API" for a description of the options.
Definition at line 2092 of file class.t3lib_tcemain.php. References t3lib_div::array_merge_recursive_overrule(), t3lib_div::getUserObj(), t3lib_div::intInRange(), and t3lib_div::trimExplode(). |
|
Processing the data-array Call this function to process the data-array set by start()
Definition at line 509 of file class.t3lib_tcemain.php. References addDefaultPermittedLanguageIfNotSet(), checkModifyAccessList(), checkRecordInsertAccess(), checkRecordUpdateAccess(), compareFieldArrayWithCurrentAndUnset(), fillInFieldArray(), getRecordProperties(), getSortNumber(), getTCEMAIN_TSconfig(), t3lib_BEfunc::getTSCpid(), t3lib_div::getUserObj(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), insertDB(), t3lib_div::intInRange(), log(), t3lib_div::makeInstance(), newFieldArray(), newlog(), overrideFieldArray(), placeholderShadowing(), recordInfo(), setTSconfigPermissions(), tableReadOnly(), t3lib_div::testInt(), and updateDB(). |
|
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.
Definition at line 435 of file class.t3lib_tcemain.php. References newlog(), and process_uploads_traverseArray(). |
|
Traverse the upload array if needed to rearrange values.
Definition at line 473 of file class.t3lib_tcemain.php. Referenced by process_uploads(). |
|
Copies all records from tables in $copyTablesArray from page with $old_pid to page with $new_pid Uses raw-copy for the operation (meant for versioning!)
Definition at line 2506 of file class.t3lib_tcemain.php. |
|
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!
Definition at line 4246 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
Processes the fields with references as registered during the copy process. This includes all FlexForm fields which had references.
Definition at line 3675 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getFlexFormDS(), t3lib_div::loadTCA(), t3lib_BEfunc::workspaceOL(), t3lib_BEfunc::wsMapId(), and t3lib_div::xml2array(). |
|
Callback function for traversing the FlexForm structure in relation to creating copied files of file relations inside of flex form structures.
Definition at line 3753 of file class.t3lib_tcemain.php. |
|
Performs remapping of old UID values to NEW uid values for a DB reference field.
Definition at line 3779 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(), and t3lib_div::trimExplode(). |
|
Unlink (delete) typo3conf/temp_CACHED_*.php cache files
Definition at line 4950 of file class.t3lib_tcemain.php. References t3lib_extMgm::removeCacheFiles(). |
|
Removing files registered for removal before exit
Definition at line 4938 of file class.t3lib_tcemain.php. |
|
Get the final pid based on $table and $pid ($destPid type... pos/neg)
Definition at line 5170 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getLiveVersionOfRecord(), and t3lib_BEfunc::getWorkspaceVersionOfRecord(). |
|
Resorts a table. Used internally by getSortNumber()
Definition at line 4640 of file class.t3lib_tcemain.php. |
|
Returns the $input string without a comma in the end
Definition at line 4823 of file class.t3lib_tcemain.php. |
|
Initializes default values coming from User TSconfig
Definition at line 412 of file class.t3lib_tcemain.php. |
|
Setting sys_history record, based on content previously set in $this->historyRecords[$table.':'.$id] (by compareFieldArrayWithCurrentAndUnset())
Definition at line 4488 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getTSCpid(), and t3lib_div::intInRange(). |
|
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]
Definition at line 387 of file class.t3lib_tcemain.php. References t3lib_div::trimExplode(). |
|
Setting up perms_* fields in $fieldArray based on TSconfig input Used for new pages
Definition at line 4671 of file class.t3lib_tcemain.php. References t3lib_div::testInt(). Referenced by process_datamap(). |
|
Initializing. For details, see 'TYPO3 Core API' document. This function does not start the processing of data, but merely initializes the object
Definition at line 348 of file class.t3lib_tcemain.php. References $defaultPermissions, and getExcludeListArray(). |
|
Checks if the $table is only editable by admin-users
Definition at line 4108 of file class.t3lib_tcemain.php. |
|
Checks if the $table is readOnly
Definition at line 4096 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
Undelete a single record
Definition at line 3067 of file class.t3lib_tcemain.php. |
|
Update database record Does not check permissions but expects them to be verified on beforehand
Definition at line 4326 of file class.t3lib_tcemain.php. Referenced by process_datamap(). |
|
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.
Definition at line 4535 of file class.t3lib_tcemain.php. References t3lib_div::makeInstance(). |
|
Release version from this workspace (and into "Live" workspace but as an offline version).
Definition at line 3596 of file class.t3lib_tcemain.php. |
|
Setting stage of record
Definition at line 3630 of file class.t3lib_tcemain.php. |
|
Swapping versions of a record Version from archive (future/past, called "swap version") will get the uid of the "t3ver_oid", the official element with uid = "t3ver_oid" will get the new versions old uid. PIDs are swapped also
Definition at line 3425 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getRecord(), and t3lib_div::writeFileToTypo3tempDir(). |
|
Creates a new version of a page including content and possible subpages.
Definition at line 3362 of file class.t3lib_tcemain.php. |
|
Creates a new version of a record (Requires support in the table)
Definition at line 3286 of file class.t3lib_tcemain.php. References t3lib_BEfunc::getWorkspaceVersionOfRecord(). |
|
Initial value: array( // Can be overridden from $TYPO3_CONF_VARS 'user' => 'show,edit,delete,new,editcontent', 'group' => 'show,edit,new,editcontent', 'everybody' => '' ) Definition at line 286 of file class.t3lib_tcemain.php. Referenced by start(). |
|
Initial value: Array( // Permission mapping 'show' => 1, // 1st bit 'edit' => 2, // 2nd bit 'delete' => 4, // 3rd bit 'new' => 8, // 4th bit 'editcontent' => 16 // 5th bit ) Definition at line 297 of file class.t3lib_tcemain.php. |