/** * Построение организационной структуры вручную */ public function actionManage() { if (!CSession::isAuth()) { return true; } // строим список преподавателей просто в виде списка $this->_smartyEnabled = true; CStaffManager::buildPersonHierarchy(); CStaffManager::initPersonTypes(); $persons = array(); foreach (CStaffManager::getCachePerson()->getItems() as $item) { if ($item->hasPersonType(TYPE_PPS)) { if (is_null($item->getManager())) { $persons[] = $item; } } } CTaxonomyManager::fullInit(); $this->setData("persons", $persons); $this->renderView("_asuchart/manage.tpl"); }