0byt3m1n1
Path:
/
data
/
49
/
4
/
11
/
84
/
4826899
/
user
/
5715128
/
htdocs
/
mtsmoved
/
libraries
/
cms
/
form
/
field
/
[
Home
]
File: useractive.php
<?php /** * @package Joomla.Libraries * @subpackage Form * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_PLATFORM') or die; JFormHelper::loadFieldClass('predefinedlist'); /** * Field to show a list of available user active statuses * * @package Joomla.Libraries * @subpackage Form * @since 3.2 */ class JFormFieldUserActive extends JFormFieldPredefinedList { /** * The form field type. * * @var string * @since 3.2 */ protected $type = 'UserActive'; /** * Available statuses * * @var array * @since 3.2 */ protected $predefinedOptions = array( '0' => 'COM_USERS_ACTIVATED', '1' => 'COM_USERS_UNACTIVATED' ); /** * Method to instantiate the form field object. * * @param JForm $form The form to attach to the form field object. * * @since 11.1 */ public function __construct($form = null) { parent::__construct($form); // Load the required language $lang = JFactory::getLanguage(); $lang->load('com_users', JPATH_ADMINISTRATOR); } }