| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nice2/components/com_jlexreview/views/comments/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 4.2.3
* @copyright Copyright (c) 2013-2018 JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined ( "_JEXEC" ) or die;
class JLexReviewViewComments extends JViewLegacy
{
protected $comments = null;
protected $cm = null;
protected $config = null;
protected $user = null;
public function render()
{
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->user = JLexReviewHelperSite::getProfile()->getUser();
$this->config = JLexReviewHelperAdmin::getConfig();
$model = $this->getModel( "comments" );
$rid = $app->input->getInt("rid", 0);
$pid = $app->input->getInt("pid", 0);
$offset = $app->input->getInt("offset", 0);
$wrap = $app->input->getBool("wrap", false);
$time_limit = $app->input->getInt("tl", 0);
$time_offset = $app->input->getInt("to", 0);
if ($rid < 1)
{
return null;
}
$pid = $pid > 0 ? $pid : 0;
$offset = $offset > 0 ? $offset : 0;
$model->set( "rid", $rid );
$model->set( "hl", 0);
$model->set( "limitstart", $offset);
$model->set( "timestamp", $time_limit);
$model->set( "timestamp_offset", $time_offset);
$this->comments = $model->getComments( $pid );
$this->comments->wrap = $wrap;
if (!$this->comments->comments)
{
return null;
}
return parent::loadTemplate( "comments" );
}
public function getCountCm()
{
return !empty($this->comments->comments) ? count($this->comments->comments) : 0;
}
}