| Server IP : 104.21.84.107 / Your IP : 104.23.197.209 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/icaoc/libraries/syw/src/Field/ |
Upload File : |
<?php
/**
* @copyright Copyright (C) 2011 Simplify Your Web, Inc. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
*/
namespace SYW\Library\Field;
defined( '_JEXEC' ) or die;
use Joomla\CMS\Form\Field\ListField;
use Joomla\CMS\HTML\HTMLHelper;
class ImagelibraryselectField extends ListField
{
protected $type = 'Imagelibraryselect';
protected function getOptions() {
$options = array();
if (!extension_loaded('gd') && !extension_loaded('imagick')) {
$options[] = HTMLHelper::_('select.option', 'none', 'JNONE', 'value', 'text', $disable = false);
}
if (!extension_loaded('gd')) {
$options[] = HTMLHelper::_('select.option', 'gd', 'GD', 'value', 'text', $disable = true);
} else {
$options[] = HTMLHelper::_('select.option', 'gd', 'GD', 'value', 'text', $disable = false);
}
if (!extension_loaded('imagick')) {
$options[] = HTMLHelper::_('select.option', 'imagick', 'Imagick', 'value', 'text', $disable = true);
} else {
$options[] = HTMLHelper::_('select.option', 'imagick', 'Imagick', 'value', 'text', $disable = false);
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
}
?>