Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_jea/views/featurelist/view.html.php
Назад
<?php /** * This file is part of Joomla Estate Agency - Joomla! extension for real estate agency * * @package Joomla.Administrator * @subpackage com_jea * @copyright Copyright (C) 2008 - 2020 PHILIP Sylvain. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\String\StringHelper; /** * View to manage a feature list. * * @package Joomla.Administrator * @subpackage com_jea * * @since 2.0 */ class JeaViewFeaturelist extends JViewLegacy { /** * The user object * * @var JUser */ protected $user; /** * Array of database records * * @var Jobject[] */ protected $items; /** * The pagination object * * @var JPagination */ protected $pagination; /** * The model state * * @var Jobject */ protected $state; /** * The sidebar output * * @var string */ protected $sidebar = ''; /** * The form object for search filters * * @var JForm */ public $filterForm; /** * The active search filters * * @var array */ public $activeFilters; /** * Overrides parent method. * * @param string $tpl The name of the template file to parse. * * @return mixed A string if successful, otherwise an Error object. * * @see JViewLegacy::display() */ public function display($tpl = null) { JeaHelper::addSubmenu('features'); $this->user = JFactory::getUser(); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->sidebar = JHtmlSidebar::render(); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void */ protected function addToolbar() { $canDo = JeaHelper::getActions(); $feature = $this->state->get('feature.name'); JToolBarHelper::title(JText::_(StringHelper::strtoupper("com_jea_list_of_{$feature}_title")), 'jea'); if ($canDo->get('core.create')) { JToolBarHelper::addNew('feature.add'); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('feature.edit'); } if ($canDo->get('core.delete')) { JToolBarHelper::divider(); JToolBarHelper::deleteList(JText::_('COM_JEA_MESSAGE_CONFIRM_DELETE'), 'featurelist.delete'); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка