Exemplo n.º 1
0
 /**
  *
  * @see ThemeHouse_Listener_Template::run()
  */
 public function run()
 {
     $hooks = $this->_getHooks();
     foreach ($hooks as $hookName) {
         if ($hookName == $this->_hookName) {
             $callback = $this->_getHookCallbackFromHookName($hookName);
             $this->_runHookCallback($callback);
         }
     }
     $hookCallbacks = $this->_getHookCallbacks();
     foreach ($hookCallbacks as $hookName => $callback) {
         if ($hookName == $this->_hookName) {
             $this->_runHookCallback($callback);
         }
     }
     return parent::run();
 }
Exemplo n.º 2
0
 /**
  *
  * @param XenForo_FrontController $fc
  * @param string $contents
  */
 public function __construct(XenForo_FrontController $fc, &$contents)
 {
     $this->_fc = $fc;
     $this->_routePath = $this->_fetchRoutePath();
     parent::__construct($contents, null);
 }
Exemplo n.º 3
0
 public function __construct($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
 {
     $this->_templateName = $templateName;
     $this->_containerData = $containerData;
     parent::__construct($content, $template);
 }
Exemplo n.º 4
0
 /**
  *
  * @param string $contents
  * @param XenForo_Template_Abstract $template
  */
 public function __construct(&$contents, XenForo_Template_Abstract $template = null)
 {
     $this->_template = $this;
     parent::__construct($contents, null);
 }