Source for file registrationdaterange.php

Documentation is available at registrationdaterange.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 = 'RegistrationDateRange';
  29.  
  30.     /**
  31.      * Available options
  32.      *
  33.      * @var  array 
  34.      * @since  3.2
  35.      */
  36.     protected $predefinedOptions = array(
  37.         'today'       => 'COM_USERS_OPTION_RANGE_TODAY',
  38.         'past_week'   => 'COM_USERS_OPTION_RANGE_PAST_WEEK',
  39.         'past_1month' => 'COM_USERS_OPTION_RANGE_PAST_1MONTH',
  40.         'past_3month' => 'COM_USERS_OPTION_RANGE_PAST_3MONTH',
  41.         'past_6month' => 'COM_USERS_OPTION_RANGE_PAST_6MONTH',
  42.         'past_year'   => 'COM_USERS_OPTION_RANGE_PAST_YEAR',
  43.         'post_year'   => 'COM_USERS_OPTION_RANGE_POST_YEAR',
  44.     );
  45.  
  46.     /**
  47.      * Method to instantiate the form field object.
  48.      *
  49.      * @param   JForm  $form  The form to attach to the form field object.
  50.      *
  51.      * @since   11.1
  52.      */
  53.     public function __construct($form null)
  54.     {
  55.         parent::__construct($form);
  56.  
  57.         // Load the required language
  58.         $lang JFactory::getLanguage();
  59.         $lang->load('com_users'JPATH_ADMINISTRATOR);
  60.     }
  61. }

Documentation generated on Tue, 19 Nov 2013 15:11:43 +0100 by phpDocumentor 1.4.3