/** * Find a pm from an id * * @param int $pm_id : the id of the pm to find * @return \Applications\PMTool\Models\Dao\Pm $pmMatch : the match */ private function _GetPmFromSession($pm_id) { $pms = array(); $pmMatch = NULL; $pm = \Applications\PMTool\Helpers\PmHelper::GetSessionPm($this->app->user(), $pm_id); $pmMatch = $pm[\Library\Enums\SessionKeys::PmObject]; return $pmMatch; }