コード例 #1
0
ファイル: Journal.inc.php プロジェクト: alcexhim/PhoenixSNS
 public static function GetByAssoc($values)
 {
     $comment = new JournalEntryComment();
     $comment->ID = $values["comment_id"];
     $comment->ParentComment = JournalEntryComment::GetByID($values["comment_parent_id"]);
     $comment->Author = User::GetByID($values["author_id"]);
     $comment->ParentJournalEntry = JournalEntry::GetByID($values["journal_entry_id"]);
     $comment->Title = $values["comment_title"];
     $comment->Content = $values["comment_content"];
     $comment->TimestampCreated = $values["comment_timestamp_created"];
     return $comment;
 }