/** * @url GET /:type/case/:app_uid * * @param $access * @param $refresh * @return mixed */ public function getInformation($type, $app_uid) { try { $userUid = $this->getUserId(); $oMobile = new \ProcessMaker\BusinessModel\Light(); $response = $oMobile->getInformation($userUid, $type, $app_uid); $response = $this->parserGetInformation($response); } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } return $response; }
/** * @url GET /:type/case/:app_uid * * @param $access * @param $refresh * @return mixed */ public function getInformation($type, $app_uid) { try { $arrayFieldIso8601 = array('caseCreateDate', 'caseUpdateData', 'delDelegateDate', 'delInitDate', 'delDueDate', 'delFinishDate'); $userUid = $this->getUserId(); $oMobile = new \ProcessMaker\BusinessModel\Light(); $response = $oMobile->getInformation($userUid, $type, $app_uid); $response = $this->parserGetInformation($response); $response = DateTime::convertUtcToIso8601($response, $arrayFieldIso8601); } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; }