CoreFiles by mySites.guru
RedirectStatusField.php44 lines, 879 bytes, from Joomla_4.2.4-Stable-Full_Package.zip
Raw History Compare with 4.2.3
md5
84eecb98efabc5312f6db13a99224573
sha1
afac8dfa185829cb6202ae5c8cf7059fafcd60db
sha256
c7f0bbd19b901f23ec8b0a31f4967b7c7bbc3844afe3059fdf4ddb13f920507c
<?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 = array(
        '-2' => 'JTRASHED',
        '0'  => 'JDISABLED',
        '1'  => 'JENABLED',
        '2'  => 'JARCHIVED',
        '*'  => 'JALL',
    );
}

The same content is in 11 releases, Joomla 4.2.1 to 4.3.0-alpha2. See them all, or every version of this file.