CoreFiles by mySites.guru
RedirectStatusField.php44 lines, 869 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
e9ac6ebcc9943e761f1bf9b493f45042
sha1
4e529924ad0d30caa67a6e98c1b2ef52ae8b27ca
sha256
cf2dcfcdf16d97c8d95d0cdfbc95c7b113a9e1ff0c4578a9ee1041f86643a144
<?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 = 'Redirect_Status';

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

The same content is in 2 releases, Joomla 5.0.0-alpha1 to 5.0.0-alpha2. See them all, or every version of this file.