Example #1
0
 function process_dreams()
 {
     foreach ($this->results as &$dream) {
         $dream->content = find_links($dream->content);
         $dream->content = find_at_user($dream->content);
         $dream->smart_timestamp = smart_timestamp($dream->created_at);
         $dream->iso_timestamp = date("c", $dream->created_at);
         $dream->full_timestamp = date("l, F j, Y \\a\\t g:ia", $dream->created_at);
         $dream->date_for = date("l", $dream->created_at);
         $dream->user_liked = $this->Comment_Model->user_liked($this->user->data->user_id, $dream->dream_id);
         //$dream->likes = $this->Comment_Model->get_likes($dream->dream_id);
     }
 }
Example #2
0
 function process_comments()
 {
     foreach ($this->comments as &$comment) {
         $comment->content = find_links($comment->content);
         $comment->content = find_at_user($comment->content);
         $comment->smart_timestamp = smart_timestamp($comment->created_at);
         $comment->iso_timestamp = date("c", $comment->created_at);
         $comment->full_timestamp = date("l, F j, Y \\a\\t g:ia", $comment->created_at);
     }
 }