Class Zend_Measure_Number

Description

Located in /Zend/Measure/Number.php (line 40)

Zend_Measure_Abstract
   |
   --Zend_Measure_Number
Class Constant Summary
 BINARY = 'Number::BINARY'
 DECIMAL = 'Number::DECIMAL'
 DUODECIMAL = 'Number::DUODECIMAL'
 HEXADECIMAL = 'Number::HEXADECIMAL'
 NONARY = 'Number::NONARY'
 OCTAL = 'Number::OCTAL'
 QUATERNARY = 'Number::QUATERNARY'
 QUINARY = 'Number::QUINARY'
 ROMAN = 'Number::ROMAN'
 SENARY = 'Number::SENARY'
 SEPTENARY = 'Number::SEPTENARY'
 STANDARD = 'Number::DECIMAL'
 TERNARY = 'Number::TERNARY'
Method Summary
 Zend_Measure_Number __construct ($value $value, [$type $type = null], [$locale $locale = null])
 boolean equals ($object $object)
 void setType ($type $type)
 void setValue ($value $value, [$type $type = null], [$locale $locale = null])
 string toString ()
 string __toString ()
Methods
Constructor __construct (line 141)

Zend_Measure_Number provides an locale aware class for conversion and formatting of number values

Zend_Measure $input can be a locale based input string or a value. $locale can be used to define that the input is made in a different language than the actual one.

  • access: public
  • throws: Zend_Measure_Exception
Zend_Measure_Number __construct ($value $value, [$type $type = null], [$locale $locale = null])
  • $value $value: mixed - Value as string, integer, real or float
  • $type $type: type - OPTIONAL a Zend_Measure_Number Type
  • $locale $locale: locale - OPTIONAL a Zend_Locale Type
equals (line 159)

Compare if the value and type is equal

  • access: public
boolean equals ($object $object)
  • $object $object: object to compare equality

Redefinition of:
Zend_Measure_Abstract::equals()
Compare if the value and type is equal
getConversionList (line 379)

Returns the conversion list

  • access: public
array getConversionList ()

Redefinition of:
Zend_Measure_Abstract::getConversionList()
Returns the conversion list
setType (line 338)

Set a new type, and convert the value

  • access: public
  • throws: Zend_Measure_Exception
void setType ($type $type)
  • $type $type: new type to set

Redefinition of:
Zend_Measure_Abstract::setType()
Sets the original type
setValue (line 177)

Set a new value

  • access: public
  • throws: Zend_Measure_Exception
void setValue ($value $value, [$type $type = null], [$locale $locale = null])
  • $value $value: mixed - Value as string, integer, real or float
  • $type $type: type - OPTIONAL a Zend_Measure_Number Type
  • $locale $locale: locale - OPTIONAL a Zend_Locale Type

Redefinition of:
Zend_Measure_Abstract::setValue()
Sets the internal value
toString (line 357)

Returns a string representation

  • access: public
string toString ()

Redefinition of:
Zend_Measure_Abstract::toString()
Returns a string representation
__toString (line 368)

Returns a string representation

  • access: public
string __toString ()

Redefinition of:
Zend_Measure_Abstract::__toString()
Returns a string representation

Inherited Methods

Inherited From Zend_Measure_Abstract

 Zend_Measure_Abstract::equals()
 Zend_Measure_Abstract::getConversionList()
 Zend_Measure_Abstract::getType()
 Zend_Measure_Abstract::getValue()
 Zend_Measure_Abstract::serialize()
 Zend_Measure_Abstract::setType()
 Zend_Measure_Abstract::setValue()
 Zend_Measure_Abstract::toString()
 Zend_Measure_Abstract::__toString()
Class Constants
BINARY = 'Number::BINARY' (line 45)
DECIMAL = 'Number::DECIMAL' (line 53)
DUODECIMAL = 'Number::DUODECIMAL' (line 54)
HEXADECIMAL = 'Number::HEXADECIMAL' (line 55)
NONARY = 'Number::NONARY' (line 52)
OCTAL = 'Number::OCTAL' (line 51)
QUATERNARY = 'Number::QUATERNARY' (line 47)
QUINARY = 'Number::QUINARY' (line 48)
ROMAN = 'Number::ROMAN' (line 56)
SENARY = 'Number::SENARY' (line 49)
SEPTENARY = 'Number::SEPTENARY' (line 50)
STANDARD = 'Number::DECIMAL' (line 43)
TERNARY = 'Number::TERNARY' (line 46)

Documentation generated on Thu, 18 Jan 2007 09:57:06 -0800 by phpDocumentor 1.3.1