Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_helpdeskpro/Model/Fields.php
Назад
<?php /** * @version 4.3.0 * @package Joomla * @subpackage Helpdesk Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2013 - 2021 Ossolution Team * @license GNU/GPL, see LICENSE.php */ namespace OSSolution\HelpdeskPro\Admin\Model; use OSL\Model\ListModel; defined('_JEXEC') or die; class Fields extends ListModel { /** * Initialize the model, add new states */ protected function initialize() { $this->state->insert('filter_category_id', 'int', 0); } /** * Build the query object which is used to get list of records from database * * @return \JDatabaseQuery */ protected function buildListQuery() { $query = parent::buildListQuery(); if ($this->state->filter_category_id > 0) { $query->where('(tbl.category_id=-1 OR tbl.id IN (SELECT field_id FROM #__helpdeskpro_field_categories WHERE category_id=' . (int) $this->state->category_id . '))'); } return $query; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка