/**
  * Returns an input field.
  *
  * @param string $name
  * @param null|string $title
  * @param string $value
  */
 public function __construct($name, $title = null, $value = '')
 {
     if (count(func_get_args()) > 3) {
         Deprecation::notice('3.0', 'Use setMaxLength() instead of constructor arguments', Deprecation::SCOPE_GLOBAL);
     }
     parent::__construct($name, $title, $value);
 }
 public function __construct($name, $title = null, $value = "")
 {
     if (!$this->locale) {
         $this->locale = i18n::get_locale();
     }
     $this->config = $this->config()->default_config;
     if (!$this->getConfig('timeformat')) {
         $this->setConfig('timeformat', i18n::config()->get('time_format'));
     }
     parent::__construct($name, $title, $value);
 }
 public function __construct($name, $title = null, $value = null)
 {
     if (!$this->locale) {
         $this->locale = i18n::get_locale();
     }
     $this->config = $this->config()->default_config;
     if (!$this->getConfig('dateformat')) {
         $this->setConfig('dateformat', i18n::config()->get('date_format'));
     }
     foreach ($this->config()->default_config as $defaultK => $defaultV) {
         if ($defaultV) {
             if ($defaultK == 'locale') {
                 $this->locale = $defaultV;
             } else {
                 $this->setConfig($defaultK, $defaultV);
             }
         }
     }
     parent::__construct($name, $title, $value);
 }