1 <?php
2 3 4 5 6 7 8
9
10 defined('JPATH_PLATFORM') or die;
11
12 JFormHelper::loadFieldClass('predefinedlist');
13
14 15 16 17 18
19 class JFormFieldRegistrationDateRange extends JFormFieldPredefinedList
20 {
21 22 23 24 25 26
27 protected $type = 'RegistrationDateRange';
28
29 30 31 32 33 34
35 protected $predefinedOptions = array(
36 'today' => 'COM_USERS_OPTION_RANGE_TODAY',
37 'past_week' => 'COM_USERS_OPTION_RANGE_PAST_WEEK',
38 'past_1month' => 'COM_USERS_OPTION_RANGE_PAST_1MONTH',
39 'past_3month' => 'COM_USERS_OPTION_RANGE_PAST_3MONTH',
40 'past_6month' => 'COM_USERS_OPTION_RANGE_PAST_6MONTH',
41 'past_year' => 'COM_USERS_OPTION_RANGE_PAST_YEAR',
42 'post_year' => 'COM_USERS_OPTION_RANGE_POST_YEAR',
43 );
44
45 46 47 48 49 50 51
52 public function __construct($form = null)
53 {
54 parent::__construct($form);
55
56
57 $lang = JFactory::getLanguage();
58 $lang->load('com_users', JPATH_ADMINISTRATOR);
59 }
60 }
61