[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Form\Field; 11 12 use Joomla\CMS\Factory; 13 use Joomla\CMS\Form\Form; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('JPATH_PLATFORM') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Field to show a list of available user active statuses 21 * 22 * @since 3.2 23 */ 24 class UseractiveField extends PredefinedlistField 25 { 26 /** 27 * The form field type. 28 * 29 * @var string 30 * @since 3.2 31 */ 32 protected $type = 'UserActive'; 33 34 /** 35 * Available statuses 36 * 37 * @var array 38 * @since 3.2 39 */ 40 protected $predefinedOptions = array( 41 '0' => 'COM_USERS_ACTIVATED', 42 '1' => 'COM_USERS_UNACTIVATED', 43 ); 44 45 /** 46 * Method to instantiate the form field object. 47 * 48 * @param Form $form The form to attach to the form field object. 49 * 50 * @since 1.7.0 51 */ 52 public function __construct($form = null) 53 { 54 parent::__construct($form); 55 56 // Load the required language 57 $lang = Factory::getLanguage(); 58 $lang->load('com_users', JPATH_ADMINISTRATOR); 59 } 60 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |