當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。