Bug #20959 » 0011831.patch
t3lib/class.t3lib_stdgraphic.php (Arbeitskopie) | ||
---|---|---|
}
|
||
if (TYPO3_MODE=='FE') {
|
||
$this->csConvObj = &$GLOBALS['TSFE']->csConvObj;
|
||
$this->csConvObj = $GLOBALS['TSFE']->csConvObj;
|
||
} elseif(is_object($GLOBALS['LANG'])) { // BE assumed:
|
||
$this->csConvObj = &$GLOBALS['LANG']->csConvObj;
|
||
$this->csConvObj = $GLOBALS['LANG']->csConvObj;
|
||
} else { // The object may not exist yet, so we need to create it now. Happens in the Install Tool for example.
|
||
$this->csConvObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
t3lib/class.t3lib_basicfilefunc.php (Arbeitskopie) | ||
---|---|---|
// Get conversion object or initialize if needed
|
||
if (!is_object($this->csConvObj)) {
|
||
if (TYPO3_MODE=='FE') {
|
||
$this->csConvObj = &$GLOBALS['TSFE']->csConvObj;
|
||
$this->csConvObj = $GLOBALS['TSFE']->csConvObj;
|
||
} elseif (is_object($GLOBALS['LANG'])) { // BE assumed:
|
||
$this->csConvObj = &$GLOBALS['LANG']->csConvObj;
|
||
$this->csConvObj = $GLOBALS['LANG']->csConvObj;
|
||
} else { // The object may not exist yet, so we need to create it now. Happens in the Install Tool for example.
|
||
$this->csConvObj = &t3lib_div::makeInstance('t3lib_cs');
|
||
$this->csConvObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
||
}
|
||
t3lib/class.t3lib_scbase.php (Arbeitskopie) | ||
---|---|---|
* @return void
|
||
*/
|
||
function extObjContent() {
|
||
$this->extObj->pObj = &$this;
|
||
$this->extObj->pObj = $this;
|
||
if (is_callable(array($this->extObj, 'main'))) {
|
||
$this->content .= $this->extObj->main();
|
t3lib/class.t3lib_refindex.php (Arbeitskopie) | ||
---|---|---|
if (strlen($value) && $softRefs = t3lib_BEfunc::explodeSoftRefParserList($conf['softref'])) {
|
||
$softRefValue = $value;
|
||
foreach($softRefs as $spKey => $spParams) {
|
||
$softRefObj = &t3lib_BEfunc::softRefParserObj($spKey);
|
||
$softRefObj = t3lib_BEfunc::softRefParserObj($spKey);
|
||
if (is_object($softRefObj)) {
|
||
$resultArray = $softRefObj->findRef($table, $field, $uid, $softRefValue, $spKey, $spParams);
|
||
if (is_array($resultArray)) {
|
||
... | ... | |
* @return void
|
||
* @see t3lib_TCEmain::checkValue_flex_procInData_travDS()
|
||
*/
|
||
function getRelations_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, &$pObj) {
|
||
function getRelations_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, $pObj) {
|
||
$structurePath = substr($structurePath,5).'/'; // removing "data/" in the beginning of path (which points to location in data array)
|
||
$dsConf = $dsArr['TCEforms']['config'];
|
||
... | ... | |
if (strlen($dataValue) && $softRefs = t3lib_BEfunc::explodeSoftRefParserList($dsConf['softref'])) {
|
||
$softRefValue = $dataValue;
|
||
foreach($softRefs as $spKey => $spParams) {
|
||
$softRefObj = &t3lib_BEfunc::softRefParserObj($spKey);
|
||
$softRefObj = t3lib_BEfunc::softRefParserObj($spKey);
|
||
if (is_object($softRefObj)) {
|
||
$resultArray = $softRefObj->findRef($table, $field, $uid, $softRefValue, $spKey, $spParams, $structurePath);
|
||
if (is_array($resultArray) && is_array($resultArray['elements'])) {
|
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
$this->hookObjectsMainFields = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getMainFieldsClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getMainFieldsClass'] as $classRef) {
|
||
$this->hookObjectsMainFields[] = &t3lib_div::getUserObj($classRef);
|
||
$this->hookObjectsMainFields[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
$this->hookObjectsSingleField = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass'] as $classRef) {
|
||
$this->hookObjectsSingleField[] = &t3lib_div::getUserObj($classRef);
|
||
$this->hookObjectsSingleField[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
... | ... | |
$RTErelPath = is_array($eFile) ? dirname($eFile['relEditFile']) : '';
|
||
// Get RTE object, draw form and set flag:
|
||
$RTEobj = &t3lib_BEfunc::RTEgetObj();
|
||
$RTEobj = t3lib_BEfunc::RTEgetObj();
|
||
$item = $RTEobj->drawRTE($this,$table,$field,$row,$PA,$specConf,$thisConfig,$RTEtypeVal,$RTErelPath,$thePidValue);
|
||
// Wizard:
|
t3lib/class.t3lib_sqlengine.php (Arbeitskopie) | ||
---|---|---|
* @param object Parent object
|
||
* @return void
|
||
*/
|
||
function init($config, &$pObj) {
|
||
function init($config, $pObj) {
|
||
}
|
||
/**
|
t3lib/class.t3lib_flexformtools.php (Arbeitskopie) | ||
---|---|---|
* @param string Method name of call back function in object for values
|
||
* @return boolean If true, error happened (error string returned)
|
||
*/
|
||
function traverseFlexFormXMLData($table,$field,$row,&$callBackObj,$callBackMethod_value) {
|
||
function traverseFlexFormXMLData($table, $field, $row, $callBackObj, $callBackMethod_value) {
|
||
if (!is_array($GLOBALS['TCA'][$table]) || !is_array($GLOBALS['TCA'][$table]['columns'][$field])) {
|
||
return 'TCA table/field was not defined.';
|
||
}
|
||
$this->callBackObj = &$callBackObj;
|
||
$this->callBackObj = $callBackObj;
|
||
// Get Data Structure:
|
||
$dataStructArray = t3lib_BEfunc::getFlexFormDS($GLOBALS['TCA'][$table]['columns'][$field]['config'],$row,$table);
|
||
... | ... | |
* @param object Object reference to caller
|
||
* @return void
|
||
*/
|
||
function cleanFlexFormXML_callBackFunction($dsArr, $data, $PA, $path, &$pObj) {
|
||
function cleanFlexFormXML_callBackFunction($dsArr, $data, $PA, $path, $pObj) {
|
||
#debug(array($dsArr, $data, $PA),$path);
|
||
// Just setting value in our own result array, basically replicating the structure:
|
||
$pObj->setArrayValueByPath($path,$this->cleanFlexFormXML,$data);
|
t3lib/class.t3lib_frontendedit.php (Arbeitskopie) | ||
---|---|---|
if ($GLOBALS['TSFE']->displayEditIcons && $table && $this->allowedToEdit($table, $dataArray, $conf) && $this->allowedToEditLanguage($table, $dataArray)) {
|
||
$editClass = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'];
|
||
if ($editClass) {
|
||
$edit = &t3lib_div::getUserObj($editClass, false);
|
||
$edit = t3lib_div::getUserObj($editClass, false);
|
||
if (is_object($edit)) {
|
||
$allowedActions = $this->getAllowedEditActions($table, $conf, $dataArray['pid']);
|
||
$content = $edit->editPanel($content, $conf, $currentRecord, $dataArray, $table, $allowedActions, $newUid, $this->getHiddenFields($dataArray));
|
||
... | ... | |
if ($GLOBALS['TSFE']->displayFieldEditIcons && $table && $this->allowedToEdit($table, $dataArray, $conf) && $fieldList && $this->allowedToEditLanguage($table, $dataArray)) {
|
||
$editClass = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'];
|
||
if ($editClass) {
|
||
$edit = &t3lib_div::getUserObj($editClass);
|
||
$edit = t3lib_div::getUserObj($editClass);
|
||
if (is_object($edit)) {
|
||
$content = $edit->editIcons($content, $params, $conf, $currentRecord, $dataArray, $addURLParamStr, $table, $editUid, $fieldList);
|
||
}
|
t3lib/class.t3lib_befunc.php (Arbeitskopie) | ||
---|---|---|
// Hook for post-processing the Flexform DS. Introduces the possibility to configure Flexforms via TSConfig
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
if (method_exists($hookObj, 'getFlexFormDS_postProcessDS')) {
|
||
$hookObj->getFlexFormDS_postProcessDS($dataStructArray, $conf, $row, $table, $fieldName);
|
||
}
|
||
... | ... | |
// Traverse registered RTEs:
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['BE']['RTE_reg'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['BE']['RTE_reg'] as $extKey => $rteObjCfg) {
|
||
$rteObj = &t3lib_div::getUserObj($rteObjCfg['objRef']);
|
||
$rteObj = t3lib_div::getUserObj($rteObjCfg['objRef']);
|
||
if (is_object($rteObj)) {
|
||
if ($rteObj->isAvailable()) {
|
||
$GLOBALS['T3_VAR']['RTEobj'] = &$rteObj;
|
||
$GLOBALS['T3_VAR']['RTEobj'] = $rteObj;
|
||
break;
|
||
} else {
|
||
$GLOBALS['T3_VAR']['RTEobj'] = array_merge($GLOBALS['T3_VAR']['RTEobj'], $rteObj->errorLog);
|
||
... | ... | |
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser'][$spKey] :
|
||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser_GL'][$spKey];
|
||
if ($objRef) {
|
||
$softRefParserObj = &t3lib_div::getUserObj($objRef, '');
|
||
$softRefParserObj = t3lib_div::getUserObj($objRef, '');
|
||
if (is_object($softRefParserObj)) {
|
||
$GLOBALS['T3_VAR']['softRefParser'][$spKey] = &$softRefParserObj;
|
||
$GLOBALS['T3_VAR']['softRefParser'][$spKey] = $softRefParserObj;
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
// Hook for additional warnings
|
||
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
if (method_exists($hookObj, 'displayWarningMessages_postProcess')) {
|
||
$hookObj->displayWarningMessages_postProcess($warnings);
|
||
}
|
t3lib/class.t3lib_matchcondition.php (Arbeitskopie) | ||
---|---|---|
// 'EXT:my_ext/class.browserinfo.php:MyBrowserInfoClass';
|
||
if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['matchConditionClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['matchConditionClass'] as $classRef) {
|
||
$this->hookObjectsArr[] = &t3lib_div::getUserObj($classRef, '');
|
||
$this->hookObjectsArr[] = t3lib_div::getUserObj($classRef, '');
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
// deprecated, see above
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['devices_class'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['devices_class'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
return $_procObj->whichDevice_ext($useragent);
|
||
}
|
||
}
|
t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie) | ||
---|---|---|
* @return void
|
||
*/
|
||
function init(&$tceForms) {
|
||
$this->fObj =& $tceForms;
|
||
$this->fObj = $tceForms;
|
||
$this->backPath =& $tceForms->backPath;
|
||
$this->prependFormFieldNames =& $this->fObj->prependFormFieldNames;
|
||
$this->prependCmdFieldNames =& $this->fObj->prependCmdFieldNames;
|
||
... | ... | |
$tceformsInlineHook =& $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['tceformsInlineHook'];
|
||
if (is_array($tceformsInlineHook)) {
|
||
foreach($tceformsInlineHook as $classData) {
|
||
$processObject = &t3lib_div::getUserObj($classData);
|
||
$processObject = t3lib_div::getUserObj($classData);
|
||
if(!($processObject instanceof t3lib_tceformsInlineHook)) {
|
||
throw new UnexpectedValueException('$processObject must implement interface t3lib_tceformsInlineHook', 1202072000);
|
||
... | ... | |
* (called by typo3/ajax.php)
|
||
*
|
||
* @param array $params: additional parameters (not used here)
|
||
* @param TYPO3AJAX &$ajaxObj: the TYPO3AJAX object of this request
|
||
* @param TYPO3AJAX $ajaxObj: the TYPO3AJAX object of this request
|
||
* @return void
|
||
*/
|
||
public function processAjaxRequest($params, &$ajaxObj) {
|
||
public function processAjaxRequest($params, $ajaxObj) {
|
||
$ajaxArguments = t3lib_div::_GP('ajax');
|
||
$ajaxIdParts = explode('::', $GLOBALS['ajaxID'], 2);
|
||
... | ... | |
$SOBE->doc->backPath = $GLOBALS['BACK_PATH'];
|
||
// Initialize TCEforms (rendering the forms)
|
||
$SOBE->tceforms = t3lib_div::makeInstance('t3lib_TCEforms');
|
||
$SOBE->tceforms->inline =& $this;
|
||
$SOBE->tceforms->inline = $this;
|
||
$SOBE->tceforms->RTEcounter = intval(array_shift($ajaxArguments));
|
||
$SOBE->tceforms->initDefaultBEMode();
|
||
$SOBE->tceforms->palettesCollapsed = !$SOBE->MOD_SETTINGS['showPalettes'];
|
||
... | ... | |
* Update expanded/collapsed states on new inline records if any.
|
||
*
|
||
* @param array $uc: The uc array to be processed and saved (by reference)
|
||
* @param t3lib_TCEmain $tce: Instance of TCEmain that saved data before (by reference)
|
||
* @param t3lib_TCEmain $tce: Instance of TCEmain that saved data before
|
||
* @return void
|
||
*/
|
||
function updateInlineView(&$uc, &$tce) {
|
||
function updateInlineView(&$uc, $tce) {
|
||
if (isset($uc['inlineView']) && is_array($uc['inlineView'])) {
|
||
$inlineView = (array)unserialize($GLOBALS['BE_USER']->uc['inlineView']);
|
||
t3lib/class.t3lib_div.php (Arbeitskopie) | ||
---|---|---|
public static function readLLPHPfile($fileRef, $langKey, $charset='') {
|
||
if (is_object($GLOBALS['LANG'])) {
|
||
$csConvObj = &$GLOBALS['LANG']->csConvObj;
|
||
$csConvObj = $GLOBALS['LANG']->csConvObj;
|
||
} elseif (is_object($GLOBALS['TSFE'])) {
|
||
$csConvObj = &$GLOBALS['TSFE']->csConvObj;
|
||
$csConvObj = $GLOBALS['TSFE']->csConvObj;
|
||
} else {
|
||
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
||
... | ... | |
public static function readLLXMLfile($fileRef, $langKey, $charset='') {
|
||
if (is_object($GLOBALS['LANG'])) {
|
||
$csConvObj = &$GLOBALS['LANG']->csConvObj;
|
||
$csConvObj = $GLOBALS['LANG']->csConvObj;
|
||
} elseif (is_object($GLOBALS['TSFE'])) {
|
||
$csConvObj = &$GLOBALS['TSFE']->csConvObj;
|
||
$csConvObj = $GLOBALS['TSFE']->csConvObj;
|
||
} else {
|
||
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
||
... | ... | |
// Get/Create object of class:
|
||
if ($storePersistentObject) { // Get reference to current instance of class:
|
||
if (!is_object($GLOBALS['T3_VAR']['callUserFunction_classPool'][$parts[0]])) {
|
||
$GLOBALS['T3_VAR']['callUserFunction_classPool'][$parts[0]] = &t3lib_div::makeInstance($parts[0]);
|
||
$GLOBALS['T3_VAR']['callUserFunction_classPool'][$parts[0]] = t3lib_div::makeInstance($parts[0]);
|
||
}
|
||
$classObj = &$GLOBALS['T3_VAR']['callUserFunction_classPool'][$parts[0]];
|
||
$classObj = $GLOBALS['T3_VAR']['callUserFunction_classPool'][$parts[0]];
|
||
} else { // Create new object:
|
||
$classObj = &t3lib_div::makeInstance($parts[0]);
|
||
$classObj = t3lib_div::makeInstance($parts[0]);
|
||
}
|
||
if (method_exists($classObj, $parts[1])) {
|
||
... | ... | |
* @return object The instance of the class asked for. Instance is created with t3lib_div::makeInstance
|
||
* @see callUserFunction()
|
||
*/
|
||
public static function &getUserObj($classRef,$checkPrefix='user_',$silent=0) {
|
||
public static function getUserObj($classRef, $checkPrefix='user_', $silent=false) {
|
||
global $TYPO3_CONF_VARS;
|
||
// Check persistent object and if found, call directly and exit.
|
||
if (is_object($GLOBALS['T3_VAR']['getUserObj'][$classRef])) {
|
||
... | ... | |
// Check if class exists:
|
||
if (class_exists($class)) {
|
||
$classObj = &t3lib_div::makeInstance($class);
|
||
$classObj = t3lib_div::makeInstance($class);
|
||
// If persistent object should be created, set reference:
|
||
if ($storePersistentObject) {
|
||
$GLOBALS['T3_VAR']['getUserObj'][$classRef] = &$classObj;
|
||
$GLOBALS['T3_VAR']['getUserObj'][$classRef] = $classObj;
|
||
}
|
||
return $classObj;
|
||
... | ... | |
* @param string Class name to instantiate
|
||
* @return object A reference to the object
|
||
*/
|
||
public static function &makeInstance($className) {
|
||
public static function makeInstance($className) {
|
||
// holds references of singletons
|
||
static $instances = array();
|
||
... | ... | |
* @return object The service object or an array with error info's.
|
||
* @author Ren? Fritz <r.fritz@colorcube.de>
|
||
*/
|
||
public static function &makeInstanceService($serviceType, $serviceSubType='', $excludeServiceKeys=array()) {
|
||
public static function makeInstanceService($serviceType, $serviceSubType='', $excludeServiceKeys=array()) {
|
||
global $T3_SERVICES, $T3_VAR, $TYPO3_CONF_VARS;
|
||
$error = FALSE;
|
||
... | ... | |
if ($obj->init()) { // service available?
|
||
// create persistent object
|
||
$T3_VAR['makeInstanceService'][$info['className']] = &$obj;
|
||
$T3_VAR['makeInstanceService'][$info['className']] = $obj;
|
||
// needed to delete temp files
|
||
register_shutdown_function(array(&$obj, '__destruct'));
|
t3lib/class.t3lib_userauthgroup.php (Arbeitskopie) | ||
---|---|---|
// Acquire RTE object:
|
||
$RTE = &t3lib_BEfunc::RTEgetObj();
|
||
$RTE = t3lib_BEfunc::RTEgetObj();
|
||
if (!is_object($RTE)) {
|
||
$this->RTE_errors = array_merge($this->RTE_errors, $RTE);
|
||
}
|
||
... | ... | |
// Hook for manipulation of the WHERE sql sentence which controls which BE-groups are included
|
||
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroupQuery'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroupQuery'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
if(method_exists($hookObj,'fetchGroupQuery_processQuery')){
|
||
$whereSQL = $hookObj->fetchGroupQuery_processQuery($this, $grList, $idList, $whereSQL);
|
||
}
|
t3lib/class.t3lib_tcemain.php (Arbeitskopie) | ||
---|---|---|
$hookObjectsArr = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'] as $classRef) {
|
||
$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
|
||
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
... | ... | |
$RTErelPath = is_array($eFile) ? dirname($eFile['relEditFile']) : '';
|
||
// Get RTE object, draw form and set flag:
|
||
$RTEobj = &t3lib_BEfunc::RTEgetObj();
|
||
$RTEobj = t3lib_BEfunc::RTEgetObj();
|
||
if (is_object($RTEobj)) {
|
||
$fieldArray[$vconf['field']] = $RTEobj->transformContent('db',$fieldArray[$vconf['field']],$table,$vconf['field'],$currentRecord,$vconf['spec'],$thisConfig,$RTErelPath,$currentRecord['pid']);
|
||
} else {
|
||
... | ... | |
$thisConfig = t3lib_BEfunc::RTEsetup($RTEsetup['properties'],$CVtable,$recFieldName,$theTypeString);
|
||
// Get RTE object, draw form and set flag:
|
||
$RTEobj = &t3lib_BEfunc::RTEgetObj();
|
||
$RTEobj = t3lib_BEfunc::RTEgetObj();
|
||
if (is_object($RTEobj)) {
|
||
$res['value'] = $RTEobj->transformContent('db',$res['value'],$CVtable,$recFieldName,$this->checkValue_currentRecord,$specConf,$thisConfig,'',$CVrealPid);
|
||
} else {
|
||
... | ... | |
$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);
|
||
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
#debug($this->cmdmap);
|
||
... | ... | |
$hookObjectsArr = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'] as $classRef) {
|
||
$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
|
||
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
... | ... | |
* @param [type] $pObj: ...
|
||
* @return [type] ...
|
||
*/
|
||
function deleteRecord_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, &$pObj) {
|
||
function deleteRecord_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, $pObj) {
|
||
// Use reference index object to find files in fields:
|
||
$refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
|
t3lib/class.t3lib_parsehtml_proc.php (Arbeitskopie) | ||
---|---|---|
if ($direction=='db') {
|
||
// Checking for user defined transformation:
|
||
if ($_classRef = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['transformation'][$cmd]) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj->pObj = &$this;
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$_procObj->pObj = $this;
|
||
$_procObj->transformationKey = $cmd;
|
||
$value = $_procObj->transform_db($value,$this);
|
||
} else { // ... else use defaults:
|
||
... | ... | |
if ($direction=='rte') {
|
||
// Checking for user defined transformation:
|
||
if ($_classRef = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['transformation'][$cmd]) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj->pObj = &$this;
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$_procObj->pObj = $this;
|
||
$value = $_procObj->transform_rte($value,$this);
|
||
} else { // ... else use defaults:
|
||
switch($cmd) {
|
t3lib/class.t3lib_extobjbase.php (Arbeitskopie) | ||
---|---|---|
function init(&$pObj,$conf) {
|
||
global $LANG;
|
||
$this->pObj = &$pObj;
|
||
$this->pObj = $pObj;
|
||
// Path of this script:
|
||
$this->thisPath = dirname($conf['path']);
|
typo3/class.browse_links.php (Arbeitskopie) | ||
---|---|---|
$this->hookObjects = array();
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.browse_links.php']['browseLinksHook'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.browse_links.php']['browseLinksHook'] as $classData) {
|
||
$processObject = &t3lib_div::getUserObj($classData);
|
||
$processObject = t3lib_div::getUserObj($classData);
|
||
if(!($processObject instanceof t3lib_browseLinksHook)) {
|
||
throw new UnexpectedValueException('$processObject must implement interface t3lib_browseLinksHook', 1195039394);
|
typo3/class.db_list.inc (Arbeitskopie) | ||
---|---|---|
$hookObjectsArr = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list.inc']['makeQueryArray'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list.inc']['makeQueryArray'] as $classRef) {
|
||
$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
|
||
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
typo3/class.file_list.inc (Arbeitskopie) | ||
---|---|---|
// Hook for manipulating edit icons.
|
||
if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof fileList_editIconHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface fileList_editIconHook', 1235225797);
|
typo3/alt_topmenu_dummy.php (Arbeitskopie) | ||
---|---|---|
// Hook for adding content to the topmenu. Only works if noMenuMode is not set to "icons" in the users setup!
|
||
if (!$iconMenuMode && is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_topmenu_dummy.php']['fetchContentTopmenu'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_topmenu_dummy.php']['fetchContentTopmenu'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
if (method_exists($hookObj,'fetchContentTopmenu_processContent')) {
|
||
$tempContent = $hookObj->fetchContentTopmenu_processContent($this);
|
||
typo3/classes/class.modulemenu.php (Arbeitskopie) | ||
---|---|---|
* @param TYPO3AJAX object of type TYPO3AJAX
|
||
* @return void
|
||
*/
|
||
public function saveMenuState($params, &$ajaxObj) {
|
||
public function saveMenuState($params, $ajaxObj) {
|
||
$menuItem = t3lib_div::_POST('menuid');
|
||
$state = t3lib_div::_POST('state') === 'true' ? 1 : 0;
|
||
typo3/classes/class.clearcachemenu.php (Arbeitskopie) | ||
---|---|---|
// hook for manipulate cacheActions
|
||
if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions'] as $cacheAction) {
|
||
$hookObject = &t3lib_div::getUserObj($cacheAction);
|
||
$hookObject = t3lib_div::getUserObj($cacheAction);
|
||
if(!($hookObject instanceof backend_cacheActionsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface backend_cacheActionsHook', 1228262000);
|
typo3/wizard_rte.php (Arbeitskopie) | ||
---|---|---|
$tceforms->colorScheme[0]=$this->doc->bgColor; // SPECIAL: Setting background color of the RTE to ordinary background
|
||
// Initialize style for RTE object:
|
||
$RTEobj = &t3lib_BEfunc::RTEgetObj(); // Getting reference to the RTE object used to render the field!
|
||
$RTEobj = t3lib_BEfunc::RTEgetObj(); // Getting reference to the RTE object used to render the field!
|
||
if ($RTEobj->ID == 'rte') {
|
||
$RTEobj->RTEdivStyle = 'position:relative; left:0px; top:0px; height:100%; width:100%; border:solid 0px;'; // SPECIAL: Setting style for the RTE <DIV> layer containing the IFRAME
|
||
}
|
typo3/view_help.php (Arbeitskopie) | ||
---|---|---|
*/
|
||
function substituteGlossaryWords($code) {
|
||
$htmlParser = t3lib_div::makeInstance('local_t3lib_parsehtml');
|
||
$htmlParser->pObj = &$this;
|
||
$htmlParser->pObj = $this;
|
||
$code = $htmlParser->HTMLcleaner($code, array(), 1);
|
||
return $code;
|
typo3/alt_db_navframe.php (Arbeitskopie) | ||
---|---|---|
* Called by typo3/ajax.php
|
||
*
|
||
* @param array $params: additional parameters (not used here)
|
||
* @param TYPO3AJAX &$ajaxObj: reference of the TYPO3AJAX object of this request
|
||
* @param TYPO3AJAX $ajaxObj: The TYPO3AJAX object of this request
|
||
* @return void
|
||
*/
|
||
public function ajaxExpandCollapse($params, &$ajaxObj) {
|
||
public function ajaxExpandCollapse($params, $ajaxObj) {
|
||
global $LANG;
|
||
$this->init();
|
typo3/mod/tools/em/class.em_index.php (Arbeitskopie) | ||
---|---|---|
// Initialize helper object
|
||
$this->terConnection = t3lib_div::makeInstance('SC_mod_tools_em_terconnection');
|
||
$this->terConnection->emObj =& $this;
|
||
$this->terConnection->emObj = $this;
|
||
$this->terConnection->wsdlURL = $TYPO3_CONF_VARS['EXT']['em_wsdlURL'];
|
||
$this->xmlhandler = t3lib_div::makeInstance('SC_mod_tools_em_xmlhandler');
|
||
$this->xmlhandler->emObj =& $this;
|
||
$this->xmlhandler->emObj = $this;
|
||
$this->xmlhandler->useUnchecked = $this->MOD_SETTINGS['display_unchecked'];
|
||
$this->xmlhandler->useObsolete = $this->MOD_SETTINGS['display_obsolete'];
|
||
typo3/alt_file_navframe.php (Arbeitskopie) | ||
---|---|---|
* Called by typo3/ajax.php
|
||
*
|
||
* @param array $params: additional parameters (not used here)
|
||
* @param TYPO3AJAX &$ajaxObj: reference of the TYPO3AJAX object of this request
|
||
* @param TYPO3AJAX $ajaxObj: The TYPO3AJAX object of this request
|
||
* @return void
|
||
*/
|
||
public function ajaxExpandCollapse($params, &$ajaxObj) {
|
||
public function ajaxExpandCollapse($params, $ajaxObj) {
|
||
global $LANG;
|
||
$this->init();
|
typo3/class.db_list_extra.inc (Arbeitskopie) | ||
---|---|---|
*/
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof t3lib_localRecordListGetTableHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface t3lib_localRecordListGetTableHook', 1195114460);
|
||
... | ... | |
*/
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof localRecordList_actionsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface localRecordList_actionsHook', 1195567850);
|
||
}
|
||
... | ... | |
*/
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof localRecordList_actionsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface localRecordList_actionsHook', 1195567855);
|
||
}
|
||
... | ... | |
*/
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof localRecordList_actionsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface localRecordList_actionsHook', 1195567840);
|
||
}
|
||
... | ... | |
*/
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof localRecordList_actionsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface localRecordList_actionsHook', 1195567845);
|
||
}
|
typo3/sysext/sv/class.tx_sv_authbase.php (Arbeitskopie) | ||
---|---|---|
* @param object Parent object
|
||
* @return void
|
||
*/
|
||
function initAuth($mode, $loginData, $authInfo, &$pObj) {
|
||
function initAuth($mode, $loginData, $authInfo, $pObj) {
|
||
$this->pObj = &$pObj;
|
||
$this->pObj = $pObj;
|
||
$this->mode = $mode; // sub type
|
||
$this->login = $loginData;
|
typo3/sysext/lowlevel/class.tx_lowlevel_cleaner_core.php (Arbeitskopie) | ||
---|---|---|
switch((string)$analysisType) {
|
||
default:
|
||
if (is_array($this->cleanerModules[$analysisType])) {
|
||
$cleanerMode = &t3lib_div::getUserObj($this->cleanerModules[$analysisType][0]);
|
||
$cleanerMode = t3lib_div::getUserObj($this->cleanerModules[$analysisType][0]);
|
||
$cleanerMode->cli_validateArgs();
|
||
if ($this->cli_isArg('-r')) { // Run it...
|
typo3/sysext/lowlevel/clmods/class.rte_images.php (Arbeitskopie) | ||
---|---|---|
// Now, ask for RTEmagic files inside uploads/ folder:
|
||
$cleanerModules = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules'];
|
||
$cleanerMode = &t3lib_div::getUserObj($cleanerModules['lost_files'][0]);
|
||
$cleanerMode = t3lib_div::getUserObj($cleanerModules['lost_files'][0]);
|
||
$resLostFiles = $cleanerMode->main(array(),FALSE,TRUE);
|
||
if (is_array($resLostFiles['RTEmagicFiles'])) {
|
||
foreach($resLostFiles['RTEmagicFiles'] as $fileName) {
|
||
... | ... | |
if ($rteOrigName && t3lib_div::isFirstPartOfStr($dirPrefix,'uploads/') && @is_dir(PATH_site.$dirPrefix)) { // RTE:
|
||
// From the "original" RTE filename, produce a new "original" destination filename which is unused.
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
$origDestName = $fileProcObj->getUniqueName($rteOrigName, PATH_site.$dirPrefix);
|
||
// Create copy file name:
|
||
... | ... | |
*
|
||
* @return object File processor object
|
||
*/
|
||
function &getFileProcObj() {
|
||
function getFileProcObj() {
|
||
if (!is_object($this->fileProcObj)) {
|
||
$this->fileProcObj = t3lib_div::makeInstance('t3lib_extFileFunctions');
|
||
$this->fileProcObj->init($GLOBALS['FILEMOUNTS'], $GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']);
|
typo3/sysext/cms/layout/class.tx_cms_layout.php (Arbeitskopie) | ||
---|---|---|
if (is_array($drawItemHooks)) {
|
||
foreach($drawItemHooks as $hookClass) {
|
||
$hookObject = &t3lib_div::getUserObj($hookClass);
|
||
$hookObject = t3lib_div::getUserObj($hookClass);
|
||
if(!($hookObject instanceof tx_cms_layout_tt_content_drawItemHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface tx_cms_layout_tt_content_drawItemHook', 1218547409);
|
typo3/sysext/cms/layout/db_new_content_el.php (Arbeitskopie) | ||
---|---|---|
// Hook for manipulating wizardItems, wrapper, onClickEvent etc.
|
||
if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'])) {
|
||
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof cms_newContentElementWizardsHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface cms_newContentElementWizardItemsHook', 1227834741);
|
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc (Arbeitskopie) | ||
---|---|---|
function userProcess($mConfKey,$passVar) {
|
||
if ($this->conf[$mConfKey]) {
|
||
$funcConf = $this->conf[$mConfKey.'.'];
|
||
$funcConf['parentObj']=&$this;
|
||
$funcConf['parentObj'] = $this;
|
||
$passVar = $GLOBALS['TSFE']->cObj->callUserFunction($this->conf[$mConfKey], $funcConf, $passVar);
|
||
}
|
||
return $passVar;
|
||
... | ... | |
function userProcess_alt($confVal,$confArr,$passVar) {
|
||
if ($confVal) {
|
||
$funcConf = $confArr;
|
||
$funcConf['parentObj']=&$this;
|
||
$funcConf['parentObj'] = $this;
|
||
$passVar = $GLOBALS['TSFE']->cObj->callUserFunction($confVal, $funcConf, $passVar);
|
||
}
|
||
return $passVar;
|
typo3/sysext/cms/tslib/media/scripts/plaintextLib.inc (Arbeitskopie) | ||
---|---|---|
function userProcess($mConfKey,$passVar) {
|
||
if ($this->conf[$mConfKey]) {
|
||
$funcConf = $this->conf[$mConfKey.'.'];
|
||
$funcConf['parentObj']=&$this;
|
||
$funcConf['parentObj'] = $this;
|
||
$passVar = $GLOBALS['TSFE']->cObj->callUserFunction($this->conf[$mConfKey], $funcConf, $passVar);
|
||
}
|
||
return $passVar;
|
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie) | ||
---|---|---|
// Hook for processing data submission to extensions:
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkDataSubmission'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkDataSubmission'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$_procObj->checkDataSubmission($this);
|
||
}
|
||
}
|
||
... | ... | |
// Hook for preprocessing of the content for formmails:
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sendFormmail-PreProcClass'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sendFormmail-PreProcClass'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$EMAIL_VARS = $_procObj->sendFormmail_preProcessVariables($EMAIL_VARS,$this);
|
||
}
|
||
}
|
||
... | ... | |
// Hook for cache post processing (eg. writing static files!)
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['insertPageIncache'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['insertPageIncache'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$_procObj->insertPageIncache($this,$timeOutTime);
|
||
}
|
||
}
|
||
... | ... | |
// Hook for indexing pages
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$_procObj->hook_indexContent($this);
|
||
}
|
||
}
|
||
... | ... | |
// Hook for preprocessing the list of fields to insert into sys_stat:
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sys_stat-PreProcClass'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sys_stat-PreProcClass'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj = t3lib_div::getUserObj($_classRef);
|
||
$insertFields = $_procObj->sysstat_preProcessFields($insertFields,$this);
|
||
}
|
||
}
|
typo3/sysext/cms/tslib/hooks/class.tx_cms_mediaitems.php (Arbeitskopie) | ||
---|---|---|
public function customMediaRenderTypes(&$params, $conf) {
|
||
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRenderTypes'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRenderTypes'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
$hookObj->customMediaRenderTypes($params, $conf);
|
||
}
|
||
}
|
||
... | ... | |
|
||
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaParams'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaParams'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
$hookObj->customMediaParams($params, $conf);
|
||
}
|
||
}
|
typo3/sysext/cms/tslib/class.tslib_menu.php (Arbeitskopie) | ||
---|---|---|
// Sets the internal vars. $tmpl MUST be the template-object. $sys_page MUST be the sys_page object
|
||
if ($this->conf[$this->menuNumber.$objSuffix] && is_object($tmpl) && is_object($sys_page)) {
|
||
$this->tmpl = &$tmpl;
|
||
$this->sys_page = &$sys_page;
|
||
$this->tmpl = $tmpl;
|
||
$this->sys_page = $sys_page;
|
||
// alwaysActivePIDlist initialized:
|
||
if (trim($this->conf['alwaysActivePIDlist']) || isset($this->conf['alwaysActivePIDlist.'])) {
|
||
... | ... | |
}
|
||
// especially scripts that build the submenu needs the parent data
|
||
$submenu->parent_cObj = &$this->parent_cObj;
|
||
$submenu->parent_cObj = $this->parent_cObj;
|
||
$submenu->parentMenuArr = $this->menuArr;
|
||
// Setting alternativeMenuTempArray (will be effective only if an array)
|
||
... | ... | |
function userProcess($mConfKey,$passVar) {
|
||
if ($this->mconf[$mConfKey]) {
|
||
$funcConf = $this->mconf[$mConfKey.'.'];
|
||
$funcConf['parentObj']=&$this;
|
||
$funcConf['parentObj'] = $this;
|
||
$passVar = $GLOBALS['TSFE']->cObj->callUserFunction($this->mconf[$mConfKey], $funcConf, $passVar);
|
||
}
|
||
return $passVar;
|
typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie) | ||
---|---|---|
$this->parameters = Array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'] as $classArr) {
|
||
$this->cObjHookObjectsArr[$classArr[0]] = &t3lib_div::getUserObj($classArr[1]);
|
||
$this->cObjHookObjectsArr[$classArr[0]] = t3lib_div::getUserObj($classArr[1]);
|
||
}
|
||
}
|
||
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['stdWrap'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['stdWrap'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof tslib_content_stdWrapHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface tslib_content_stdWrapHook', 1195043965);
|
||
... | ... | |
// call hook functions for extra processing
|
||
if($name && is_array($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClassDefault'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClassDefault'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof tslib_content_cObjGetSingleHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface tslib_content_cObjGetSingleHook', 1195043731);
|
||
... | ... | |
default:
|
||
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRender'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRender'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
$hookObj = t3lib_div::getUserObj($classRef);
|
||
$conf['file'] = $url;
|
||
$conf['mode'] = $mode;
|
||
$content = $hookObj->customMediaRender($renderType, $conf);
|
||
... | ... | |
$out = '';
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['extLinkATagParamsHandler']) {
|
||
$extLinkATagParamsHandler = &t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['extLinkATagParamsHandler']);
|
||
$extLinkATagParamsHandler = t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['extLinkATagParamsHandler']);
|
||
if(method_exists($extLinkATagParamsHandler, 'main')) {
|
||
$out.= trim($extLinkATagParamsHandler->main($URL, $TYPE, $this));
|
||
... | ... | |
if(is_array($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['getData'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['getData'] as $classData) {
|
||
$hookObject = &t3lib_div::getUserObj($classData);
|
||
$hookObject = t3lib_div::getUserObj($classData);
|
||
if(!($hookObject instanceof tslib_content_getDataHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface tslib_content_getDataHook', 1195044480);
|
||
... | ... | |
// Check for link-handler keyword:
|
||
list($linkHandlerKeyword,$linkHandlerValue) = explode(':',trim($link_paramA[0]),2);
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword] && strcmp($linkHandlerValue, '')) {
|
||
$linkHandlerObj = &t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword]);
|
||
$linkHandlerObj = t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword]);
|
||
if(method_exists($linkHandlerObj, 'main')) {
|
||
return $linkHandlerObj->main($linktxt, $conf, $linkHandlerKeyword, $linkHandlerValue, $link_param, $this);
|
||
... | ... | |
if ($this->isClassAvailable($parts[0], $conf)) {
|
||
$classObj = t3lib_div::makeInstance($parts[0]);
|
||
if (is_object($classObj) && method_exists($classObj, $parts[1])) {
|
||
$classObj->cObj = &$this;
|
||
$classObj->cObj = $this;
|
||
$content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));
|
||
} else {
|
||
$GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '" did not exist in class "' . $parts[0] . '"', 3);
|
typo3/sysext/dbal/handlers/class.tx_dbal_handler_openoffice.php (Arbeitskopie) | ||
---|---|---|
* @param object Parent object
|
||
* @return boolean True on success.
|
||
*/
|
||
function init($config, &$pObj) {
|
||
function init($config, $pObj) {
|
||
$this->config = $config['config'];
|
||
if (t3lib_extMgm::isLoaded('libunzipped')) {
|
typo3/sysext/dbal/handlers/class.tx_dbal_handler_rawmysql.php (Arbeitskopie) | ||
---|---|---|
*/
|
||
function init($config,&$pObj) {
|
||
$this->config = $config['config'];
|
||
$this->pObj = &$pObj;
|
||
$this->pObj = $pObj;
|
||
$this->link = mysql_pconnect(
|
||
$this->config['host'],
|
||
$this->config['username'],
|
typo3/sysext/dbal/handlers/class.tx_dbal_handler_xmldb.php (Arbeitskopie) | ||
---|---|---|
* @param object Parent object
|
||
* @return void
|
||
*/
|
||
function init($config, &$pObj) {
|
||
function init($config, $pObj) {
|
||
$this->config = $config['config'];
|
||
$dbStorage = t3lib_div::getFileAbsFileName($this->config['DBstorageDir']);
|
typo3/sysext/impexp/class.tx_impexp.php (Arbeitskopie) | ||
---|---|---|
# debug($currentValueArray['data'],'BE');
|
||
// Do recursive processing of the XML data:
|
||
$iteratorObj = t3lib_div::makeInstance('t3lib_TCEmain');
|
||
$iteratorObj->callBackObj = &$this;
|
||
$iteratorObj->callBackObj = $this;
|
||
$currentValueArray['data'] = $iteratorObj->checkValue_flex_procInData(
|
||
$currentValueArray['data'],
|
||
array(), // Not used.
|
||
... | ... | |
// Do recursive processing of the XML data:
|
||
$iteratorObj = t3lib_div::makeInstance('t3lib_TCEmain');
|
||
$iteratorObj->callBackObj = &$this;
|
||
$iteratorObj->callBackObj = $this;
|
||
$currentValueArray['data'] = $iteratorObj->checkValue_flex_procInData(
|
||
$currentValueArray['data'],
|
||
array(), // Not used.
|
||
... | ... | |
if (@is_dir(PATH_site.$dirPrefix)) {
|
||
// From the "original" RTE filename, produce a new "original" destination filename which is unused. Even if updated, the image should be unique. Currently the problem with this is that it leaves a lot of unused RTE images...
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
$origDestName = $fileProcObj->getUniqueName($rteOrigName, PATH_site.$dirPrefix);
|
||
// Create copy file name:
|
||
... | ... | |
$newName = PATH_site.$dirPrefix.$fileName;
|
||
} else {
|
||
// Create unique filename:
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
$newName = $fileProcObj->getUniqueName($fileName, PATH_site.$dirPrefix);
|
||
}
|
||
#debug($newName,'$newName');
|
||
... | ... | |
$tokenizedContent = $this->dat['files'][$fileID]['tokenizedContent'];
|
||
$tokenSubstituted = FALSE;
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
if ($updMode) {
|
||
foreach($fileHeaderInfo['EXT_RES_ID'] as $res_fileID) {
|
||
... | ... | |
* @return boolean Returns true if it went well. Notice that the content of the file is read again, and md5 from import memory is validated.
|
||
*/
|
||
function writeFileVerify($fileName, $fileID, $bypassMountCheck=FALSE) {
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
if ($fileProcObj->actionPerms['newFile']) {
|
||
if ($fileProcObj->checkPathAgainstMounts($fileName) || $bypassMountCheck) { // Just for security, check again. Should actually not be necessary.
|
||
... | ... | |
* @return string If a path is available that will be returned, otherwise false.
|
||
*/
|
||
function verifyFolderAccess($dirPrefix, $noAlternative=FALSE) {
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
#$fileProcObj->mounts['1f390e42e1dc46f125310ead30c7bd9d']['path'] = '/var/www/typo3/dev/testsite-3.6.0/fileadmin/user_upload/';
|
||
... | ... | |
}
|
||
// Check extension:
|
||
$fileProcObj = &$this->getFileProcObj();
|
||
$fileProcObj = $this->getFileProcObj();
|
||
if ($fileProcObj->actionPerms['newFile']) {
|
||
$testFI = t3lib_div::split_fileref(PATH_site.$fI['relFileName']);
|
||
if (!$this->allowPHPScripts && !$fileProcObj->checkIfAllowed($testFI['fileext'], $testFI['path'], $testFI['file'])) {
|
||
... | ... | |
*
|
||
* @return object File processor object
|
||
*/
|
||
function &getFileProcObj() {
|
||
function getFileProcObj() {
|
||
if (!is_object($this->fileProcObj)) {
|
||
$this->fileProcObj = t3lib_div::makeInstance('t3lib_extFileFunctions');
|
||
$this->fileProcObj->init($GLOBALS['FILEMOUNTS'], $GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']);
|
typo3/sysext/indexed_search/class.indexer.php (Arbeitskopie) | ||
---|---|---|
$lexerObjRef = $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['lexer'] ?
|
||
$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['lexer'] :
|
||
'EXT:indexed_search/class.lexer.php:&tx_indexedsearch_lexer';
|
||
$this->lexerObj = &t3lib_div::getUserObj($lexerObjRef);
|
||
$this->lexerObj = t3lib_div::getUserObj($lexerObjRef);
|
||
$this->lexerObj->debug = $this->indexerConfig['debugMode'];
|
||
// Initialize metaphone hook:
|
||
// Example configuration (localconf.php) for this hook: $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone'] = 'EXT:indexed_search/class.doublemetaphone.php:&user_DoubleMetaPhone';
|
||
if ($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone']) {
|
||
$this->metaphoneObj = &t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone']);
|
||
$this->metaphoneObj->pObj = &$this;
|
||
$this->metaphoneObj = t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone']);
|
||
$this->metaphoneObj->pObj = $this;
|
||
}
|
||
// Init charset class:
|
||
$this->csObj = &t3lib_div::makeInstance('t3lib_cs');
|
||
$this->csObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
||
/**
|
||
... | ... | |
if (is_array($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'])) {
|
||
foreach($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] as $extension => $_objRef) {
|
||
$this->external_parsers[$extension] = &t3lib_div::getUserObj($_objRef);
|
||
$this->external_parsers[$extension]->pObj = &$this;
|
||
$this->external_parsers[$extension] = t3lib_div::getUserObj($_objRef);
|
||
$this->external_parsers[$extension]->pObj = $this;
|
||
// Init parser and if it returns false, unset its entry again:
|
||
if (!$this->external_parsers[$extension]->initParser($extension)) {
|
typo3/sysext/indexed_search/class.crawler.php (Arbeitskopie) | ||
---|---|---|
break;
|
||
default:
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]) {
|
||
$hookObj = &t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]);
|
||
$hookObj = t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]);
|
||
if (is_object($hookObj)) {
|
||
... | ... | |
break;
|
||
default:
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]) {
|
||
$hookObj = &t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]);
|
||
$hookObj = t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]);
|
||
if (is_object($hookObj)) {
|
||
$this->pObj = &$pObj; // For addQueueEntryForHook()
|
||
$this->pObj = $pObj; // For addQueueEntryForHook()
|
||
$hookObj->indexOperation($cfgRec,$session_data,$params,$this);
|
||
}
|
||
}
|
||
... | ... | |
$this->loadIndexerClass();
|
||
// (Re)-Indexing file on page.
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($cfgRec['pid'], 0, 0, '', $rl);
|
||
$indexerObj->backend_setFreeIndexUid($cfgRec['uid'], $cfgRec['set_id']);
|
||
$indexerObj->hash['phash'] = -1; // EXPERIMENT - but to avoid phash_t3 being written to file sections (otherwise they are removed when page is reindexed!!!)
|
||
... | ... | |
$this->loadIndexerClass();
|
||
// Index external URL:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($pageId, 0, 0, '', $rl);
|
||
$indexerObj->backend_setFreeIndexUid($cfgUid, $setId);
|
||
$indexerObj->hash['phash'] = -1; // To avoid phash_t3 being written to file sections (otherwise they are removed when page is reindexed!!!)
|
||
... | ... | |
$sys_language_uid = $languageField ? $r[$languageField] : 0;
|
||
// (Re)-Indexing a row from a table:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
parse_str(str_replace('###UID###',$r['uid'],$cfgRec['get_params']),$GETparams);
|
||
$indexerObj->backend_initIndexer($cfgRec['pid'], 0, $sys_language_uid, '', $rl, $GETparams, $cfgRec['chashcalc'] ? TRUE : FALSE);
|
||
$indexerObj->backend_setFreeIndexUid($cfgRec['uid'], $cfgRec['set_id']);
|
||
... | ... | |
* @param object Reference to tcemain calling object
|
||
* @return void
|
||
*/
|
||
function processCmdmap_preProcess($command, $table, $id, $value, &$pObj) {
|
||
function processCmdmap_preProcess($command, $table, $id, $value, $pObj) {
|
||
// Clean up the index
|
||
if ($command=='delete' && $table == 'pages') {
|
||
... | ... | |
* @param object Reference to tcemain calling object
|
||
* @return void
|
||
*/
|
||
function processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, &$pObj) {
|
||
function processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, $pObj) {
|
||
// Check if any fields are actually updated:
|
||
if (count($fieldArray)) {
|
||
... | ... | |
if (is_array($params['conf'])) {
|
||
// Initialize the indexer class:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->conf = $params['conf'];
|
||
$indexerObj->init();
|
||
typo3/sysext/indexed_search/example/class.crawlerhook.php (Arbeitskopie) | ||
---|---|---|
parse_str('&itemID='.rawurlencode($item['ID']), $GETparams);
|
||
// Prepare indexer (make instance, initialize it, set special features for indexing parameterized content - probably none of this should be changed by you) [DON'T CHANGE]:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($cfgRec['pid'], 0, $sys_language_uid, '', $rl, $GETparams, FALSE);
|
||
$indexerObj->backend_setFreeIndexUid($cfgRec['uid'], $cfgRec['set_id']);
|
||
$indexerObj->forceIndexing = TRUE;
|
||
... | ... | |
$sys_language_uid = 0;
|
||
// Prepare indexer (make instance, initialize it, set special features for indexing parameterized content - probably none of this should be changed by you) [DON'T CHANGE]:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($cfgRec['pid'], 0, $sys_language_uid, '', $rl);
|
||
$indexerObj->backend_setFreeIndexUid($cfgRec['uid'], $cfgRec['set_id']);
|
||
$indexerObj->hash['phash'] = -1; // To avoid phash_t3 being written to file sections (otherwise they are removed when page is reindexed!!!)
|
||
... | ... | |
$pObj->loadIndexerClass();
|
||
// Index external URL:
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($cfgRec['pid'], 0, $sys_language_uid, '', $rl);
|
||
$indexerObj->backend_setFreeIndexUid($cfgRec['uid'], $cfgRec['set_id']);
|
||
$indexerObj->hash['phash'] = -1; // To avoid phash_t3 being written to file sections (otherwise they are removed when page is reindexed!!!)
|
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (Arbeitskopie) | ||
---|---|---|
// Initialize external document parsers for icon display and other soft operations
|
||
if (is_array($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'])) {
|
||
foreach ($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] as $extension => $_objRef) {
|
||
$this->external_parsers[$extension] = &t3lib_div::getUserObj($_objRef);
|
||
$this->external_parsers[$extension] = t3lib_div::getUserObj($_objRef);
|
||
// Init parser and if it returns false, unset its entry again:
|
||
if (!$this->external_parsers[$extension]->softInit($extension)) {
|
||
... | ... | |
$lexerObjRef = $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['lexer'] ?
|
||
$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['lexer'] :
|
||
'EXT:indexed_search/class.lexer.php:&tx_indexedsearch_lexer';
|
||
$this->lexerObj = &t3lib_div::getUserObj($lexerObjRef);
|
||
$this->lexerObj = t3lib_div::getUserObj($lexerObjRef);
|
||
// If "_sections" is set, this value overrides any existing value.
|
||
if ($this->piVars['_sections']) $this->piVars['sections'] = $this->piVars['_sections'];
|
||
... | ... | |
}
|
||
// Calling hook for modification of initialized content
|
||
if ($hookObj = &$this->hookRequest('initialize_postProc')) {
|
||
if ($hookObj = $this->hookRequest('initialize_postProc')) {
|
||
$hookObj->initialize_postProc();
|
||
}
|
||
... | ... | |
$inSW = $GLOBALS['TSFE']->csConvObj->utf8_encode($inSW, $GLOBALS['TSFE']->metaCharset);
|
||
$inSW = $GLOBALS['TSFE']->csConvObj->entities_to_utf8($inSW,TRUE);
|
||
if ($hookObj = &$this->hookRequest('getSearchWords')) {
|
||
if ($hookObj = $this->hookRequest('getSearchWords')) {
|
||
return $hookObj->getSearchWords_splitSWords($inSW, $defOp);
|
||
} else {
|
||
... | ... | |
foreach ($indexCfgs as $freeIndexUid) {
|
||
// Get result rows:
|
||
$pt1 = t3lib_div::milliseconds();
|
||
if ($hookObj = &$this->hookRequest('getResultRows')) {
|
||
if ($hookObj = $this->hookRequest('getResultRows')) {
|
||
$resData = $hookObj->getResultRows($sWArr,$freeIndexUid);
|
||
} else {
|
||
$resData = $this->getResultRows($sWArr,$freeIndexUid);
|
||
... | ... | |
// Display search results:
|
||
$pt2 = t3lib_div::milliseconds();
|
||
if ($hookObj = &$this->hookRequest('getDisplayResults')) {
|
||
if ($hookObj = $this->hookRequest('getDisplayResults')) {
|
||
$content = $hookObj->getDisplayResults($sWArr, $resData, $freeIndexUid);
|
||
} else {
|
||
$content = $this->getDisplayResults($sWArr, $resData, $freeIndexUid);
|
||
... | ... | |
$freeIndexUidClause = $this->freeIndexUidWhere($freeIndexUid);
|
||
// Calling hook for alternative creation of page ID list
|
||
if ($hookObj = &$this->hookRequest('execFinalQuery_idList')) {
|
||
if ($hookObj = $this->hookRequest('execFinalQuery_idList')) {
|
||
$page_where = $hookObj->execFinalQuery_idList($list);
|
||
} elseif ($this->join_pages) { // Alternative to getting all page ids by ->getTreeList() where "excludeSubpages" is NOT respected.
|
||
$page_join = ',
|
||
... | ... | |
// Get template content:
|
||
$tmplContent = $this->prepareResultRowTemplateData($row, $headerOnly);
|
||
if ($hookObj = &$this->hookRequest('printResultRow')) {
|
||
if ($hookObj = $this->hookRequest('printResultRow')) {
|
||
return $hookObj->printResultRow($row, $headerOnly, $tmplContent);
|
||
} else {
|
||
... | ... | |
$tmplContent['CSSsuffix'] = $CSSsuffix;
|
||
// Post processing with hook.
|
||
if ($hookObj = &$this->hookRequest('prepareResultRowTemplateData_postProc')) {
|
||
if ($hookObj = $this->hookRequest('prepareResultRowTemplateData_postProc')) {
|
||
$tmplContent = $hookObj->prepareResultRowTemplateData_postProc($tmplContent, $row, $headerOnly);
|
||
}
|
||
... | ... | |
* @param string Name of the function you want to call / hook key
|
||
* @return object Hook object, if any. Otherwise null.
|
||
*/
|
||
function &hookRequest($functionName) {
|
||
function hookRequest($functionName) {
|
||
global $TYPO3_CONF_VARS;
|
||
// Hook: menuConfig_preProcessModMenu
|
||
if ($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]) {
|
||
$hookObj = &t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]);
|
||
$hookObj = t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]);
|
||
if (method_exists ($hookObj, $functionName)) {
|
||
$hookObj->pObj = &$this;
|
||
$hookObj->pObj = $this;
|
||
return $hookObj;
|
||
}
|
||
}
|
typo3/sysext/indexed_search/class.lexer.php (Arbeitskopie) | ||
---|---|---|
* @return void
|
||
*/
|
||
function tx_indexedsearch_lexer() {
|
||
$this->csObj = &t3lib_div::makeInstance('t3lib_cs');
|
||
$this->csObj = t3lib_div::makeInstance('t3lib_cs');
|
||
}
|
||
/**
|
typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php (Arbeitskopie) | ||
---|---|---|
// Example configuration, see ext_localconf.php of this file!
|
||
if (is_array($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'])) {
|
||
foreach($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] as $extension => $_objRef) {
|
||
$this->external_parsers[$extension] = &t3lib_div::getUserObj($_objRef);
|
||
$this->external_parsers[$extension] = t3lib_div::getUserObj($_objRef);
|
||
// Init parser and if it returns false, unset its entry again:
|
||
if (!$this->external_parsers[$extension]->softInit($extension)) {
|
||
... | ... | |
}
|
||
// Initialize indexer if we need it (metaphone display does...)
|
||
$this->indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$this->indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
// Set CSS styles specific for this document:
|
||
$this->pObj->content = str_replace('/*###POSTCSSMARKER###*/','
|
||
... | ... | |
if ($resultRow['item_type'] && $resultRow['item_type']!=='0') {
|
||
// (Re)-Indexing file on page.
|
||
$indexerObj = &t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj = t3lib_div::makeInstance('tx_indexedsearch_indexer');
|
||
$indexerObj->backend_initIndexer($pageId, 0, 0, '', $this->getUidRootLineForClosestTemplate($pageId));
|
||
// URL or local file:
|
typo3/sysext/indexed_search/modfunc2/class.tx_indexedsearch_modfunc2.php (Arbeitskopie) | ||
---|---|---|
.$this->note;
|
||
// Ask hook to include more on the page:
|
||
if ($hookObj = &$this->hookRequest('additionalSearchStat')) {
|
||
if ($hookObj = $this->hookRequest('additionalSearchStat')) {
|
||
$content.= $hookObj->additionalSearchStat();
|
||
}
|
||
... | ... | |
* @return object Hook object, if any. Otherwise null.
|
||
* @author Kasper Skaarhoj
|
||
*/
|
||
function &hookRequest($functionName) {
|
||
function hookRequest($functionName) {
|
||
global $TYPO3_CONF_VARS;
|
||
// Hook: menuConfig_preProcessModMenu
|
||
if ($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['be_hooks'][$functionName]) {
|
||
$hookObj = &t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['be_hooks'][$functionName]);
|
||
$hookObj = t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['indexed_search']['be_hooks'][$functionName]);
|
||
if (method_exists ($hookObj, $functionName)) {
|
||
$hookObj->pObj = &$this;
|
||
$hookObj->pObj = $this;
|
||
return $hookObj;
|
||
}
|
||
}
|
typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie) | ||
---|---|---|
foreach ($this->INSTALL['update']['extList'] as $identifier) {
|
||
$className = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][$identifier];
|
||
$tmpObj = &$this->getUpgradeObjInstance($className, $identifier);
|
||
$tmpObj = $this->getUpgradeObjInstance($className, $identifier);
|
||
$content = '<p class="innerWidth"><strong>'.$identifier.'</strong></p>';
|
||
// check user input if testing method is available
|
||
... | ... | |
* @return object newly instanciated upgrade object
|
||
*/
|
||
function getUpgradeObjInstance($className, $identifier) {
|
||
$tmpObj = &t3lib_div::getUserObj($className);
|
||
$tmpObj = t3lib_div::getUserObj($className);
|
||
$tmpObj->versionNumber = t3lib_div::int_from_ver(TYPO3_version);
|
||
$tmpObj->pObj = $this;
|
||
$tmpObj->userInput = $this->INSTALL['update'][$identifier];
|
typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php (Arbeitskopie) | ||
---|---|---|
function render_bullets($content,$conf) {
|
||
// Look for hook before running default code for function
|
||
if ($hookObj = &$this->hookRequest('render_bullets')) {
|
||
if ($hookObj = $this->hookRequest('render_bullets')) {
|
||
return $hookObj->render_bullets($content,$conf);
|
||
} else {
|
||
... | ... | |
function render_table($content,$conf) {
|