CoreFiles by mySites.guru
RedirectStatusField.php44 lines, 874 bytes, from Joomla_4.3.4-Stable-Full_Package.zip
Raw History Compare with 4.3.3
md5
77bad3db1d8d5199e25b9058faf5586b
sha1
f758b572348d8a4ebd12d231e38762f086a35200
sha256
5c068ba2bf559b69add38232bf5402f50280c76e18b281efa00ed8962ad057ff
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2017 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;

// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Redirect Status field.
 *
 * @since  3.8.0
 */
class RedirectStatusField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.8.0
     */
    public $type = 'Redirect_Status';

    /**
     * Available statuses
     *
     * @var  array
     * @since  3.8.0
     */
    protected $predefinedOptions = [
        '-2' => 'JTRASHED',
        '0'  => 'JDISABLED',
        '1'  => 'JENABLED',
        '2'  => 'JARCHIVED',
        '*'  => 'JALL',
    ];
}

The same content is in 22 releases, Joomla 4.2.7-rc1 to 4.3.4. See them all, or every version of this file.