Documentation TYPO3 par Ameos |
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) | |
| checkValue_inline ($res, $value, $tcaFieldConf, $PP, $field) | |
| checkValue_checkMax ($tcaFieldConf, $valueArray) | |
| getUnique ($table, $field, $value, $id, $newPid=0) | |
| checkValue_input_Eval ($value, $evalArray, $is_in) | |
| checkValue_group_select_processDBdata ($valueArray, $tcaFieldConf, $id, $status, $type, $currentTable) | |
| 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, $realDestPid) | |
| copyRecord_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) | |
| copyRecord_procFilesRefs ($conf, $uid, $value) | |
| moveRecord ($table, $uid, $destPid) | |
| moveRecord_procFields ($table, $uid, $destPid) | |
| moveRecord_procBasedOnFieldType ($table, $uid, $destPid, $field, $value, $conf) | |
| 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) | |
| deleteRecord_procFields ($table, $uid, $undeleteRecord=false) | |
| deleteRecord_procBasedOnFieldType ($table, $uid, $field, $value, $conf, $undeleteRecord=false) | |
| 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, $table) | |
| remapListedDBRecords_procInline ($conf, $value, $uid, $table) | |
| 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) | |
| getInlineFieldType ($conf) | |
| getCopyHeader ($table, $pid, $field, $value, $count, $prevTitle='') | |
| prependLabel ($table) | |
| resolvePid ($table, $pid) | |
| clearPrefixFromValue ($table, $value) | |
| extFileFunctions ($table, $field, $filelist, $func) | |
| noRecordsFromUnallowedTables ($inList) | |
| notifyStageChange ($stat, $stageId, $table, $id, $comment) | |
| notifyStageChange_getEmails ($listOfUsers, $noTablePrefix=FALSE) | |
| 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 | |
| $bypassFileHandling = FALSE | |
| $bypassAccessCheckForRecords = FALSE | |
| $copyWhichTables = '*' | |
| $generalComment = '' | |
| $copyTree = 0 | |
| $defaultValues = array() | |
| $overrideValues = array() | |
| $alternativeFileName = array() | |
| $data_disableFields = array() | |
| $suggestedInsertUids = array() | |
| $callBackObj | |
| $autoVersionIdMap = Array() | |
| $substNEWwithIDs = Array() | |
| $substNEWwithIDs_table = Array() | |
| $newRelatedIDs = 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() | |
| $remapStack = array() | |
| $updateRefIndexStack = array() | |
| $callFromImpExp = false | |
| $fileFunc | |
| $checkValue_currentRecord = array() | |
| $autoVersioningUpdate = FALSE | |
Definition at line 237 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::start | ( | $ | data, | |
| $ | cmd, | |||
| $ | altUserObject = '' | |||
| ) |
Initializing. For details, see 'TYPO3 Core API' document. This function does not start the processing of data, but merely initializes the object
| array | Data to be modified or inserted in the database | |
| array | Commands to copy, move, delete, localize, versionize records. | |
| object | An alternative userobject you can set instead of the default, which is $GLOBALS['BE_USER'] |
Definition at line 362 of file class.t3lib_tcemain.php.
References $defaultPermissions, and getExcludeListArray().
| t3lib_TCEmain::setMirror | ( | $ | mirror | ) |
Function that can mirror input values in datamap-array to other uid numbers. Example: $mirror[table][11] = '22,33' will look for content in $this->datamap[table][11] and copy it to $this->datamap[table][22] and $this->datamap[table][33]
| array | This array has the syntax $mirror[table_name][uid] = [list of uids to copy data-value TO!] |
Definition at line 401 of file class.t3lib_tcemain.php.
References t3lib_div::trimExplode().
| t3lib_TCEmain::setDefaultsFromUserTS | ( | $ | userTS | ) |
Initializes default values coming from User TSconfig
| array | User TSconfig array |
Definition at line 426 of file class.t3lib_tcemain.php.
| t3lib_TCEmain::process_uploads | ( | $ | postFiles | ) |
Processing of uploaded files. It turns out that some versions of PHP arranges submitted data for files different if sent in an array. This function will unify this so the internal array $this->uploadedFileArray will always contain files arranged in the same structure.
| array | $_FILES array |
Definition at line 449 of file class.t3lib_tcemain.php.
References newlog(), and process_uploads_traverseArray().
| t3lib_TCEmain::process_uploads_traverseArray | ( | &$ | outputArr, | |
| $ | inputArr, | |||
| $ | keyToSet | |||
| ) |
Traverse the upload array if needed to rearrange values.
| array | $this->uploadedFileArray passed by reference | |
| array | Input array ($_FILES parts) | |
| string | The current $_FILES array key to set on the outermost level. |
Definition at line 487 of file class.t3lib_tcemain.php.
Referenced by process_uploads().
| t3lib_TCEmain::process_datamap | ( | ) |
Processing the data-array Call this function to process the data-array set by start()
Definition at line 523 of file class.t3lib_tcemain.php.
References addDefaultPermittedLanguageIfNotSet(), checkModifyAccessList(), checkRecordInsertAccess(), checkRecordUpdateAccess(), checkValue_checkMax(), compareFieldArrayWithCurrentAndUnset(), dbAnalysisStoreExec(), 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(), removeRegisteredFiles(), setTSconfigPermissions(), tableReadOnly(), t3lib_div::testInt(), and updateDB().
| t3lib_TCEmain::placeholderShadowing | ( | $ | table, | |
| $ | id | |||
| ) |
Fix shadowing of data in case we are editing a offline version of a live "New" placeholder record:
| string | Table name | |
| integer | Record uid |
Definition at line 881 of file class.t3lib_tcemain.php.
References t3lib_BEfunc::getLiveVersionOfRecord(), t3lib_BEfunc::getRecord(), t3lib_div::loadTCA(), newlog(), t3lib_div::trimExplode(), and updateDB().
Referenced by process_datamap().
| t3lib_TCEmain::fillInFieldArray | ( | $ | table, | |
| $ | id, | |||
| $ | fieldArray, | |||
| $ | incomingFieldArray, | |||
| $ | realPid, | |||
| $ | status, | |||
| $ | tscPID | |||
| ) |
Filling in the field array $this->exclude_array is used to filter fields if needed.
| string | Table name | |
| [type] | $id: ... | |
| array | Default values, Preset $fieldArray with 'pid' maybe (pid and uid will be not be overridden anyway) | |
| array | $incomingFieldArray is which fields/values you want to set. There are processed and put into $fieldArray if OK | |
| integer | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. | |
| string | $status = 'new' or 'update' | |
| [type] | $tscPID: ... |
Definition at line 924 of file class.t3lib_tcemain.php.
References t3lib_div::array_merge_recursive_overrule(), checkValue(), 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::checkValue | ( | $ | table, | |
| $ | field, | |||
| $ | value, | |||
| $ | id, | |||
| $ | status, | |||
| $ | realPid, | |||
| $ | tscPID | |||
| ) |
Evaluates a value according to $table/$field settings. This function is for real database fields - NOT FlexForm "pseudo" fields. NOTICE: Calling this function expects this: 1) That the data is saved! (files are copied and so on) 2) That files registered for deletion IS deleted at the end (with ->removeRegisteredFiles() )
| string | Table name | |
| string | Field name | |
| string | Value to be evaluated. Notice, this is the INPUT value from the form. The original value (from any existing record) must be manually looked up inside the function if needed - or taken from $currentRecord array. | |
| string | The record-uid, mainly - but not exclusively - used for logging | |
| string | 'update' or 'new' flag | |
| integer | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. | |
| integer | $tscPID |
Definition at line 1147 of file class.t3lib_tcemain.php.
References checkValue_SW(), doesPageHaveUnallowedTables(), getRecordProperties(), t3lib_div::inList(), t3lib_div::loadTCA(), log(), and recordInfo().
Referenced by fillInFieldArray(), and insertNewCopyVersion().
| t3lib_TCEmain::checkValue_SW | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | table, | |||
| $ | id, | |||
| $ | curValue, | |||
| $ | status, | |||
| $ | realPid, | |||
| $ | recFID, | |||
| $ | field, | |||
| $ | uploadedFiles, | |||
| $ | tscPID | |||
| ) |
Branches out evaluation of a field value based on its type as configured in TCA Can be called for FlexForm pseudo fields as well, BUT must not have $field set if so.
| array | The result array. The processed value (if any!) is set in the "value" key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| string | Table name | |
| integer | Return UID | |
| [type] | $curValue: ... | |
| [type] | $status: ... | |
| integer | The real PID value of the record. For updates, this is just the pid of the record. For new records this is the PID of the page where it is inserted. If $realPid is -1 it means that a new version of the record is being inserted. | |
| [type] | $recFID: ... | |
| string | Field name. Must NOT be set if the call is for a flexform field (since flexforms are not allowed within flexforms). | |
| [type] | $uploadedFiles: ... | |
| [type] | $tscPID: ... |
Definition at line 1207 of file class.t3lib_tcemain.php.
References checkValue_check(), checkValue_flex(), checkValue_group_select(), checkValue_inline(), checkValue_input(), and checkValue_radio().
Referenced by checkValue(), and checkValue_flex_procInData_travDS().
| t3lib_TCEmain::checkValue_input | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | field = '' | |||
| ) |
Evaluate "input" type values.
| array | The result array. The processed value (if any!) is set in the "value" key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| string | Field name |
Definition at line 1256 of file class.t3lib_tcemain.php.
References checkValue_input_Eval(), getUnique(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_check | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP | |||
| ) |
Evaluates 'check' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
Definition at line 1294 of file class.t3lib_tcemain.php.
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_radio | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP | |||
| ) |
Evaluates 'radio' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID |
Definition at line 1317 of file class.t3lib_tcemain.php.
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_group_select | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | uploadedFiles, | |||
| $ | field | |||
| ) |
Evaluates 'group' or 'select' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| [type] | $uploadedFiles: ... | |
| string | Field name |
Definition at line 1343 of file class.t3lib_tcemain.php.
References 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_file | ( | $ | valueArray, | |
| $ | tcaFieldConf, | |||
| $ | curValue, | |||
| $ | uploadedFileArray, | |||
| $ | status, | |||
| $ | table, | |||
| $ | id, | |||
| $ | recFID | |||
| ) |
Handling files for group/select function
| array | Array of incoming file references. Keys are numeric, values are files (basically, this is the exploded list of incoming files) | |
| array | Configuration array from TCA of the field | |
| string | Current value of the field | |
| array | Array of uploaded files, if any | |
| string | Status ("update" or ?) | |
| string | tablename of record | |
| integer | UID of record | |
| string | Field identifier ([table:uid:field:....more for flexforms?] |
Definition at line 1453 of file class.t3lib_tcemain.php.
References $uploadedFileArray, destPathFromUploadFolder(), t3lib_div::fixWindowsFilePath(), t3lib_div::formatSize(), getRecordProperties(), log(), t3lib_div::makeInstance(), t3lib_div::removeArrayEntryByValue(), t3lib_div::split_fileref(), t3lib_div::trimExplode(), and t3lib_div::upload_copy_move().
Referenced by checkValue_group_select().
| t3lib_TCEmain::checkValue_flex | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | uploadedFiles, | |||
| $ | field | |||
| ) |
Evaluates 'flex' type values.
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| array | Uploaded files for the field | |
| array | Current record array. | |
| string | Field name |
Definition at line 1627 of file class.t3lib_tcemain.php.
References _DELETE_FLEX_FORMdata(), t3lib_div::_GP(), _MOVE_FLEX_FORMdata(), 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_flexArray2Xml | ( | $ | array, | |
| $ | addPrologue = FALSE | |||
| ) |
Converts an array to FlexForm XML
| array | Array with FlexForm data | |
| boolean | If set, the XML prologue is returned as well. |
Definition at line 1704 of file class.t3lib_tcemain.php.
References t3lib_div::makeInstance().
Referenced by checkValue_flex(), and remapListedDBRecords().
| t3lib_TCEmain::_DELETE_FLEX_FORMdata | ( | &$ | valueArrayToRemoveFrom, | |
| $ | deleteCMDS | |||
| ) |
Deletes a flex form element
| array | &$valueArrayToRemoveFrom: by reference | |
| array | $deleteCMDS: ... * |
Definition at line 1716 of file class.t3lib_tcemain.php.
Referenced by checkValue_flex().
| t3lib_TCEmain::_MOVE_FLEX_FORMdata | ( | &$ | valueArrayToMoveIn, | |
| $ | moveCMDS, | |||
| $ | direction | |||
| ) |
Deletes a flex form element
TODO: Like _DELETE_FLEX_FORMdata, this is only a temporary solution!
| array | &$valueArrayToMoveIn: by reference | |
| array | $moveCMDS: ... * | |
| string | $direction: 'up' or 'down' |
Definition at line 1738 of file class.t3lib_tcemain.php.
Referenced by checkValue_flex().
| t3lib_TCEmain::checkValue_inline | ( | $ | res, | |
| $ | value, | |||
| $ | tcaFieldConf, | |||
| $ | PP, | |||
| $ | field | |||
| ) |
Evaluates 'inline' type values. (partly copied from the select_group function on this issue)
| array | The result array. The processed value (if any!) is set in the 'value' key. | |
| string | The value to set. | |
| array | Field configuration from TCA | |
| array | Additional parameters in a numeric array: $table,$id,$curValue,$status,$realPid,$recFID | |
| string | Field name |
Definition at line 1778 of file class.t3lib_tcemain.php.
References checkValue_checkMax(), checkValue_group_select_processDBdata(), t3lib_div::testInt(), and t3lib_div::trimExplode().
Referenced by checkValue_SW().
| t3lib_TCEmain::checkValue_checkMax | ( | $ | tcaFieldConf, | |
| $ | valueArray | |||
| ) |
Checks if a fields has more items than defined via TCA in maxitems. If there are more items than allowd, the item list is truncated to the defined number.
| array | $tcaFieldConf: Field configuration from TCA | |
| array | $valueArray: Current value array of items |
Definition at line 1821 of file class.t3lib_tcemain.php.
Referenced by checkValue_group_select(), checkValue_inline(), and process_datamap().
| t3lib_TCEmain::getUnique | ( | $ | table, | |
| $ | field, | |||
| $ | value, | |||
| $ | id, | |||
| $ | newPid = 0 | |||
| ) |
Gets a unique value for $table/$id/$field based on $value
| string | Table name | |
| string | Field name for which $value must be unique | |
| string | Value string. | |
| integer | UID to filter out in the lookup (the record itself...) | |
| integer | If set, the value will be unique for this PID |
Definition at line 1873 of file class.t3lib_tcemain.php.
References deleteClause(), and t3lib_div::loadTCA().
Referenced by checkValue_input(), and fixUniqueInPid().
| t3lib_TCEmain::checkValue_input_Eval | ( | $ | value, | |
| $ | evalArray, | |||
| $ | is_in | |||
| ) |
Evaluation of 'input'-type values based on 'eval' list
| string | Value to evaluate | |
| array | Array of evaluations to traverse. | |
| string | Is-in string |
Definition at line 1911 of file class.t3lib_tcemain.php.
References t3lib_div::getUserObj().
Referenced by checkValue_input().
| t3lib_TCEmain::checkValue_group_select_processDBdata | ( | $ | valueArray, | |
| $ | tcaFieldConf, | |||
| $ | id, | |||
| $ | status, | |||
| $ | type, | |||
| $ | currentTable | |||
| ) |
Returns data for group/db and select fields
| array | Current value array | |
| array | TCA field config | |
| integer | Record id, used for look-up of MM relations (local_uid) | |
| string | Status string ('update' or 'new') | |
| string | The type, either 'select', 'group' or 'inline' | |
| string | Table name, needs to be passed to t3lib_loadDBGroup |
Definition at line 2008 of file class.t3lib_tcemain.php.
References t3lib_div::makeInstance().
Referenced by checkValue_group_select(), and checkValue_inline().
| t3lib_TCEmain::checkValue_group_select_explodeSelectGroupValue | ( | $ | value | ) |
Explodes the $value, which is a list of files/uids (group select)
| string | Input string, comma separated values. For each part it will also be detected if a '|' is found and the first part will then be used if that is the case. Further the value will be rawurldecoded. |
Definition at line 2054 of file class.t3lib_tcemain.php.
References t3lib_div::trimExplode().
Referenced by checkValue_group_select().
| t3lib_TCEmain::checkValue_flex_procInData | ( | $ | dataPart, |