Class Zend_Measure_Lightness

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Lightness
Class Constant Summary
 APOSTILB = 'APOSTILB'
 BLONDEL = 'BLONDEL'
 CANDELA_PER_SQUARE_CENTIMETER = 'CANDELA_PER_SQUARE_CENTIMETER'
 CANDELA_PER_SQUARE_FOOT = 'CANDELA_PER_SQUARE_FOOT'
 CANDELA_PER_SQUARE_INCH = 'CANDELA_PER_SQUARE_INCH'
 CANDELA_PER_SQUARE_METER = 'CANDELA_PER_SQUARE_METER'
 FOOTLAMBERT = 'FOOTLAMBERT'
 KILOCANDELA_PER_SQUARE_CENTIMETER = 'KILOCANDELA_PER_SQUARE_CENTIMETER'
 KILOCANDELA_PER_SQUARE_FOOT = 'KILOCANDELA_PER_SQUARE_FOOT'
 KILOCANDELA_PER_SQUARE_INCH = 'KILOCANDELA_PER_SQUARE_INCH'
 KILOCANDELA_PER_SQUARE_METER = 'KILOCANDELA_PER_SQUARE_METER'
 LAMBERT = 'LAMBERT'
 MILLIMALBERT = 'MILLILAMBERT'
 NIT = 'NIT'
 STANDARD = 'CANDELA_PER_SQUARE_METER'
 STILB = 'STILB'
Method Summary
 boolean equals (Zend_Measure_Lightness $object)
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure_Lightness __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 104)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Lightness $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

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

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 122)

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

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

Zend_Measure_Lightness provides an locale aware class for conversion and formatting of Lightness 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_Lightness __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_Lightness Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
toString (line 179)

Returns a string representation

  • access: public
string toString ()

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

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
APOSTILB = 'APOSTILB' (line 43)
BLONDEL = 'BLONDEL' (line 44)
CANDELA_PER_SQUARE_CENTIMETER = 'CANDELA_PER_SQUARE_CENTIMETER' (line 45)
CANDELA_PER_SQUARE_FOOT = 'CANDELA_PER_SQUARE_FOOT' (line 46)
CANDELA_PER_SQUARE_INCH = 'CANDELA_PER_SQUARE_INCH' (line 47)
CANDELA_PER_SQUARE_METER = 'CANDELA_PER_SQUARE_METER' (line 48)
FOOTLAMBERT = 'FOOTLAMBERT' (line 49)
KILOCANDELA_PER_SQUARE_CENTIMETER = 'KILOCANDELA_PER_SQUARE_CENTIMETER' (line 50)
KILOCANDELA_PER_SQUARE_FOOT = 'KILOCANDELA_PER_SQUARE_FOOT' (line 51)
KILOCANDELA_PER_SQUARE_INCH = 'KILOCANDELA_PER_SQUARE_INCH' (line 52)
KILOCANDELA_PER_SQUARE_METER = 'KILOCANDELA_PER_SQUARE_METER' (line 53)
LAMBERT = 'LAMBERT' (line 54)
MILLIMALBERT = 'MILLILAMBERT' (line 55)
NIT = 'NIT' (line 56)
STANDARD = 'CANDELA_PER_SQUARE_METER' (line 41)
STILB = 'STILB' (line 57)

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