[TYPO3-dev] Hook in indexed search - imo nonsense

Tapio Markula tapio.markula at xetpoint.fi
Wed Aug 22 09:30:10 CEST 2007


Hi

Indexed search has this kind of hook

function initialize()	{
...

             // Calling hook for modification of initialized content
         if ($hookObj = &$this->hookRequest('initialize_postProc'))    {
             $hookObj->initialize_postProc();
         }


Well I would like to manipulate $this->conf putting this kind of code


// If "_sections" is set, this value overrides any existing value.
		if ($this->piVars['_sections'])		$this->piVars['sections'] = 
$this->piVars['_sections'];
		elseif($this->conf['sections'])		{
			$this->piVars['_sections'] = $this->conf['sections'];
			$this->piVars['sections'] =$this->conf['sections'];
		}

Note the elseif statement. But imo the hook doesn't work.
the function doesn't take any parameter -
It should be like this
$hookObj->initialize_postProc(&$this);

How I otherwise could reset any set values of '$this'???
Imo the hook is quite nonsense, if it can't reset $this variable.
That is the most important issue, where the hook would be needed.




More information about the TYPO3-dev mailing list