public function __construct($path, $model)
 {
     $this->model = $model;
     list($module, $form) = explode(".", $path, 2);
     $form_path = "application.modules.{$module}.forms.{$form}";
     parent::__construct($form_path, $model);
 }
Example #2
0
 public function __construct($owner = null)
 {
     // TODO: refactor dependency to X2Widget into a behavior that manages namespacing
     if ($this->namespace === '' && isset($_POST[X2Widget::NAMESPACE_KEY])) {
         $this->namespace = $_POST[X2Widget::NAMESPACE_KEY];
     }
     parent::__construct($owner);
 }
Example #3
0
 public function __construct($owner = null)
 {
     $this->attachBehaviors($this->behaviors());
     parent::__construct($owner);
 }
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     \application\components\EventManager::attach($this);
 }