public static function FillProjectSessionWithDataList($caller, $sessionProject) { $sessionProject[\Library\Enums\SessionKeys::ProjectLocations] = LocationHelper::GetProjectLocations($caller, $sessionProject); $sessionProject[\Library\Enums\SessionKeys::ProjectTasks] = array(); $sessionProject[\Library\Enums\SessionKeys::ProjectFieldAnalytes] = AnalyteHelper::GetProjectAnalytes($caller, TRUE, $sessionProject); $sessionProject[\Library\Enums\SessionKeys::ProjectLabAnalytes] = AnalyteHelper::GetProjectAnalytes($caller, FALSE, $sessionProject); $sessionProject[\Library\Enums\SessionKeys::ProjectForms] = FormHelper::GetProjectForms($caller, $sessionProject); $sessionProject[\Library\Enums\SessionKeys::ProjectServices] = array(); return $sessionProject; }
public static function FillSessionPm($caller, $sessionPm) { $sessionPm[\Library\Enums\SessionKeys::PmTechnicians] = TechnicianHelper::GetPmTechnicians($caller, $sessionPm); $sessionPm[\Library\Enums\SessionKeys::PmServices] = ServiceHelper::GetPmServices($caller, $sessionPm); /* * Sets * $sessionPm[\Library\Enums\SessionKeys::PmFieldAnalytes] * $sessionPm[\Library\Enums\SessionKeys::PmLabAnalytes] * * And also saves the data filled above. */ AnalyteHelper::StoreListsData($caller, FALSE); self::GetAndStoreCurrentPm($caller->user(), $sessionPm[\Library\Enums\SessionKeys::PmObject]->pm_id()); }