[TYPO3] pbsurvey - hook

Henjo Hoeksma hphoeksma at stylence.nl
Wed Aug 6 11:19:21 CEST 2008


Hi list,

I'm trying to use the hook in pbsurvey. I keep ending up with errors like:

Call to a member function hookItemProcessor() on a non-object

and

Cannot re-assign $this

Object oriented thinking obviously isn't my strongest point ;-)

My code so far:
<code>
class tx_kopbsurveyext {
	
	function hookItemProcessor($arrItem,$this) {
		$content = "test";
		return $content;
	}

}
</code>
Or wtihout $this for the first error...

Thanks in advance for your response. I have really trouble 
understanding hooks :-(

-- 
Met vriendelijke groet, kinds regards,

Henjo Hoeksma
Stylence | 2b launched soon!
www.stylence.nl



More information about the TYPO3-english mailing list