/** * Method to load a form field object given a type. * * @param string $type The field type. * @param boolean $new Flag to toggle whether we should get a new instance of the object. * * @return mixed GantryFormField object on success, false otherwise. * @since 1.6 */ protected function loadFieldType($type, $new = true) { return GantryFormHelper::loadFieldType($type, $new); }
<?php /** * @version $Id: filelist.php 2325 2012-08-13 17:46:48Z btowles $ * @package Joomla.Framework * @subpackage Form * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; jimport('joomla.html.html'); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); jimport('joomla.form.formfield'); jimport('joomla.form.helper'); GantryFormHelper::loadFieldType('list'); /** * Supports an HTML select list of file * * @package Joomla.Framework * @subpackage Form * @since 1.6 */ class GantryFormFieldFileList extends GantryFormFieldSelectBox { /** * The form field type. * * @var string * @since 1.6 */