Beispiel #1
0
 public function __construct($controlNamespace, $control, $action, $args)
 {
     parent::__construct();
     $this->controlNamespace = $controlNamespace;
     $this->control = $control;
     $this->action = $action;
     $this->args = $args;
 }
Beispiel #2
0
 public function __construct(Mvc $MVC)
 {
     parent::__construct();
     $this->MVC = $MVC;
     //Register some fucntions that can be used in the template.
     $this->template = $this->plugin->Template();
     $this->templateContext = $this->template->getContext();
 }
Beispiel #3
0
 public function __get($key)
 {
     if ($key == 'model') {
         return $this->MVC->getModelLoader();
     } else {
         return parent::__get($key);
     }
 }
Beispiel #4
0
 public function __construct(Controller $controller, $ref)
 {
     parent::__construct();
     $this->controller = $controller;
     $this->ref = $ref;
     $this->name = $this->config->{$this->ref}->name;
     $this->description = $this->config->{$this->ref}->description;
     $this->version = $this->config->{$this->ref}->version;
     $this->nsPrefix = $this->config->{$this->ref}->nsPrefix;
     /* Create a responder object which will hold 
      * all the request responses and output them.
      */
     $this->responder = new Responder();
 }
 public function __construct($path)
 {
     parent::__construct();
     $this->setPath($path);
 }