Source for file manage.php

Documentation is available at manage.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_installer
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * @package     Joomla.Administrator
  14.  * @subpackage  com_installer
  15.  * @since       2.5
  16.  */
  17. abstract class InstallerHtmlManage
  18. {
  19.     /**
  20.      * Returns a published state on a grid
  21.      *
  22.      * @param   integer       $value            The state value.
  23.      * @param   integer       $i                The row index
  24.      * @param   boolean       $enabled            An optional setting for access control on the action.
  25.      * @param   string        $checkbox            An optional prefix for checkboxes.
  26.      *
  27.      * @return  string        The Html code
  28.      *
  29.      * @see JHtmlJGrid::state
  30.      *
  31.      * @since   2.5
  32.      */
  33.     public static function state($value$i$enabled true$checkbox 'cb')
  34.     {
  35.         $states    array(
  36.             2    => array(
  37.                 '',
  38.                 'COM_INSTALLER_EXTENSION_PROTECTED',
  39.                 '',
  40.                 'COM_INSTALLER_EXTENSION_PROTECTED',
  41.                 true,
  42.                 'protected',
  43.                 'protected'
  44.             ),
  45.             1    => array(
  46.                 'unpublish',
  47.                 'COM_INSTALLER_EXTENSION_ENABLED',
  48.                 'COM_INSTALLER_EXTENSION_DISABLE',
  49.                 'COM_INSTALLER_EXTENSION_ENABLED',
  50.                 true,
  51.                 'publish',
  52.                 'publish'
  53.             ),
  54.             0    => array(
  55.                 'publish',
  56.                 'COM_INSTALLER_EXTENSION_DISABLED',
  57.                 'COM_INSTALLER_EXTENSION_ENABLE',
  58.                 'COM_INSTALLER_EXTENSION_DISABLED',
  59.                 true,
  60.                 'unpublish',
  61.                 'unpublish'
  62.             ),
  63.         );
  64.  
  65.         return JHtml::_('jgrid.state'$states$value$i'manage.'$enabledtrue$checkbox);
  66.     }
  67. }

Documentation generated on Tue, 19 Nov 2013 15:07:32 +0100 by phpDocumentor 1.4.3