Example #1
0
 public function number_of_new_mail()
 {
     if (is_null($this->_number_of_new_mail)) {
         $this->_number_of_new_mail = Model_Mail::number_of_unread_mail_for_user($this->user_id);
     }
     return $this->_number_of_new_mail;
 }