CoreFiles by mySites.guru
folder.php44 lines, 864 bytes, from Joomla_3.6.0-Stable-Full_Package.zip
Raw History Compare with 3.5.1
md5
56cc846bfc6595cd611ba9638d127d55
sha1
9db9e8da48abf42374cb843469a9092e9c3532f7
sha256
966dcbb89e887c2ef5b46f2871ba2a674f51ee529bb8e1225156988b815280e8
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JFormHelper::loadFieldClass('list');

require_once __DIR__ . '/../../helpers/installer.php';

/**
 * Folder Field class for the Joomla Framework.
 *
 * @since  3.5
 */
class JFormFieldFolder extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.5
	 */
	protected $type = 'Folder';

	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   3.5
	 */
	public function getOptions()
	{
		$options = InstallerHelper::getExtensionGroupes();

		return array_merge(parent::getOptions(), $options);
	}
}

The same content is in 18 releases, Joomla 3.5.0-beta2 to 3.6.0. See them all, or every version of this file.