Example #1
0
 public function getInbox()
 {
     if ($this->_inbox === null) {
         $inbox = new Default_Model_Messages();
         $inbox->filter->orderBy('senton DESC');
         $inbox->filter->receiverid->equals($this->id);
         $this->_inbox = $inbox->refresh();
     }
     return $this->_inbox;
 }
Example #2
0
 public function delmsgAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
     $ms = new Default_Model_Messages();
     $ms->filter->id->equals($_POST['msgid']);
     $ms->refresh()->remove(0);
 }