Abstract Class Zend_Measure_Abstract

Description
  • abstract:
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Measure/Abstract.php (line 33)


	
			
Direct descendents
Variable Summary
 mixed $_Locale
 mixed $_type
 mixed $_UNITS
 mixed $_value
Method Summary
 Zend_Measure_Abstract __construct ($value $value, [$type $type = null], [$locale $locale = null])
 Zend_Measure add ($object $object)
 boolean compare ($object $object)
 void convertTo ($type $type)
 boolean equals (Zend_Measure_Detailtype $object)
 type getType ()
 void getValue ()
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure sub ($object $object)
 string toString ()
 string __toString ()
Variables
Methods
Constructor __construct (line 68)

Zend_Measure_Abstract is an abstract class for the different measurement types

  • access: public
  • throws: Zend_Measure_Exception
Zend_Measure_Abstract __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_Area Type
  • $locale $locale: locale - OPTIONAL a Zend_Locale Type

Redefined in descendants as:
add (line 307)

Adds an unit to another one

  • return: object
  • access: public
Zend_Measure add ($object $object)
  • $object $object: object of same unit type
compare (line 339)

Compares two units

  • access: public
boolean compare ($object $object)
  • $object $object: object of same unit type
convertTo (line 294)

Alias function for setType returning the converted unit

  • access: public
void convertTo ($type $type)
  • $type $type: type
equals (line 243)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Detailtype $object)
  • Zend_Measure_Detailtype $object: object to compare
getConversionList (line 282)

Returns the conversion list

  • access: public
array getConversionList ()
getType (line 160)

Returns the original type

  • access: public
type getType ()
getValue (line 103)

Returns the internal value

  • access: public
void getValue ()
setType (line 172)

Set a new type, and convert the value

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

Redefined in descendants as:
setValue (line 117)

Set a new value

  • access: public
  • throws: Zend_Measure_Exception
void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
  • integer|string $value: Value as string, integer, real or float
  • string $type: OPTIONAL A Zend_Measure_Acceleration Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers

Redefined in descendants as:
sub (line 323)

Substracts an unit from another one

  • return: object
  • access: public
Zend_Measure sub ($object $object)
  • $object $object: object of same unit type
toString (line 260)

Returns a string representation

  • access: public
string toString ()
__toString (line 271)

Returns a string representation

  • access: public
string __toString ()

Documentation generated on Wed, 21 Feb 2007 11:45:07 -0800 by phpDocumentor 1.3.1