示例#1
0
 private function save_note($post)
 {
     $note = new Model_Note();
     $note_data = array_filter($this->parse_post_data($post));
     $note->values($note_data, array_keys($note_data));
     try {
         $note->save();
         Notifications::factory()->new_note($note->reload());
     } catch (Exception $exc) {
         return false;
     }
     return true;
 }