| @@ 1271-1282 (lines=12) @@ | ||
| 1268 | * @param string $functionName Name of the function you want to call / hook key |
|
| 1269 | * @return object|null Hook object, if any. Otherwise NULL. |
|
| 1270 | */ |
|
| 1271 | public function hookRequest($functionName) |
|
| 1272 | { |
|
| 1273 | // Hook: menuConfig_preProcessModMenu |
|
| 1274 | if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]) { |
|
| 1275 | $hookObj = GeneralUtility::makeInstance($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]); |
|
| 1276 | if (method_exists($hookObj, $functionName)) { |
|
| 1277 | $hookObj->pObj = $this; |
|
| 1278 | return $hookObj; |
|
| 1279 | } |
|
| 1280 | } |
|
| 1281 | return null; |
|
| 1282 | } |
|
| 1283 | ||
| 1284 | /** |
|
| 1285 | * Search type |
|
| @@ 1497-1508 (lines=12) @@ | ||
| 1494 | * @param string $functionName Name of the function you want to call / hook key |
|
| 1495 | * @return object|null Hook object, if any. Otherwise NULL. |
|
| 1496 | */ |
|
| 1497 | protected function hookRequest($functionName) |
|
| 1498 | { |
|
| 1499 | // Hook: menuConfig_preProcessModMenu |
|
| 1500 | if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]) { |
|
| 1501 | $hookObj = GeneralUtility::makeInstance($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks'][$functionName]); |
|
| 1502 | if (method_exists($hookObj, $functionName)) { |
|
| 1503 | $hookObj->pObj = $this; |
|
| 1504 | return $hookObj; |
|
| 1505 | } |
|
| 1506 | } |
|
| 1507 | return null; |
|
| 1508 | } |
|
| 1509 | ||
| 1510 | /** |
|
| 1511 | * Returns if an item type is a multipage item type |
|