CoreFiles by mySites.guru
RedirectStatusField.php44 lines, 868 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
6a3fbe3fc743a423313a988bf5c68cd4
sha1
a5aba81491519e849f47f3b5efbbd12c6903b80b
sha256
7f9e20f51e304cc71622fe663d9c8ea12e3f38ae7fbd228763d5e7f93fc6615c
<?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('_JEXEC') 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 = 'RedirectStatus';

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

The same content is in 153 releases, Joomla 5.0.0-alpha3 to 6.2.1-rc1. See them all, or every version of this file.