Example #1
0
 private function onReply(Module_Comments $mod_c, GWF_News $news, GWF_Comments $comments)
 {
     $ipp = 10;
     $nItems = $comments->getVar('cmts_count');
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     $page = Common::clamp(Common::getGetInt('cpage'), 1, $nPages);
     $href = GWF_WEB_ROOT . 'news-comments-' . $news->getID() . '-' . $news->displayTitle() . '-page-' . $page . '.html';
     $me = $mod_c->getMethod('Reply');
     $me instanceof Comments_Reply;
     return $me->onReply($href);
 }
Example #2
0
 public function onStartup()
 {
     self::$INSTANCE = $this;
 }
Example #3
0
 public function displayReplyForm($href = NULL)
 {
     $module = Module_Comments::instance();
     $reply = $module->getMethod('Reply');
     $reply instanceof Comments_Reply;
     $_POST['cmt_id'] = 0;
     $_POST['cmts_id'] = $this->getID();
     return $reply->templateReply($href);
 }