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


PHP object::getGet方法代码示例

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


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

示例1: actionPerformed

 /**
  * 客房查詢資料
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $roomStoreData = array();
     $roomStoreData["identifier"] = "roomId";
     $roomStoreData["items"] = array();
     if (!empty($get['roomCategoryName']) && !empty($get['keyWord'])) {
         // 判斷是否第一次進入畫面
         $roomCategoryName = $get['roomCategoryName'];
         $keyWord = $get['keyWord'];
         $roomCategoryName = json_decode($roomCategoryName);
         $keyWord = '%' . json_decode($keyWord) . '%';
         if ($roomCategoryName == "all") {
             // 如果選到全部的話
             $roomStoreData["items"] = $this->_getRoomCategoryNameAll($keyWord);
         } else {
             $roomStoreData["items"] = $this->_getKeyWordValue($keyWord, $roomCategoryName);
         }
     } else {
         // 初始化頁面
         $roomStoreData["items"] = $this->_init();
     }
     if (empty($roomStoreData)) {
         echo false;
     } else {
         echo json_encode($roomStoreData);
     }
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:32,代码来源:GetRoomStoreAction.php

示例2: actionPerformed

 /**
  * 顯示修改新增最新消息頁面
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $newsId = json_decode($get['newsId']);
     $newsResult = $this->newsModel->getNewsByNewsId($newsId);
     $this->newsPage->showNewsUpdatePage($newsResult);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:11,代码来源:ShowNewsUpdatePageAction.php

示例3: actionPerformed

 /**
  * 執行修改飯店資訊
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $hotelFax = $get['hotelFax'];
     // 飯店傳真
     $hotelDesc = $get['hotelDesc'];
     // 飯店描述
     $hotelName = $get['hotelName'];
     // 飯店名稱
     $hotelEmail = $get['hotelEmail'];
     // 飯店 Email
     $hotelAddrs = $get['hotelAddrs'];
     // 飯店地址
     $hotelCheckInTime = $get['hotelCheckInTime'];
     // 入房時間
     $hotelContactPhone = $get['hotelContactPhone'];
     // 飯店電話
     $hotelCheckOutTime = $get['hotelCheckOutTime'];
     // 退房時間
     $hotelFax = json_decode($hotelFax);
     $hotelDesc = json_decode($hotelDesc);
     $hotelName = json_decode($hotelName);
     $hotelEmail = json_decode($hotelEmail);
     $hotelAddrs = json_decode($hotelAddrs);
     $hotelCheckInTime = json_decode($hotelCheckInTime);
     $hotelContactPhone = json_decode($hotelContactPhone);
     $hotelCheckOutTime = json_decode($hotelCheckOutTime);
     $isHotelInformationUpdate = null;
     $isHotelInformationUpdate = $this->hotelModel->updateHotelInformation($hotelName, $hotelAddrs, $hotelEmail, $hotelContactPhone, $hotelCheckInTime, $hotelCheckOutTime, $hotelFax, $hotelDesc);
     $this->hotelCommon->checkModelAction($isHotelInformationUpdate);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:36,代码来源:UpdateHotelInformationAction.php

示例4: _parseUri

 /**
  * 解析 URI 得到对应的当前控制器和动作
  */
 private function _parseUri()
 {
     // 根据不同的 URL 进行解析
     if ($this->_appConfig['url_method'] == 'standard') {
         // 得到控制器名和动作名
         $this->_controller = ucfirst(strtolower($this->_request->getGet(QP_Request::C, QP_Controller::DEFAULT_CONTROLLER)));
         $this->_action = ucfirst(strtolower($this->_request->getGet(QP_Request::A, QP_Controller::DEFAULT_ACTION)));
         // 将控制器与方法加入到 GET 中
         $this->_request->setGet(array('controller' => $this->_controller, 'action' => $this->_action));
     } else {
         $isRouter = false;
         // URL重写等就要检查是否设置了路由
         if (QP_Router::isUseRouter()) {
             $router = QP_Router::matches($this->_request->requestUri());
             // 路由匹配成功
             if ($router) {
                 $this->_controller = $router['controller'];
                 $this->_action = $router['action'];
                 $isRouter = true;
                 // 匹配到的路由
                 $this->_setDebugInfo('router', $router);
             }
         }
         // 如果没有定义或匹配到路由则 继续 采用 常规方法 得到 控制器名 和 动作名
         if (!$isRouter) {
             $this->_controller = ucfirst(strtolower($this->_request->getParam('controller', QP_Controller::DEFAULT_CONTROLLER)));
             $this->_action = ucfirst(strtolower($this->_request->getParam('action', QP_Controller::DEFAULT_ACTION)));
         }
         // 将控制器与方法加入到参数中
         $this->_request->setParam(array('controller' => $this->_controller, 'action' => $this->_action));
     }
 }
开发者ID:laiello,项目名称:quickbug,代码行数:35,代码来源:Dispatcher.php

示例5: actionPerformed

 /**
  * 刪除飯店照片
  * @param object $event 事件的物件
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $hotelPictureId = json_decode($get['hotelPictureId']);
     // 照片 Id
     $isHotelPictureDelete = null;
     $hotelPictureMainResults = $this->hotelPhotoModel->getHotelPictureMainNameByHotelPictureId($hotelPictureId);
     // 查詢這張照片是不是封面
     $hotelMainPicture = $hotelPictureMainResults[0]['pphoto_pic_main'];
     // 封面照片
     $hotelMainPictureName = $hotelPictureMainResults[0]['pphoto_name'];
     // 照片名稱
     $path = "images/upload/hotel/" . $hotelMainPictureName;
     if ($hotelMainPicture == 'yes') {
         // 如果這張照片是封面的話
         echo json_encode(false);
         exit;
     } else {
         $isHotelPictureDelete = $this->hotelPhotoModel->deleteHotelPictureByHotelPictureId($hotelPictureId);
         // 執行刪除
     }
     $this->hotelCommon->checkModelAction($isHotelPictureDelete);
     unlink($path);
     // 刪除資料夾照片
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:30,代码来源:DeleteHotelPictureAction.php

示例6: actionPerformed

 /**
  * 顯示首頁客房導覽 ( 預設第一筆資料 )
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $roomCategoryId = $get['roomCategoryId'];
     // 客房種類 Id
     $check = 0;
     $roomNameData = array();
     $roomInformationData = array();
     $roomPictureData = array();
     $roomAmenitiesData = array();
     $roomCategoryDetailResults = $this->hotelRoomCategoryDetailModel->getRoomCategoryDetailByRoomCategoryId($roomCategoryId);
     if (!empty($roomCategoryDetailResults)) {
         foreach ($roomCategoryDetailResults as $roomCategoryDetailRow) {
             $check++;
             $roomId = $roomCategoryDetailRow['proom_id'];
             $roomNameData = $this->_getRoomNameData($roomNameData, $roomId);
             // 取得客房名稱
         }
         $roomInformationData = $this->_getRoomInformationData($roomCategoryDetailResults[0]['proom_id']);
         // 取得客房資訊
         $roomPictureData = $this->_getRoomPictureData($roomCategoryDetailResults[0]['proom_id']);
         // 取得客房照片資料
         $roomAmenitiesData = $this->_getRoomAmenitiesData($roomCategoryDetailResults[0]['proom_id']);
         // 取得客房照片資料
     }
     if ($check != 0) {
         echo $this->guestPage->showHomeRoomInformationPage($roomNameData, $roomInformationData, $roomPictureData, $roomAmenitiesData);
     } else {
         echo false;
     }
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:35,代码来源:ShowHomeRoomInfromationPageAction.php

示例7: _getCurPage

 /**
  * 得到当前所是第几页
  *
  * @return int
  */
 private function _getCurPage()
 {
     if ($this->_urlMethod == 'standard' || false !== strpos($this->_options['url'], '?')) {
         $pagenum = $this->_request->getGet($this->_options['tagname']);
     } else {
         $pagenum = $this->_request->getParam($this->_options['tagname']);
     }
     return max($pagenum, 1);
 }
开发者ID:laiello,项目名称:quickbug,代码行数:14,代码来源:Page.php

