primo commit
This commit is contained in:
		
							
								
								
									
										34
									
								
								components/com_jem/models/fields/countryoptions.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								components/com_jem/models/fields/countryoptions.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('JPATH_BASE') or die; | ||||
|  | ||||
| use Joomla\CMS\Form\Field\ListField; | ||||
| use Joomla\CMS\Form\FormHelper; | ||||
|  | ||||
| FormHelper::loadFieldClass('list'); | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * CountryOptions Field class | ||||
|  */ | ||||
| class JFormFieldCountryOptions extends ListField | ||||
| { | ||||
| 	/** | ||||
| 	 * The form field type. | ||||
| 	 */ | ||||
| 	protected $type = 'CountryOptions'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Method to get the Country options. | ||||
| 	 */ | ||||
| 	public function getOptions() | ||||
| 	{ | ||||
| 		return JemHelper::getCountryOptions(); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user