private function _GetAndStoreLocationsInSession($sessionProject) { if (count($sessionProject[\Library\Enums\SessionKeys::ProjectLocations]) === 0 || !$sessionProject[\Library\Enums\SessionKeys::ProjectLocations]) { $result = \Applications\PMTool\Helpers\LocationHelper::GetLocationList($this, $sessionProject); $sessionProject[\Library\Enums\SessionKeys::ProjectLocations] = $result[\Library\Enums\SessionKeys::ProjectLocations]; } else { return $sessionProject[\Library\Enums\SessionKeys::ProjectLocations]; } }
public function executeGetList(\Library\HttpRequest $rq = NULL, $sessionProject = NULL, $isAjaxCall = FALSE) { // Init result $result = \Applications\PMTool\Helpers\LocationHelper::GetLocationList($this, $sessionProject); if ($isAjaxCall) { $step_result = $result[\Library\Enums\SessionKeys::ProjectLocations] !== NULL ? "success" : "error"; $this->SendResponseWS($result, array("resx_file" => \Applications\PMTool\Resources\Enums\ResxFileNameKeys::Location, "resx_key" => $this->action(), "step" => $step_result)); } }