Beispiel #1
0
 public function __construct()
 {
     if (!class_exists('\\Phile\\Core\\Event')) {
         // Phile < 1.5 => register event
         \Phile\Event::registerEvent('before_parse_content', $this);
     }
 }
Beispiel #2
0
 public function __construct($relDir = "lib/cache/logs", $logLevel = "debug", $options = array())
 {
     /* Register Events */
     \Phile\Event::registerEvent('plugins_loaded', $this);
     /* create new instance of KLogger */
     $this->logger = new \Phile\Plugin\Sturple\PhileLogger\Logger(__DIR__ . '/../../../../' . $relDir, $logLevel, $options);
 }
Beispiel #3
0
 public function __construct()
 {
     \Phile\Event::registerEvent('plugins_loaded', $this);
     \Phile\Core\Event::registerEvent('config_loaded', $this);
     $this->logger = (new \Phile\Plugin\Sturple\PhileLogger\Plugin($relDir = 'lib/cache/logs', $logLevel = 'debug', $options = array()))->getLogger();
     $this->config = \Phile\Registry::get('Phile_Settings');
 }
 public function __construct()
 {
     if (!class_exists('\\Phile\\Core\\Event')) {
         // Phile < 1.5 => register event
         \Phile\Event::registerEvent('request_uri', $this);
         \Phile\Event::registerEvent('template_engine_registered', $this);
         \Phile\Event::registerEvent('plugins_loaded', $this);
     }
     $this->pagelist_snippet = new PagelistSnippet();
 }
Beispiel #5
0
 public function __construct()
 {
     \Phile\Event::registerEvent('after_parse_content', $this);
 }
Beispiel #6
0
 /**
  * Class contructor
  *
  * @return void
  */
 public function __construct()
 {
     Event::registerEvent('config_loaded', $this);
     Event::registerEvent('after_render_template', $this);
 }