Zend Framework  1.12
Public Attributes | Protected Attributes | List of all members
Zend_Measure_Angle Class Reference

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
 
- Protected Attributes inherited from Zend_Measure_Abstract
 $_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

- Public Member Functions inherited from Zend_Measure_Abstract
 __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.
 

Member Data Documentation

$_units
protected
Initial value:
= array(
'RADIAN' => array('1','rad'),
'MIL' => array(array('' => M_PI,'/' => '3200'), 'mil'),
'GRAD' => array(array('' => M_PI,'/' => '200'), 'gr'),
'DEGREE' => array(array('' => M_PI,'/' => '180'), '°'),
'MINUTE' => array(array('' => M_PI,'/' => '10800'), "'"),
'SECOND' => array(array('' => M_PI,'/' => '648000'), '"'),
'POINT' => array(array('' => M_PI,'/' => '16'), 'pt'),
'CIRCLE_16' => array(array('' => M_PI,'/' => '8'), 'per 16 circle'),
'CIRCLE_10' => array(array('' => M_PI,'/' => '5'), 'per 10 circle'),
'CIRCLE_8' => array(array('' => M_PI,'/' => '4'), 'per 8 circle'),
'CIRCLE_6' => array(array('' => M_PI,'/' => '3'), 'per 6 circle'),
'CIRCLE_4' => array(array('' => M_PI,'/' => '2'), 'per 4 circle'),
'CIRCLE_2' => array(M_PI, 'per 2 circle'),
'FULL_CIRCLE' => array(array('' => M_PI,'*' => '2'), 'cir'),
'STANDARD' => 'RADIAN'
)
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'