CoreFiles by mySites.guru
StatusField.php44 lines, 859 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
390a106c7c67f82729518352dcad4977
sha1
cfab9c8b0756406f07c8b73631aace0f8cd06bdb
sha256
d41c8946a1c05edff5b643870506c4070d38e2ab2c46f9be187d4587d9e90de9
<?php

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

/**
 * Form Field to load a list of states
 *
 * @since  3.2
 */
class StatusField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.2
     */
    public $type = 'Status';

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

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