CoreFiles by mySites.guru
RedirectStatusField.php44 lines, 799 bytes, from Joomla_3.8.3-Stable-Full_Package.zip
Raw History Compare with 3.8.2
md5
b7253a26f47d30c63730282c56b1803a
sha1
b90079618e2f2ec0d7e4665faba7fbb9230ed9f7
sha256
f76562e1f84f13052b5e9614c471b0a37a15704f4b378ffacaf4fb825b01cecf
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Field;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Form\FormHelper;

FormHelper::loadFieldClass('predefinedlist');

/**
 * Redirect Status field.
 *
 * @since  3.8.0
 */
class RedirectStatusField extends \JFormFieldPredefinedList
{
	/**
	 * 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',
		'*'  => 'JALL',
	);
}

The same content is in 12 releases, Joomla 3.8.0-beta2 to 4.0.0-alpha2. See them all, or every version of this file.