[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_installer 6 * 7 * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Installer\Administrator\Service\HTML; 12 13 use Joomla\CMS\HTML\HTMLHelper; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Installer HTML class. 21 * 22 * @since 3.5 23 */ 24 class Updatesites 25 { 26 /** 27 * Returns a published state on a grid. 28 * 29 * @param integer $value The state value. 30 * @param integer $i The row index. 31 * @param boolean $enabled An optional setting for access control on the action. 32 * @param string $checkbox An optional prefix for checkboxes. 33 * 34 * @return string The HTML code 35 * 36 * @see JHtmlJGrid::state() 37 * @since 3.5 38 */ 39 public function state($value, $i, $enabled = true, $checkbox = 'cb') 40 { 41 $states = array( 42 1 => array( 43 'unpublish', 44 'COM_INSTALLER_UPDATESITE_ENABLED', 45 'COM_INSTALLER_UPDATESITE_DISABLE', 46 'COM_INSTALLER_UPDATESITE_ENABLED', 47 true, 48 'publish', 49 'publish', 50 ), 51 0 => array( 52 'publish', 53 'COM_INSTALLER_UPDATESITE_DISABLED', 54 'COM_INSTALLER_UPDATESITE_ENABLE', 55 'COM_INSTALLER_UPDATESITE_DISABLED', 56 true, 57 'unpublish', 58 'unpublish', 59 ), 60 ); 61 62 return HTMLHelper::_('jgrid.state', $states, $value, $i, 'updatesites.', $enabled, true, $checkbox); 63 } 64 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |