public function executeDelete() { $this->ticket_id = $this->getRequestParameter('id'); $ticket = sfTicketPeer::retrieveByPK($this->ticket_id); $ticket->setsfTicketStatusId(2); // ticket is closed $ticket->save(); return $this->redirect('sfSupportAdmin'); }
public function executeReply() { $this->ticket_id = $this->getRequestParameter('id'); $this->ticket = sfTicketPeer::retrieveByPK($this->ticket_id); $this->threads = $this->ticket->getsfTicketThreads(); }
public function getsfTicket($con = null) { if ($this->asfTicket === null && $this->sf_ticket_id !== null) { include_once 'plugins/sfSupportPlugin/lib/model/om/BasesfTicketPeer.php'; $this->asfTicket = sfTicketPeer::retrieveByPK($this->sf_ticket_id, $con); } return $this->asfTicket; }