Ejemplo n.º 1
0
 /**
  * Initialize action, which will be executed before every
  * other action in this controller
  *
  * @return void
  */
 public function initializeAction()
 {
     $this->settings = $this->settingsUtility->renderConfigurationArray($this->settings, $this->settings['_skipMakingSettingsRenderable'] ? FALSE : TRUE);
     $this->pageUid = $GLOBALS['TSFE']->id;
     $this->currentUser = $GLOBALS['TSFE']->fe_user->user;
     $this->currentAuthorIdent = $this->currentUser['uid'] ? $this->currentUser['uid'] : $this->cookieUtility->get('ahash');
     if (is_numeric($this->currentAuthorIdent) && !$this->currentUser['uid']) {
         $this->currentAuthorIdent = NULL;
     }
     if ($this->settings['useEntryUid']) {
         $this->entryUid = intval($this->settings['entryUid']);
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns the rendered settings of this extension
  *
  * @return array rendered typoscript settings
  */
 protected function getExtensionSettings()
 {
     $fullTyposcript = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
     $extensionTyposcript = $fullTyposcript['plugin.']['tx_pwcomments.']['settings.'];
     return $this->settingsUtility->renderConfigurationArray($extensionTyposcript);
 }