/** * Constructor * * @return */ public function __construct($args) { parent::__construct($args); $this->_root = $this->_ticket->getRootOfBranch(); if (is_object($this->_root->state())) { $this->_can['reply'] = $this->_root->state()->can('reply'); } else { M('Trace')->trace('ticket_null', 'Warning! State of root ticket cannot be null! TICKET: ' . $this->_ticket->id() . ' ROOT: ' . $this->_root->id()); } }
/** * @see RM_Ticket_Facade::markAsUnread */ public function markAsUnread(RM_Account_iUser $obUser, RM_Ticket_Object $obTicket) { $this->_dbh->exec("INSERT IGNORE INTO " . $this->_tables['new'] . " (ticket_id, user_id) VALUES (?, ?)", $obTicket->id(), $obUser->id()); }