public function __construct($filter = null) { if (null === $filter) { $filter = new Model_Group_Filter(); } $this->setFilter($filter); $this->setMapper(Model_DB_Group_Mapper::get_instance()); }
public function getGroupCollection() { if (is_null($this->_groupList)) { $filter = new Model_Group_Filter(); $filter->setIdSpeciality($this->getId()); $this->setGroupList(Model_DB_Group_Mapper::get_instance()->findByFilter($filter)); } return $this->_groupList; }
public function dialogAction() { try { $groupId = $this->getRequestIdGroup(); if ($groupId == 0) { $group = new Model_DB_Group_Object(); } else { $group = Model_DB_Group_Mapper::get_instance()->find($groupId); } $this->view->assign("id_speciality", $this->getRequestIdSpeciality()); $this->view->assign("group", $group); } catch (Exception $e) { echo $e->getMessage(); } }
public function save() { Model_DB_Group_Mapper::get_instance()->save($this); }