Project

General

Profile

Actions

Bug #76906

closed

Protected property sword disables possiblity to use hook

Added by Claus Harup over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Indexed Search
Target version:
Start date:
2016-07-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
On Location Sprint

Description

Having:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks']['initialize_postProc'] = 'XXXXXXX\TxExtension\Hooks\IndexedsearchHook';

and

function initialize_postProc() {
    if(GeneralUtility::_GP('q')){
        $this->pObj->sword = GeneralUtility::_GP('q');
    }
}

leaves me with an error because the property sword is protected :-(

Actions

Also available in: Atom PDF