1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31:
<?php
class AjaxCommentsDisplayController extends AbstractCommentsController
{
public function execute(HTTPRequestCustom $request)
{
parent::execute($request);
$view = CommentsService::display_comments($this->get_module_id(), $this->get_id_in_module(), $this->get_topic_identifier(),
$this->get_number_comments_display(), $this->get_authorizations(), true);
return new SiteNodisplayResponse($view);
}
private function get_number_comments_display()
{
return !empty($this->provider) ? $this->provider->get_number_comments_display() : 0;
}
}
?>