Zend_Measure_Abstract is an abstract class for the different measurement types
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:
Adds an unit to another one
Zend_Measure
add
($object $object)
-
$object
$object: object of same unit type
Compares two units
boolean
compare
($object $object)
-
$object
$object: object of same unit type
Alias function for setType returning the converted unit
void
convertTo
($type $type)
Compare if the value and type is equal
boolean
equals
(Zend_Measure_Detailtype $object)
-
Zend_Measure_Detailtype
$object: object to compare
Returns the conversion list
array
getConversionList
()
Returns the original type
type
getType
()
Returns the internal value
void
getValue
()
Set a new type, and convert the value
void
setType
(string $type)
-
string
$type: New type to set
Redefined in descendants as:
Set a new value
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:
Substracts an unit from another one
Zend_Measure
sub
($object $object)
-
$object
$object: object of same unit type
Returns a string representation
string
toString
()
Returns a string representation
string
__toString
()