/** * returns user object from standard parameter from request * * @return Pap_Common_Banner * @throws Gpf_Exception */ protected function getBannerFromParameter(Pap_Contexts_Tracking $context) { $id = $context->getBannerId(); if($id == '') { $message = 'Banner id not found in parameter'; $context->debug($message); throw new Pap_Tracking_Exception($message); } $context->debug("Getting banner from request parameter. Banner Id: ".$id); return $this->getBannerById($context, $id); }