Source for file useractive.php

Documentation is available at useractive.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  Form
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('JPATH_BASE'or die;
  11.  
  12. JFormHelper::loadFieldClass('predefinedlist');
  13.  
  14. /**
  15.  * Field to show a list of available user active statuses
  16.  *
  17.  * @package     Joomla.Libraries
  18.  * @subpackage  Form
  19.  * @since       3.2
  20.  */
  21. {
  22.     /**
  23.      * The form field type.
  24.      *
  25.      * @var        string 
  26.      * @since   3.2
  27.      */
  28.     protected $type = 'UserActive';
  29.  
  30.     /**
  31.      * Available statuses
  32.      *
  33.      * @var  array 
  34.      * @since  3.2
  35.      */
  36.     protected $predefinedOptions = array(
  37.         '0'  => 'COM_USERS_ACTIVATED',
  38.         '1'  => 'COM_USERS_UNACTIVATED'
  39.     );
  40.  
  41.     /**
  42.      * Method to instantiate the form field object.
  43.      *
  44.      * @param   JForm  $form  The form to attach to the form field object.
  45.      *
  46.      * @since   11.1
  47.      */
  48.     public function __construct($form null)
  49.     {
  50.         parent::__construct($form);
  51.  
  52.         // Load the required language
  53.         $lang JFactory::getLanguage();
  54.         $lang->load('com_users'JPATH_ADMINISTRATOR);
  55.     }
  56. }

Documentation generated on Tue, 19 Nov 2013 15:16:34 +0100 by phpDocumentor 1.4.3