public function __construct(ContextManager $context)
 {
     $this->metadata = array('name' => $this->class_name(), 'author' => 'Aurelian Oancea', 'version' => 0.1, 'url' => 'http://example.com/foo_plugin');
     $this->routes = array(new Route('__login', '/login', array('controller' => 'account', 'action' => 'login')), new Route('__logout', '/logout', array('controller' => 'account', 'action' => 'logout')));
     $this->load_path = dirname(__FILE__) . '/../';
     parent::__construct($context);
 }
 /**
  * constructor; don't show main content
  *
  * @param string $opts 
  * @author Andy Bennett
  */
 function __construct($opts = null)
 {
     parent::__construct($opts);
     Display::instance()->add_data('show_maincontent', true);
 }
Esempio n. 3
0
 public function __construct(ContextManager $context)
 {
     $this->metadata = array('name' => $this->class_name(), 'author' => 'Joe Doe', 'version' => 0.1, 'url' => 'http://example.com/foo_plugin');
     $context->logger()->debugf("Plugin %s loaded", $this->name());
     parent::__construct($context);
 }
 function __construct($opts = null)
 {
     parent::__construct($opts);
 }