Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Source for file TNumeric.php

Documentation is available at TNumeric.php

  1. <?php
  2. namespace Adianti\Widget\Form;
  3.  
  4. use Adianti\Widget\Form\AdiantiWidgetInterface;
  5. use Adianti\Widget\Form\TEntry;
  6.  
  7. /**
  8.  * Numeric Widget
  9.  *
  10.  * @version    7.4
  11.  * @package    widget
  12.  * @subpackage form
  13.  * @author     Pablo Dall'Oglio
  14.  * @copyright  Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
  15.  * @license    http://www.adianti.com.br/framework-license
  16.  */
  17. class TNumeric extends TEntry implements AdiantiWidgetInterface
  18. {
  19.     public function __construct($name$decimals$decimalsSeparator$thousandSeparator$replaceOnPost true$reverse FALSE$allowNegative TRUE)
  20.     {
  21.         parent::__construct($name);
  22.         parent::setNumericMask($decimals$decimalsSeparator$thousandSeparator$replaceOnPost$reverse$allowNegative);
  23.     }
  24.  
  25.      /**
  26.      * Define input allow negative
  27.      */
  28.     public function setAllowNegative($allowNegative)
  29.     {
  30.         $this->allowNegative = $allowNegative;
  31.     }
  32. }