Class Zend_Measure_Number

Description

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Number
Class Constant Summary
 BINARY = 'BINARY'
 DECIMAL = 'DECIMAL'
 DUODECIMAL = 'DUODECIMAL'
 HEXADECIMAL = 'HEXADECIMAL'
 NONARY = 'NONARY'
 OCTAL = 'OCTAL'
 QUATERNARY = 'QUATERNARY'
 QUINARY = 'QUINARY'
 ROMAN = 'ROMAN'
 SENARY = 'SENARY'
 SEPTENARY = 'SEPTENARY'
 STANDARD = 'DECIMAL'
 TERNARY = 'TERNARY'
Variable Summary
 mixed $_UNITS
Method Summary
 Zend_Measure_Number __construct ($value $value, $type $type, [$locale $locale = null])
 void setType ($type $type)
 void setValue ($value $value, [$type $type = null], [$locale $locale = null])
Variables
mixed $_UNITS = array(
'BINARY' => array(2, '⑵'),'TERNARY'=>array(3,'⑶'),'QUATERNARY'=>array(4,'⑷'),'QUINARY'=>array(5,'⑸'),'SENARY'=>array(6,'⑹'),'SEPTENARY'=>array(7,'⑺'),'OCTAL'=>array(8,'⑻'),'NONARY'=>array(9,'⑼'),'DECIMAL'=>array(10,'⑽'),'DUODECIMAL'=>array(12,'⑿'),'HEXADECIMAL'=>array(16,'⒃'),'ROMAN'=>array(99,''),'STANDARD'=>'DECIMAL')
(line 58)
  • access: protected

Redefinition of:
Zend_Measure_Abstract::$_UNITS
Unit types for this measurement

Inherited Variables

Inherited from Zend_Measure_Abstract

Zend_Measure_Abstract::$_Locale
Zend_Measure_Abstract::$_type
Zend_Measure_Abstract::$_value
Methods
Constructor __construct (line 136)

Zend_Measure_Abstract is an abstract class for the different measurement types

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

Redefinition of:
Zend_Measure_Abstract::__construct()
Zend_Measure_Abstract is an abstract class for the different measurement types
setType (line 337)

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()
Set a new type, and convert the value
setValue (line 176)

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()
Set a new value

Inherited Methods

Inherited From Zend_Measure_Abstract

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

Documentation generated on Wed, 21 Feb 2007 11:55:24 -0800 by phpDocumentor 1.3.1