Source for file select.php

Documentation is available at select.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_joomlaupdate
  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.  * Joomla! update selection list helper.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_joomlaupdate
  17.  * @since       2.5.4
  18.  */
  19. {
  20.     /**
  21.      * Returns an HTML select element with the different extraction modes
  22.      *
  23.      * @param   string  $default  The default value of the select element
  24.      *
  25.      * @return  string 
  26.      *
  27.      * @since   2.5.4
  28.      */
  29.     public static function getMethods($default 'direct')
  30.     {
  31.         $options array();
  32.         $options[JHtml::_('select.option''direct'JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_METHOD_DIRECT'));
  33.         $options[JHtml::_('select.option''ftp'JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_METHOD_FTP'));
  34.  
  35.         return JHtml::_('select.genericlist'$options'method''''value''text'$default'extraction_method');
  36.     }
  37. }

Documentation generated on Tue, 19 Nov 2013 15:12:47 +0100 by phpDocumentor 1.4.3