public function actionIndex() { $protocols = CProtocolManager::getAllSebProtocols()->getItems(); CStaffManager::getAllStudents(); $this->extendTable("dataTable"); $this->setData("protocols", $protocols); $this->renderView("_state_exam/_protocols/index.tpl"); }
public function actionGetViewData() { $result = array(); // выбор студентов foreach (CStaffManager::getAllStudents()->getItems() as $student) { $result[$student->getId()] = $student->getName(); } return $result; }