Methods

__construct()

__construct() 

cDatatype()

cDatatype() 
Inherited
inherited_from \cDatatype::cDatatype()
inherited_from \cDatatypeNumber::cDatatype()

cDatatypeCurrency()

cDatatypeCurrency() 
deprecated [2012-01-19] use __construct instead

cDatatypeNumber()

cDatatypeNumber() 
Inherited
inherited_from \cDatatypeNumber::cDatatypeNumber()

Returns the effective value

get() : mixed
Inherited
inherited_from \cDatatypeNumber::get()

Returns

mixed

getCurrencySymbol()

getCurrencySymbol() 

getDecimalPointCharacter()

getDecimalPointCharacter() 
Inherited
inherited_from \cDatatypeNumber::getDecimalPointCharacter()

getThousandSeparatorCharacter()

getThousandSeparatorCharacter() 
Inherited
inherited_from \cDatatypeNumber::getThousandSeparatorCharacter()

Parses the given value to transfer into the datatype's format

parse(mixed $value) 
Inherited
inherited_from \cDatatypeNumber::parse()

Parameters

$value

mixed

Exceptions

\cException if the decimal separator character and the thousand separator character are equal

Renders the displayed value

render() 

Sets this datatype to a specific value

set(mixed $value) 
Inherited
inherited_from \cDatatypeNumber::set()

Parameters

$value

mixed

setCurrencySymbol()

setCurrencySymbol($sSymbol) 

Parameters

$sSymbol

setCurrencySymbolLocation()

setCurrencySymbolLocation($cLocation) 

Parameters

$cLocation

Exceptions

\cInvalidArgumentException if the given location is not one of the constants cDatatypeCurrency::LEFT and cDatatypeCurrency::RIGHT

setDecimalPointCharacter()

setDecimalPointCharacter($sCharacter) 
Inherited
inherited_from \cDatatypeNumber::setDecimalPointCharacter()

Parameters

$sCharacter

setPrecision()

setPrecision($iPrecision) 
Inherited
inherited_from \cDatatypeNumber::setPrecision()

Parameters

$iPrecision

setThousandSeparatorCharacter()

setThousandSeparatorCharacter($sCharacter) 
Inherited
inherited_from \cDatatypeNumber::setThousandSeparatorCharacter()

Parameters

$sCharacter

 Properties

 

$_cCurrencyLocation 
 

$_iPrecision 
Inherited
inherited_from \cDatatypeNumber::$$_iPrecision
 

$_mDisplayedValue 
Inherited
inherited_from \cDatatype::$$_mDisplayedValue
inherited_from \cDatatypeNumber::$$_mDisplayedValue
 

$_mValue 
Inherited
inherited_from \cDatatype::$$_mValue
inherited_from \cDatatypeNumber::$$_mValue
 

$_sCurrencySymbol 
 

$_sDecimalPointCharacter 
Inherited
inherited_from \cDatatypeNumber::$$_sDecimalPointCharacter
 

$_sThousandSeparatorCharacter 
Inherited
inherited_from \cDatatypeNumber::$$_sThousandSeparatorCharacter

 Constants

 

LEFT

LEFT 
 

RIGHT

RIGHT