Files
wyczarujprezent.pl/modules/ets_reviews/controllers/admin/AdminEtsRVAnswersController.php
2024-10-28 22:14:22 +01:00

57 lines
1.6 KiB
PHP

<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
if (!defined('_PS_VERSION_'))
exit;
require_once dirname(__FILE__) . '/AdminEtsRVCommentsController.php';
class AdminEtsRVAnswersController extends AdminEtsRVCommentsController
{
public function __construct()
{
$this->qa = $this->answer = 1;
parent::__construct();
}
public function extraJSON($data = array())
{
$data = parent::extraJSON($data);
if (!isset($data['list']) || !$data['list']) {
// Process list filtering
if ($this->filter && $this->action != 'reset_filters') {
$this->processFilter();
}
$data['list'] = $this->renderList();
}
$data['qa'] = $this->qa;
$data['prop'] = 'Answer';
return $data;
}
public function initToolbarTitle()
{
parent::initToolbarTitle();
$this->toolbar_title = $this->l('Answers', 'AdminEtsRVAnswersController');
}
}