/**
  * Profile_ViewModel constructor.
  */
 public function __construct($user, $profileUser)
 {
     parent::__construct();
     $this->logged_in_user = $user;
     $this->profile_user = $profileUser;
     $this->data = MorpheusPetsData::getInstance();
 }
 /**
  * Battle_ViewModel constructor.
  */
 public function __construct($user)
 {
     parent::__construct();
     $this->logged_in_user = $user;
     $this->data = MorpheusPetsData::getInstance();
     $this->battle = new Battle();
 }
 function __construct()
 {
     parent::__construct();
     $arr = getModelFilterByNodeSetting();
     if (is_array($arr)) {
         $this->_filter = $arr;
     }
 }
Beispiel #4
0
 public function __construct($method, $auto_filter = null, $view = null)
 {
     // Maybe set the template...
     $template = $this->template();
     if ($template !== null) {
         $view = $template;
     }
     parent::__construct($method, $auto_filter, $view);
 }
 /**
  * PetViewer_ViewModel constructor.
  *
  * @param Pet $pet
  */
 public function __construct($pet)
 {
     parent::__construct();
     $this->pet = $pet;
 }
 /**
  * User_ViewModel constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->data = MorpheusPetsData::getInstance();
 }
Beispiel #7
0
 /**
  * @param array|null|object $params
  * @param int               $templateName
  */
 public function __construct($params, $templateName = null)
 {
     $this->templateName = $templateName;
     parent::__construct($params);
 }