DmitryDulepov\Realurl\EncodeDecoderBase::__construct PHP Method

__construct() public method

Initializes the class.
public __construct ( )
    public function __construct()
    {
        Utility::checkAndPerformRequiredUpdates();
        $this->databaseConnection = $GLOBALS['TYPO3_DB'];
        $this->tsfe = $GLOBALS['TSFE'];
        // Warning! It is important to init the new object and not reuse any existing object
        // $this->pageRepository->sys_language_uid must stay 0 because we will do overlays manually
        $this->pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
        $this->pageRepository->init(FALSE);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Initializes the class.
  */
 public function __construct()
 {
     parent::__construct();
 }
All Usage Examples Of DmitryDulepov\Realurl\EncodeDecoderBase::__construct