コード例 #1
0
 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);
 }
コード例 #2
0
 public function actionDelete()
 {
     $event = CGrantManager::getEvent(CRequest::getInt("id"));
     $id = $event->grant_id;
     $event->remove();
     $this->redirect("index.php?action=edit&id=" . $id);
 }
コード例 #3
0
 /**
  * @return CArrayList|null
  */
 private static function getCacheAttachments()
 {
     if (is_null(self::$_cacheAttachments)) {
         self::$_cacheAttachments = new CArrayList();
     }
     return self::$_cacheAttachments;
 }
コード例 #4
0
 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");
 }
コード例 #5
0
 public function actionView()
 {
     $object = CGrantManager::getGrant(CRequest::getInt("id"));
     $this->setData("object", $object);
     $this->renderView("__public/_grants/view.tpl");
 }
コード例 #6
0
 public function actionRemoveAttach()
 {
     $attach = CGrantManager::getAttachment(CRequest::getInt("id"));
     $grant_id = $attach->grant_id;
     $attach->remove();
     $this->redirect("?action=edit&id=" . $grant_id);
 }