Lines Matching refs:comment
88 $comment = $this->getPostedComment();
90 $this->commenthelper->save($comment);
213 … $comment = $this->commenthelper->comment_by_cid($INPUT->get->str('comment-cid'));
214 if($comment !== null) {
215 $this->htmlCommentEditForm($comment);
219 $comment = $this->getPostedComment();
221 $this->htmlCommentEditForm($comment);
222 $this->htmlCommentPreview($comment);
644 foreach($comments as $comment) {
645 $this->htmlCommentItem(new Comment($comment));
664 * @param Comment $comment A single comment
669 private function htmlCommentItem($comment) { argument
677 $cmt = new Comment($comment);
679 …t type="checkbox" class="comment_cid" name="comments-cids[]" value="' . $comment->getCid() . '" />…
683 …ptln('<div class="comment_text" title="'.$this->getLang('comment_text').'">' . hsc($comment->getTe…
685 …ass="comment_created" title="'.$this->getLang('created').'">' . dformat($comment->getCreated()) . …
686 …pan class="comment_ip" title="'.$this->getLang('comment_ip').'">' . hsc($comment->getIp()) . '</sp…
690 …if($avatar) ptln('<img src="' . $avatar . '" alt="' . hsc($comment->getName()) . '" class="avatar"…
691 if($comment->getMail()){
692 …ln('<a href="mailto:' . hsc($comment->getMail()) . '" class="mail" title="' . hsc($comment->getMai…
694 ptln(hsc($comment->getName()));
699 if($comment->getWeb()) {
700 …$weburl = '<a href="' . hsc($comment->getWeb()) . '" title="' . hsc($comment->getWeb()) . '">' . h…
704 …s="comment_status" title="'.$this->getLang('comment_status').'">' . hsc($comment->getStatus()) . '…
705 …s="comment_source" title="'.$this->getLang('comment_source').'">' . hsc($comment->getSource()) . '…
707 $this->entryhelper->load_by_pid($comment->getPid());
716 'comment-cid'=>$comment->getCid(),
727 * @param Comment $comment submitted comment
729 private function htmlCommentPreview($comment) { argument
730 $this->entryhelper->load_by_pid($comment->getPid());
736 $comment->output($blogname);
779 * @param Comment $comment
783 private function htmlCommentEditForm($comment) { argument
791 $form->addHidden('comment-cid', $comment->getCid());
792 $form->addHidden('comment-pid', $comment->getPid());
793 $form->addHidden('comment-created', $comment->getCreated());
794 …$form->addElement(form_makeListBoxField('comment-status', ['visible', 'hidden'], $comment->getStat…
796 …akeListBoxField('comment-source', ['comment', 'trackback', 'pingback'], $comment->getSource(), $th…
798 …$form->addElement(form_makeTextField('comment-name', $comment->getName(), $this->getLang('comment_…
800 …$form->addElement(form_makeTextField('comment-mail', $comment->getMail(), $this->getLang('comment_…
802 …$form->addElement(form_makeTextField('comment-web', $comment->getWeb(), $this->getLang('comment_we…
804 …$form->addElement(form_makeTextField('comment-avatar', $comment->getAvatar(), $this->getLang('comm…
806 …ent('<textarea class="edit" name="comment-text" rows="10" cols="80">' . $comment->getText() . '</t…
883 $comment = new Comment();
884 $comment->setCid($INPUT->post->str('comment-cid'));
885 $comment->setPid($INPUT->post->str('comment-pid'));
886 $comment->setCreated($INPUT->post->str('comment-created'));
887 $comment->setStatus($INPUT->post->str('comment-status'));
888 $comment->setSource($INPUT->post->str('comment-source'));
889 $comment->setName($INPUT->post->str('comment-name'));
890 $comment->setMail($INPUT->post->str('comment-mail'));
891 $comment->setWeb($INPUT->post->str('comment-web'));
892 $comment->setAvatar($INPUT->post->str('comment-avatar'));
893 $comment->setText($INPUT->post->str('comment-text'));
894 return $comment;