Ejemplo n.º 1
0
 public function init()
 {
     $this->pluginOptions = array_merge($this->pluginOptions, ['alias' => 'decimal', 'integerDigits' => $this->size - $this->scale, 'digits' => $this->scale, 'allowMinus' => !$this->unsigned, 'allowPlus' => $this->allowPlus, 'rightAlign' => $this->rightAlign, 'digitsOptional' => $this->digitsOptional]);
     parent::init();
 }
Ejemplo n.º 2
0
 public function init()
 {
     $this->pluginOptions = array_merge($this->pluginOptions, ['alias' => 'integer', 'integerDigits' => $this->unsigned ? $this->size : $this->size - 1, 'allowMinus' => !$this->unsigned, 'allowPlus' => $this->allowPlus, 'rightAlign' => $this->rightAlign]);
     parent::init();
 }