public function actionDelete() { $money = CGrantManager::getMoney(CRequest::getInt("id")); $grant_id = $money->period->grant_id; $money->remove(); $this->redirect("index.php?action=edit&id=" . $grant_id); }
public function actionDelete() { $event = CGrantManager::getEvent(CRequest::getInt("id")); $id = $event->grant_id; $event->remove(); $this->redirect("index.php?action=edit&id=" . $id); }
/** * @return CArrayList|null */ private static function getCacheAttachments() { if (is_null(self::$_cacheAttachments)) { self::$_cacheAttachments = new CArrayList(); } return self::$_cacheAttachments; }
public function actionEdit() { $period = CGrantManager::getPeriod(CRequest::getInt("id")); $this->addJSInclude(JQUERY_UI_JS_PATH); $this->addCSSInclude(JQUERY_UI_CSS_PATH); $this->setData("period", $period); $this->renderView("_grants/period/edit.tpl"); }
public function actionView() { $object = CGrantManager::getGrant(CRequest::getInt("id")); $this->setData("object", $object); $this->renderView("__public/_grants/view.tpl"); }
public function actionRemoveAttach() { $attach = CGrantManager::getAttachment(CRequest::getInt("id")); $grant_id = $attach->grant_id; $attach->remove(); $this->redirect("?action=edit&id=" . $grant_id); }