当前位置: 首页>>代码示例>>PHP>>正文


PHP CRequest::getInt方法代码示例

本文整理汇总了PHP中CRequest::getInt方法的典型用法代码示例。如果您正苦于以下问题:PHP CRequest::getInt方法的具体用法?PHP CRequest::getInt怎么用?PHP CRequest::getInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRequest的用法示例。


在下文中一共展示了CRequest::getInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: actionChangeAuthors

 public function actionChangeAuthors()
 {
     $field = CCoreObjectsManager::getCoreModelField(CRequest::getInt("id"));
     $field->is_authors = 1 - $field->is_authors;
     $field->save();
     echo $field->is_authors;
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CCoreModelFieldsController.class.php

示例2: actionView

 public function actionView()
 {
     $group = CStaffManager::getStudentGroup(CRequest::getInt("id"));
     $this->addActionsMenuItem(array(array("title" => "Назад", "link" => WEB_ROOT . "_modules/_student_groups/public.php?action=index", "icon" => "actions/edit-undo.png")));
     $this->setData("group", $group);
     $this->renderView("__public/_student_groups/view.tpl");
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CPublicStudentGroupsController.class.php

示例3: execute

 public function execute($contextObject)
 {
     $result = array();
     $studyLoad = new CArrayList();
     $load = CIndPlanManager::getLoad(CRequest::getInt("planId"));
     $studyLoad = $load->getWorksByType(2);
     foreach ($studyLoad->getItems() as $row) {
         $dataRow = array();
         $dataRow[0] = count($result) + 1;
         $dataRow[1] = $row->getTitle();
         $dataRow[2] = $row->plan_amount;
         $dataRow[3] = $row->plan_expiration_date;
         $dataRow[4] = $row->plan_report_type;
         $dataRow[5] = $row->isExecuted();
         $dataRow[6] = $row->comment;
         $result[] = $dataRow;
     }
     for ($i = count($result); $i <= 7; $i++) {
         $row = array();
         for ($j = 0; $j <= 6; $j++) {
             $row[$j] = "";
         }
         $result[] = $row;
     }
     return $result;
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:26,代码来源:CIndPlanEducLoad.class.php

示例4: actionDel

 public function actionDel()
 {
     $p = CCorriculumsManager::getPractice(CRequest::getInt("id"));
     $c = $p->corriculum_id;
     $p->remove();
     $this->redirect("index.php?action=edit&id=" . $c);
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CCorriculumPracticesController.class.php

示例5: actionDelete

 public function actionDelete()
 {
     $object = CCoreObjectsManager::getCoreModelTask(CRequest::getInt("id"));
     $model = $object->model_id;
     $object->remove();
     $this->redirect("models.php?action=edit&id=" . $model);
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CCoreModelTasksController.class.php

示例6: actionDelete

 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanCompetention(CRequest::getInt("id"));
     $plan = $object->plan_id;
     $object->remove();
     $this->redirect("workplancompetentions.php?action=index&plan_id=" . $plan);
 }
开发者ID:Trozeman,项目名称:ASUPortalPHP,代码行数:7,代码来源:CWorkPlanCompetentionsController.class.php

示例7: actionDelete

 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanContentSection(CRequest::getInt("id"));
     $module = $object->module_id;
     $object->remove();
     $this->redirect("workplancontentmodules.php?action=edit&id=" . $module);
 }
开发者ID:Trozeman,项目名称:ASUPortalPHP,代码行数:7,代码来源:CWorkPlanContentSectionsController.class.php

示例8: execute

 public function execute($contextObject)
 {
     $result = array();
     $studyLoad = new CArrayList();
     $load = CIndPlanManager::getLoad(CRequest::getInt("planId"));
     $studyLoad = $load->getWorksByType(6);
     foreach ($studyLoad->getItems() as $row) {
         $dataRow = array();
         $dataRow[0] = count($result) + 1;
         $dataRow[1] = $row->change_section;
         $dataRow[2] = $row->change_reason;
         $dataRow[3] = "";
         $dataRow[4] = $row->change_add_date;
         $dataRow[5] = $row->isExecuted();
         $result[] = $dataRow;
     }
     for ($i = count($result); $i <= 7; $i++) {
         $row = array();
         for ($j = 0; $j <= 5; $j++) {
             $row[$j] = "";
         }
         $result[] = $row;
     }
     return $result;
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:25,代码来源:CIndPlanChangesLoad.class.php

示例9: actionDelete

 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanTask(CRequest::getInt("id"));
     if (!is_null($object)) {
         $goal = $object->goal;
         $object->remove();
         $order = 1;
         foreach ($goal->tasks as $task) {
             $task->ordering = $order++;
             $task->save();
         }
         $this->redirect("workplangoals.php?action=edit&id=" . $goal->getId());
     }
     $items = CRequest::getArray("selectedInView");
     $goal = CBaseManager::getWorkPlanGoal(CRequest::getInt("goal_id"));
     foreach ($items as $id) {
         $object = CBaseManager::getWorkPlanTask($id);
         $object->remove();
     }
     $order = 1;
     foreach ($goal->tasks as $task) {
         $task->ordering = $order++;
         $task->save();
     }
     $this->redirect("workplangoals.php?action=edit&id=" . $goal->getId());
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:26,代码来源:CWorkPlanTasksController.class.php

示例10: actionGetViewData

 public function actionGetViewData()
 {
     $result = array();
     // комиссии по защите дипломов. показываем только комиссии этого года
     foreach (CActiveRecordProvider::getWithCondition(TABLE_SAB_COMMISSIONS, "year_id=" . CUtils::getCurrentYear()->getId())->getItems() as $ar) {
         $comm = new CSABCommission($ar);
         $value = $comm->title;
         if (!is_null($comm->manager)) {
             $value .= " " . $comm->manager->getName();
         }
         if (!is_null($comm->secretar)) {
             $value .= " (" . $comm->secretar->getName() . ")";
         }
         $diplom = CStaffManager::getDiplom(CRequest::getInt("diplom_id"));
         if (!is_null($diplom)) {
             $cnt = 0;
             foreach ($comm->diploms->getItems() as $d) {
                 if (strtotime($diplom->date_act) == strtotime($d->date_act)) {
                     $cnt++;
                 }
             }
             $value .= " " . $cnt;
         }
         $result[$comm->getId()] = $value;
     }
     return $result;
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:27,代码来源:CSearchCatalogSABCommission.class.php

示例11: actionDelete

 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanLiterature(CRequest::getInt("id"));
     $plan = $object->plan;
     $type = $object->type;
     $object->remove();
     $order = 1;
     if ($object->type == 1) {
         foreach ($plan->baseLiterature as $baseLiterature) {
             $baseLiterature->ordering = $order++;
             $baseLiterature->save();
         }
     } elseif ($object->type == 2) {
         foreach ($plan->additionalLiterature as $additionalLiterature) {
             $additionalLiterature->ordering = $order++;
             $additionalLiterature->save();
         }
     } elseif ($object->type == 3) {
         foreach ($plan->internetResources as $internetResources) {
             $internetResources->ordering = $order++;
             $internetResources->save();
         }
     }
     $this->redirect("workplanliterature.php?action=index&plan_id=" . $plan->getId() . "&type=" . $type);
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:25,代码来源:CWorkPlanLiteratureController.class.php

示例12: actionDelete

 public function actionDelete()
 {
     $event = CGrantManager::getEvent(CRequest::getInt("id"));
     $id = $event->grant_id;
     $event->remove();
     $this->redirect("index.php?action=edit&id=" . $id);
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CGrantEventsController.class.php

示例13: actionDelete

 public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanContentSectionLoadTechnology(CRequest::getInt("id"));
     $load = $object->load_id;
     $object->remove();
     $this->redirect("workplancontentloads.php?action=edit&id=" . $load);
 }
开发者ID:Trozeman,项目名称:ASUPortalPHP,代码行数:7,代码来源:CWorkPlanContentSectionLoadTechnologiesController.class.php

示例14: actionDelete

 public function actionDelete()
 {
     $object = CCorriculumsManager::getCompetention(CRequest::getInt("id"));
     $discipline_id = $object->discipline_id;
     $object->remove();
     $this->redirect("disciplines.php?action=edit&id=" . $discipline_id);
 }
开发者ID:Trozeman,项目名称:ASUPortalPHP,代码行数:7,代码来源:CCorriculumDisciplineCompetentionsController.class.php

示例15: actionDelete

 public function actionDelete()
 {
     $validator = CCoreObjectsManager::getCoreModelFieldValidator(CRequest::getInt("id"));
     $field = $validator->field_id;
     $validator->remove();
     $this->redirect("fields.php?action=edit&id=" . $field);
 }
开发者ID:Rustam44,项目名称:ASUPortalPHP,代码行数:7,代码来源:CCoreModelFieldValidatorsController.class.php


注:本文中的CRequest::getInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。