/** * Add new comment. * * @param integer $author_id * @param integer $user_id * @param string $comment * @param boolean $private * @param Model_Image $image * @return Model_Image_Comment */ public function add($author_id, $user_id = null, $comment, $private = false, $image = null) { $this->image_id = $image->id; return parent::add($author_id, $image->author_id, $comment, $private); }
/** * Add new comment. * * @param integer $author_id * @param integer $user_id * @param string $comment * @param boolean $private * @param Model_Blog_Entry $blog_entry * @return Model_Blog_Comment */ public function add($author_id, $user_id = null, $comment, $private = false, $blog_entry = null) { $this->blog_entry_id = $blog_entry->id; return parent::add($author_id, $blog_entry->author_id, $comment, $private); }