Example #1
0
 protected function initialize()
 {
     parent::initialize();
     // minValue and maxValue enstablish what range is valid
     // however, if the field is not 'required' the range is not applied
     $this->minValue = $this->optionalAttribute('minValue', false);
     $this->maxValue = $this->optionalAttribute('maxValue', false);
     $this->format = self::validateSelectedFormat($this->optionalAttribute('format', 'numeric'));
 }