Ejemplo n.º 1
0
 public function __construct()
 {
     $this->databaseHandle = $GLOBALS['TYPO3_DB'];
     $this->tools = GeneralUtility::makeInstance('tx_mmforum_tools');
     $this->validator = GeneralUtility::makeInstance('tx_mmforum_validator');
     $this->cache = GeneralUtility::makeInstance('tx_mmforum_cache');
     $this->local_cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
     if ($this->cObj === NULL) {
         $this->cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
     }
     parent::__construct();
 }
 /**
  * The constructor for a view setting the component manager and the configuration.
  *
  * @param \Typoheads\Formhandler\Component\Manager $componentManager
  * @param \Typoheads\Formhandler\Controller\Configuration $configuration
  * @return void
  */
 public function __construct(\Typoheads\Formhandler\Component\Manager $componentManager, \Typoheads\Formhandler\Controller\Configuration $configuration, \Typoheads\Formhandler\Utility\Globals $globals, \Typoheads\Formhandler\Utility\GeneralUtility $utilityFuncs)
 {
     parent::__construct();
     $this->componentManager = $componentManager;
     $this->configuration = $configuration;
     $this->globals = $globals;
     $this->utilityFuncs = $utilityFuncs;
     $this->cObj = $this->globals->getCObj();
     $this->pi_loadLL();
     $this->initializeView();
 }
 /**
  * Initializing the parent class
  *
  * @param	array		$conf TS conf
  *
  * @return	void
  */
 public function init(array $conf)
 {
     AbstractPlugin::__construct();
     $this->conf = $conf;
     $this->pi_loadLL();
     $this->siteUrl = $this->conf['siteUrl'];
     // Default linebreak;
     if ($this->conf['flowedFormat']) {
         $this->linebreak = chr(32) . LF;
     }
 }