Feature #14564 » 0000823-class.t3lib_tcemain.diff
class.t3lib_tcemain.php 2005-02-24 09:50:45.696696427 +0100 | ||
---|---|---|
* @return void
|
||
*/
|
||
function process_cmdmap() {
|
||
global $TCA;
|
||
global $TCA, $TYPO3_CONF_VARS;
|
||
$hookObjectsArr = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'] as $classRef) {
|
||
$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
// Traverse command map:
|
||
reset ($this->cmdmap);
|
||
... | ... | |
$command = key($incomingCmdArray);
|
||
$value = current($incomingCmdArray);
|
||
foreach($hookObjectsArr as $hookObj) {
|
||
if (method_exists($hookObj, 'processCmdmap_preProcess')) {
|
||
$hookObj->processCmdmap_preProcess($command, $table, $id, $value, $this);
|
||
}
|
||
}
|
||
// Init copyMapping array:
|
||
$this->copyMappingArray = Array(); // Must clear this array before call from here to those functions: Contains mapping information between new and old id numbers.
|
||
... | ... | |
}
|
||
break;
|
||
}
|
||
foreach($hookObjectsArr as $hookObj) {
|
||
if (method_exists($hookObj, 'processCmdmap_postProcess')) {
|
||
$hookObj->processCmdmap_postProcess($command, $table, $id, $value, $this);
|
||
}
|
||
}
|
||
// Merging the copy-array info together for remapping purposes.
|
||
$this->copyMappingArray_merged= t3lib_div::array_merge_recursive_overrule($this->copyMappingArray_merged,$this->copyMappingArray);
|
||
}
|
- « Previous
- 1
- 2
- Next »