Back to RegistrationdaterangeField class

Method __construct

public
__construct
(mixed $form = null)
Method to instantiate the form field object.
Parameters
  • \Joomla\CMS\Form\Form $form The form to attach to the form field object.
Since
  • 1.7.0

Method __construct - Source code

/**
 * Method to instantiate the form field object.
 *
 * @param   Form  $form  The form to attach to the form field object.
 *
 * @since   1.7.0
 */
public function __construct($form = null)
{
    parent::__construct($form);
    // Load the required language
    $lang = Factory::getLanguage();
    $lang->load('com_users', JPATH_ADMINISTRATOR);
}