public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanContentSection(CRequest::getInt("id"));
     $module = $object->module_id;
     $object->remove();
     $this->redirect("workplancontentmodules.php?action=edit&id=" . $module);
 }
 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanContentSection(CRequest::getInt("id"));
     $category = $object->category_id;
     $object->remove();
     $this->redirect("workplancontentcategories.php?action=edit&id=" . $category);
 }
 public function actionAdd()
 {
     $object = new CWorkPlanControlTypes();
     $object->section_id = CRequest::getInt("id");
     $section = CBaseManager::getWorkPlanContentSection(CRequest::getInt("id"));
     $object->ordering = $section->controlTypes->getCount() + 1;
     $this->setData("object", $object);
     /**
      * Генерация меню
      */
     $this->addActionsMenuItem(array("title" => "Назад", "link" => "workplantypescontrol.php?action=index&id=" . $object->section_id, "icon" => "actions/edit-undo.png"));
     /**
      * Отображение представления
      */
     $this->renderView("_corriculum/_workplan/typesControl/add.tpl");
 }
 function render()
 {
     /* @var $section CWorkPlanContentSection */
     $section = CBaseManager::getWorkPlanContentSection(CRequest::getInt("id"));
     $this->addActionsMenuItem(array("title" => "Обновить", "link" => "workplancontentloads.php?id=" . $section->getId() . '&bean=' . $this->getStatefullFormBean()->getBeanId(), "icon" => "actions/view-refresh.png"));
     $this->setData("bean", $this->getStatefullFormBean());
     $this->setData("section", $section);
     $this->renderView("_corriculum/_workplan/contentLoads/index.tpl");
 }