[TYPO3] Building a hook

tapio tapio.markula at dnainternet.net
Fri Mar 10 17:04:19 CET 2006

> Look at the hooks in t3lib_tcemain ... they always do something like:
> $_procObj->postProcessData(...)

the first is just

$hookObjectsArr = array();
		if (is_array 
as $classRef) {
				$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);

If I put with exactly the similar syntax:
											$_procObj = array();
($TYPO3_CONF_VARS['EXTCONF']['tm_contentaccess']['hasAccess'] as 
$hasAccessControl) {
													 $_procObj[] = &t3lib_div::getUserObj($hasAccessControl);

could a hook return a boolean value for a variable

The difference for the previous version is $_procObj[] instead of $_procObj

More information about the TYPO3-english mailing list