示例8: actionPerformed

 /**
  * 意見修改
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $commentsId = $get['commentsId'];
     // 意見 Id
     $isCommentUpdate = null;
     $isCommentUpdate = $this->hotelCommentsModel->updateComments($commentsId);
     $this->hotelCommon->checkModelAction($isCommentUpdate);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:UpdateCommentAction.php

示例9: actionPerformed

 /**
  * 刪除客房設施相關資訊
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $roomAmenitiesId = $get['roomAmenitiesId'];
     // 客房設施 Id
     $isRoomAmenitiesDelete = $this->hotelRoomAmenitiesModel->deleteRoomAmenitiesByRoomAmenitiesId($roomAmenitiesId);
     // 刪除客房種類 Id 所對應到的客房種類
     $this->hotelCommon->checkModelAction($isRoomAmenitiesDelete);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:DeleteRoomAmenitiesAction.php

示例10: actionPerformed

 /**
  * 首頁最新消息詳細資料
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $newsId = $get['newsId'];
     // 最新消息 Id
     $newsInformationData = array();
     $newsInformationData = $this->_getNewsInformationData($newsId);
     // 取得最新消息的資料
     echo $this->guestPage->showHomeNewsDataPage($newsInformationData);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:GetNewsInformationDataAction.php

示例11: actionPerformed

 /**
  * 新增客房設施
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $roomAmenitiesName = $get['roomAmenitiesName'];
     // 客房設施名稱
     $roomAmenitiesName = json_decode($roomAmenitiesName);
     $isRoomAmenitiesInsert = $this->hotelRoomAmenitiesModel->insertRoomAmenities($roomAmenitiesName);
     $this->hotelCommon->checkModelAction($isRoomAmenitiesInsert);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:InsertRoomAmenitiesAction.php

示例12: actionPerformed

 /**
  * 顯示飯店設施修改頁面
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $facilitiesId = json_decode($get['facilitiesId']);
     // 設施 Id
     $hotelFacilitiesResults = $this->hotelAmenitiesModel->getHotelFacitiliesByFacitiliesId($facilitiesId);
     if (!empty($hotelFacilitiesResults)) {
         $this->hotelPage->showHotelFacilitiesUpdatePage($hotelFacilitiesResults);
     }
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:ShowUpdateHotelFacilitiesPageAction.php

示例13: actionPerformed

 /**
  * 顯示飯店照片頁面
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $hotelPictureId = json_decode($get['hotelPictureId']);
     $hotelPictureDataResult = $this->hotelPhotoModel->getHotelPictureDateByHotelPictureId($hotelPictureId);
     if (!empty($hotelPictureDataResult)) {
         $hotelPictureData = $this->_getHotelUpdatePictureInformation($hotelPictureDataResult);
         $this->hotelPage->showHotelPictureUpdatePage($hotelPictureData);
     }
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:14,代码来源:ShowUpdateHotelPicturePageAction.php

示例14: actionPerformed

 /**
  * 刪除意見
  * @param object $event 事件的物件
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $commentsId = json_decode($get['commentsId']);
     // 意見 Id
     $isCommentsDelete = null;
     $isCommentsDelete = $this->hotelCommonModel->deleteCommentsByCommentsId($commentsId);
     // 執行刪除
     $this->hotelCommon->checkModelAction($isCommentsDelete);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:15,代码来源:DeleteCommentsAction.php

示例15: actionPerformed

 /**
  * 新增員工職位
  * @param object $event 事件的物件  
  */
 public function actionPerformed($event)
 {
     $get = $event->getGet();
     $isemployeesJobInsert = null;
     $employeesJobTitle = $get['employeesJobTitle'];
     // 員工職位名稱
     $employeesJobTitle = json_decode($employeesJobTitle);
     $isemployeesJobInsert = $this->hotelEmployeesJobModel->insertEmployeesJob($employeesJobTitle);
     $this->hotelCommon->checkModelAction($isemployeesJobInsert);
     echo json_encode(true);
 }
开发者ID:1101137146,项目名称:-SpecialTopic,代码行数:15,代码来源:InsertEmployeesJobAction.php


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