コード例 #1
0
 /**
  * @param ENTRY $entry
  * @param integer $state
  * @param string $title
  * @param integer $owner_id
  * @access private
  */
 protected function _add_comment($entry, $state, $title, $owner_id)
 {
     $this->_log("Adding comment [{$title}]...");
     $comment = $entry->new_comment(0);
     $comment->title = $title;
     $comment->state = $state;
     $comment->store();
     $comment->owner_id = $owner_id;
     $comment->store();
 }