Zend Framework
1.12
|
Public Attributes | |
const | STANDARD = 'RADIAN' |
const | RADIAN = 'RADIAN' |
const | MIL = 'MIL' |
const | GRAD = 'GRAD' |
const | DEGREE = 'DEGREE' |
const | MINUTE = 'MINUTE' |
const | SECOND = 'SECOND' |
const | POINT = 'POINT' |
const | CIRCLE_16 = 'CIRCLE_16' |
const | CIRCLE_10 = 'CIRCLE_10' |
const | CIRCLE_8 = 'CIRCLE_8' |
const | CIRCLE_6 = 'CIRCLE_6' |
const | CIRCLE_4 = 'CIRCLE_4' |
const | CIRCLE_2 = 'CIRCLE_2' |
const | FULL_CIRCLE = 'FULL_CIRCLE' |
Protected Attributes | |
$_units | |
![]() | |
$_value | |
Plain value in standard unit. | |
$_type | |
Original type for this unit. | |
$_locale = null | |
Locale identifier. | |
$_units = array() | |
Unit types for this measurement. | |
Additional Inherited Members | |
![]() | |
__construct ($value, $type=null, $locale=null) | |
Zend_Measure_Abstract is an abstract class for the different measurement types. | |
getLocale () | |
Returns the actual set locale. | |
setLocale ($locale=null, $check=false) | |
Sets a new locale for the value representation. | |
getValue ($round=-1, $locale=null) | |
Returns the internal value. | |
setValue ($value, $type=null, $locale=null) | |
Set a new value. | |
getType () | |
Returns the original type. | |
setType ($type) | |
Set a new type, and convert the value. | |
equals ($object) | |
Compare if the value and type is equal. | |
toString ($round=-1, $locale=null) | |
Returns a string representation. | |
__toString () | |
Returns a string representation. | |
getConversionList () | |
Returns the conversion list. | |
convertTo ($type, $round=2, $locale=null) | |
Alias function for setType returning the converted unit. | |
add ($object) | |
Adds an unit to another one. | |
sub ($object) | |
Substracts an unit from another one. | |
compare ($object) | |
Compares two units. | |
|
protected |
const CIRCLE_10 = 'CIRCLE_10' |
const CIRCLE_16 = 'CIRCLE_16' |
const CIRCLE_2 = 'CIRCLE_2' |
const CIRCLE_4 = 'CIRCLE_4' |
const CIRCLE_6 = 'CIRCLE_6' |
const CIRCLE_8 = 'CIRCLE_8' |
const DEGREE = 'DEGREE' |
const FULL_CIRCLE = 'FULL_CIRCLE' |
const GRAD = 'GRAD' |
const MIL = 'MIL' |
const MINUTE = 'MINUTE' |
const POINT = 'POINT' |
const RADIAN = 'RADIAN' |
const SECOND = 'SECOND' |
const STANDARD = 'RADIAN' |