public function orderInfo($orderId) { $this->synchronize(); $time = time() + $this->differenceTimestamp; $getData = array('login' => Yii::app()->params['HotelBook']['login'], 'time' => $time, 'checksum' => $this->getChecksum($time), 'order_id' => $orderId); self::$lastRequestMethod = 'OrderInfo'; self::$lastRequestDescription = (string) $orderId; $response = $this->request(Yii::app()->params['HotelBook']['uri'] . 'order_info', $getData); $responseObject = simplexml_load_string($response); $hotelOrderConfirmResponse = new HotelOrderConfirmResponse(); $hotelOrderConfirmResponse->orderId = (string) $responseObject->Order->Id; $hotelOrderConfirmResponse->tag = (string) $responseObject->Order->Tag; $hotelOrderConfirmResponse->orderState = (string) $responseObject->Order->State; $hotelOrderConfirmResponse->error = 0; if (isset($responseObject->Errors->Error)) { throw new CException('Internal orderInfo hotelBook error: ' . CVarDumper::dumpAsString($responseObject->Errors)); } return $hotelOrderConfirmResponse; }