Пример #1
0
 /**
  * @param stdClass $o
  * @return CaseModel
  */
 public static function fromObject($o)
 {
     $study = new StudyModel();
     $study->setId($o->id);
     $study->setTitle($o->title);
     $study->setDescription($o->description);
     return $study;
 }
Пример #2
0
 function add_study()
 {
     $this->load->model('UserModel');
     $this->load->model('StudyModel');
     $user = UserModel::loadById($this->userId);
     $studies = StudyModel::loadByUser($user->getId());
     $this->assign('user', $user);
     $this->assign('studies', $studies);
     $this->load->view('header');
     $this->load->view('add_study');
     $this->load->view('footer');
 }
Пример #3
0
 function add_report($studyId)
 {
     $this->assign('study', StudyModel::loadById($studyId));
     $this->assign('models', ModelModel::loadByStudy($studyId));
     $this->assign('scenarios', ScenarioModel::loadByStudy($studyId));
     $this->assign('queries', QueryModel::loadByStudy($studyId));
     $this->load->view('header');
     $this->load->view('add_report');
     $this->load->view('footer');
 }