Prado\I18N\TNumberFormat::setType PHP Метод

setType() публичный Метод

Set the formatting type for this control.
public setType ( $type )
    public function setType($type)
    {
        $type = strtolower($type);
        switch ($type) {
            case 'decimal':
                $this->setViewState('Type', 'd', '');
                break;
            case 'currency':
                $this->setViewState('Type', 'c', '');
                break;
            case 'percentage':
                $this->setViewState('Type', 'p', '');
                break;
            case 'scientific':
                $this->setViewState('Type', 'e', '');
                break;
            default:
                throw new TInvalidDataValueException('numberformat_type_invalid', $type);
        }
    }