Файловый менеджер - Редактировать - /home/lmsyaran/public_html/joomla5/administrator/components/com_fabrik/views/visualizations/view.html.php
Назад
<?php /** * View class for a list of visualizations. * * @package Joomla.Administrator * @subpackage Fabrik * @copyright Copyright (C) 2005-2020 Media A-Team, Inc. - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Pagination\Pagination; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; jimport('joomla.application.component.view'); /** * View class for a list of visualizations. * * @package Joomla.Administrator * @subpackage Fabrik * @since 3.0 */ class FabrikAdminViewVisualizations extends HtmlView { /** * Visualization items * * @var array */ protected $items; /** * Pagination * * @var Pagination */ protected $pagination; /** * View state * * @var object */ protected $state; public $filterForm; /** * Display the view * * @param string $tpl Template * * @return void */ public function display($tpl = null) { // Initialise variables. $app = Factory::getApplication(); $input = $app->input; $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->filterForm = $this->get('FilterForm'); // print_r($this->filterForm);exit;// null $this->activeFilters = $this->get('ActiveFilters'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new RuntimeException(implode("\n", $errors), 500); } $this->table_groups = $this->get('TableGroups'); FabrikAdminHelper::setViewLayout($this); $this->addToolbar(); // $this->filterbar = JHtmlSidebar::render(); FabrikHelperHTML::iniRequireJS(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void */ protected function addToolbar() { require_once JPATH_COMPONENT . '/helpers/fabrik.php'; $canDo = FabrikAdminHelper::getActions($this->state->get('filter.category_id')); ToolBarHelper::title(Text::_('COM_FABRIK_MANAGER_VISUALIZATIONS'), 'chart'); if ($canDo->get('core.create')) { ToolBarHelper::addNew('visualization.add', 'JTOOLBAR_NEW'); } if ($canDo->get('core.edit')) { ToolBarHelper::editList('visualization.edit', 'JTOOLBAR_EDIT'); } if ($canDo->get('core.edit.state')) { if ($this->state->get('filter.state') != 2) { ToolBarHelper::divider(); ToolBarHelper::custom('visualizations.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true); ToolBarHelper::custom('visualizations.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true); } } if (Factory::getUser()->authorise('core.manage', 'com_checkin')) { ToolBarHelper::custom('visualizations.checkin', 'checkin.png', 'checkin_f2.png', 'JTOOLBAR_CHECKIN', true); } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { ToolBarHelper::deleteList('', 'visualizations.delete', 'JTOOLBAR_EMPTY_TRASH'); } elseif ($canDo->get('core.edit.state')) { ToolBarHelper::trash('visualizations.trash', 'JTOOLBAR_TRASH'); } if ($canDo->get('core.admin')) { ToolBarHelper::divider(); ToolBarHelper::preferences('com_fabrik'); } ToolBarHelper::divider(); ToolBarHelper::help('JHELP_COMPONENTS_FABRIK_VISUALIZATIONS', false, Text::_('JHELP_COMPONENTS_FABRIK_VISUALIZATIONS')); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка