CoreFiles by mySites.guru
ImagelistField.php43 lines, 969 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
959326866251fd8552483409c748b28b
sha1
98af4fad020f8ee7c899788df664d162443d8a8d
sha256
defec5deae3ebdee6ca8e3f75faebb0419d4b468e7bc1b7cb21735a5964ab510
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Field;

/**
 * Supports an HTML select list of image
 *
 * @since  1.7.0
 */
class ImagelistField extends FilelistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  1.7.0
     */
    protected $type = 'Imagelist';

    /**
     * Method to get the list of images field options.
     * Use the filter attribute to specify allowable file extensions.
     *
     * @return  array  The field option objects.
     *
     * @since   1.7.0
     */
    protected function getOptions()
    {
        // Define the image file type filter.
        $this->fileFilter = '\.png$|\.gif$|\.jpg$|\.bmp$|\.ico$|\.jpeg$|\.psd$|\.eps$';

        // Get the field options.
        return parent::getOptions();
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.