public function ViewMessage() { $pn_communication_id = $this->request->getParameter('communication_id', pInteger); $t_comm = new ca_commerce_communications($pn_communication_id); if ($t_comm->haveAccessToMessage($this->request->getUserID())) { $this->view->setVar('message', $t_comm); $t_comm->logRead($this->request->getUserID()); } else { $this->view->setVar('message', null); } $this->render('view_communication_html.php'); }