Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Abstract class for all measurements
string $_locale = 'null'Locale identifier
Detailsstring $_type = ''Original type for this unit
Details $_units = 'array'Unit types for this measurement
Detailsstring $_value = ''Plain value in standard unit
Details__construct(
$value $value, $type $type
=
null, $locale $locale
=
null
)
:
Zend_Measure_Abstract is an abstract class for the different measurement types
Details__toString(
)
:
stringReturns a string representation
Detailsadd(
Zend_Measure_Abstract $object
)
:
Zend_Measure_AbstractAdds an unit to another one
Detailscompare(
Zend_Measure_Abstract $object
)
:
booleanCompares two units
DetailsconvertTo(
string $type, integer $round
=
2, string|Zend_Locale $locale
=
null
)
:
stringAlias function for setType returning the converted unit
Detailsequals(
Zend_Measure_Abstract $object
)
:
booleanCompare if the value and type is equal
DetailsgetConversionList(
)
:
arrayReturns the conversion list
DetailsgetLocale(
)
:
stringReturns the actual set locale
DetailsgetType(
)
:
typeReturns the original type
DetailsgetValue(
integer $round
=
1, string|Zend_Locale $locale
=
null
)
:
integer|stringReturns the internal value
DetailssetLocale(
string|Zend_Locale $locale
=
null, boolean $check
=
false
)
:
Zend_Measure_AbstractSets a new locale for the value representation
DetailssetType(
string $type
)
:
Zend_Measure_AbstractSet a new type, and convert the value
DetailssetValue(
integer|string $value, string $type
=
null, string|Zend_Locale $locale
=
null
)
:
Zend_Measure_AbstractSet a new value
Detailssub(
Zend_Measure_Abstract $object
)
:
Zend_Measure_AbstractSubstracts an unit from another one
DetailstoString(
integer $round
=
1, string|Zend_Locale $locale
=
null
)
:
stringReturns a string representation
Details