Class Zend_Measure_Angle

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

Located in /Zend/Measure/Angle.php (line 38)

Zend_Measure_Abstract
   |
   --Zend_Measure_Angle
Class Constant Summary
 CIRCLE_2 = 'CIRCLE_2'
 CIRCLE_4 = 'CIRCLE_4'
 CIRCLE_6 = 'CIRCLE_6'
 CIRCLE_8 = 'CIRCLE_8'
 CIRCLE_10 = 'CIRCLE_10'
 CIRCLE_16 = 'CIRCLE_16'
 DEGREE = 'DEGREE'
 FULL_CIRCLE = 'FULL_CIRCLE'
 GRAD = 'GRAD'
 MIL = 'MIL'
 MINUTE = 'MINUTE'
 POINT = 'POINT'
 RADIAN = 'RADIAN'
 SECOND = 'SECOND'
 STANDARD = 'RADIAN'
Method Summary
 boolean equals (Zend_Measure_Angle $object)
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure_Angle __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 102)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Angle $object)

Redefinition of:
Zend_Measure_Abstract::equals()
Compare if the value and type is equal
getConversionList (line 226)

Returns the conversion list

  • access: public
array getConversionList ()

Redefinition of:
Zend_Measure_Abstract::getConversionList()
Returns the conversion list
setType (line 155)

Set a new type, and convert the value

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

Redefinition of:
Zend_Measure_Abstract::setType()
Sets the original type
setValue (line 120)

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_Angle Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers

Redefinition of:
Zend_Measure_Abstract::setValue()
Sets the internal value
Constructor __construct (line 90)

Zend_Measure_Angle provides an locale aware class for conversion and formatting of angle values

Zend_Measure $input can be a locale based input string or a value. $locale can be used to define that the input is made in a different language than the actual one.

  • access: public
  • throws: Zend_Measure_Exception
Zend_Measure_Angle __construct (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_Angle Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
toString (line 204)

Returns a string representation

  • access: public
string toString ()

Redefinition of:
Zend_Measure_Abstract::toString()
Returns a string representation
__toString (line 215)

Returns a string representation

  • access: public
string __toString ()

Redefinition of:
Zend_Measure_Abstract::__toString()
Returns a string representation

Inherited Methods

Inherited From Zend_Measure_Abstract

 Zend_Measure_Abstract::equals()
 Zend_Measure_Abstract::getConversionList()
 Zend_Measure_Abstract::getType()
 Zend_Measure_Abstract::getValue()
 Zend_Measure_Abstract::serialize()
 Zend_Measure_Abstract::setType()
 Zend_Measure_Abstract::setValue()
 Zend_Measure_Abstract::toString()
 Zend_Measure_Abstract::__toString()
Class Constants
CIRCLE_2 = 'CIRCLE_2' (line 55)
CIRCLE_4 = 'CIRCLE_4' (line 54)
CIRCLE_6 = 'CIRCLE_6' (line 53)
CIRCLE_8 = 'CIRCLE_8' (line 52)
CIRCLE_10 = 'CIRCLE_10' (line 51)
CIRCLE_16 = 'CIRCLE_16' (line 50)
DEGREE = 'DEGREE' (line 46)
FULL_CIRCLE = 'FULL_CIRCLE' (line 56)
GRAD = 'GRAD' (line 45)
MIL = 'MIL' (line 44)
MINUTE = 'MINUTE' (line 47)
POINT = 'POINT' (line 49)
RADIAN = 'RADIAN' (line 43)
SECOND = 'SECOND' (line 48)
STANDARD = 'RADIAN' (line 41)

Documentation generated on Thu, 18 Jan 2007 09:52:09 -0800 by phpDocumentor 1.3.1