Example #1
0
 public function encodeBody($raw)
 {
     $this->body_raw = $raw;
     $body = NoteTable::cleanBody($raw);
     $body = NoteTable::renderUrls($body);
     $body = NoteTable::renderRecords($body);
     $body = NoteTable::renderUsers($body);
     $this->body = $body;
     $this->encodeUsers($raw);
     $this->encodeRecords($raw);
     foreach (array('alerted_user_names', 'alerted_user_ids', 'entity_ids', 'relationship_ids', 'lslist_ids', 'sfguardgroup_ids') as $field) {
         $tmp = '_' . $field;
         $this->{$field} = NoteTable::serialize($this->{$tmp});
     }
 }