Measure/Area.php

Show: inherited
Table of Contents

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 [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Measure  
Version
$Id: Area.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Measure_Area

Package: Zend\Measure\Zend\Measure\Area

Class for handling area conversions

Parent(s)
\Zend_Measure_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  STANDARD = 'SQUARE_METER'
Constant  ACRE = 'ACRE'
Constant  ACRE_COMMERCIAL = 'ACRE_COMMERCIAL'
Constant  ACRE_SURVEY = 'ACRE_SURVEY'
Constant  ACRE_IRELAND = 'ACRE_IRELAND'
Constant  ARE = 'ARE'
Constant  ARPENT = 'ARPENT'
Constant  BARN = 'BARN'
Constant  BOVATE = 'BOVATE'
Constant  BUNDER = 'BUNDER'
Constant  CABALLERIA = 'CABALLERIA'
Constant  CABALLERIA_AMERICA = 'CABALLERIA_AMERICA'
Constant  CABALLERIA_CUBA = 'CABALLERIA_CUBA'
Constant  CARREAU = 'CARREAU'
Constant  CARUCATE = 'CARUCATE'
Constant  CAWNEY = 'CAWNEY'
Constant  CENTIARE = 'CENTIARE'
Constant  CONG = 'CONG'
Constant  COVER = 'COVER'
Constant  CUERDA = 'CUERDA'
Constant  DEKARE = 'DEKARE'
Constant  DESSIATINA = 'DESSIATINA'
Constant  DHUR = 'DHUR'
Constant  DUNUM = 'DUNUM'
Constant  DUNHAM = 'DUNHAM'
Constant  FALL_SCOTS = 'FALL_SCOTS'
Constant  FALL = 'FALL'
Constant  FANEGA = 'FANEGA'
Constant  FARTHINGDALE = 'FARTHINGDALE'
Constant  HACIENDA = 'HACIENDA'
Constant  HECTARE = 'HECTARE'
Constant  HIDE = 'HIDE'
Constant  HOMESTEAD = 'HOMESTEAD'
Constant  HUNDRED = 'HUNDRED'
Constant  JERIB = 'JERIB'
Constant  JITRO = 'JITRO'
Constant  JOCH = 'JOCH'
Constant  JUTRO = 'JUTRO'
Constant  JO = 'JO'
Constant  KAPPLAND = 'KAPPLAND'
Constant  KATTHA = 'KATTHA'
Constant  LABOR = 'LABOR'
Constant  LEGUA = 'LEGUA'
Constant  MANZANA_COSTA_RICA = 'MANZANA_COSTA_RICA'
Constant  MANZANA = 'MANZANA'
Constant  MORGEN = 'MORGEN'
Constant  MORGEN_AFRICA = 'MORGEN_AFRICA'
Constant  MU = 'MU'
Constant  NGARN = 'NGARN'
Constant  NOOK = 'NOOK'
Constant  OXGANG = 'OXGANG'
Constant  PERCH = 'PERCH'
Constant  PERCHE = 'PERCHE'
Constant  PING = 'PING'
Constant  PYONG = 'PYONG'
Constant  RAI = 'RAI'
Constant  ROOD = 'ROOD'
Constant  SECTION = 'SECTION'
Constant  SHED = 'SHED'
Constant  SITIO = 'SITIO'
Constant  SQUARE = 'SQUARE'
Constant  SQUARE_ANGSTROM = 'SQUARE_ANGSTROM'
Constant  SQUARE_ASTRONOMICAL_UNIT = 'SQUARE_ASTRONOMICAL_UNIT'
Constant  SQUARE_ATTOMETER = 'SQUARE_ATTOMETER'
Constant  SQUARE_BICRON = 'SQUARE_BICRON'
Constant  SQUARE_CENTIMETER = 'SQUARE_CENTIMETER'
Constant  SQUARE_CHAIN = 'SQUARE_CHAIN'
Constant  SQUARE_CHAIN_ENGINEER = 'SQUARE_CHAIN_ENGINEER'
Constant  SQUARE_CITY_BLOCK_US_EAST = 'SQUARE_CITY_BLOCK_US_EAST'
Constant  SQUARE_CITY_BLOCK_US_WEST = 'SQUARE_CITY_BLOCK_US_WEST'
Constant  SQUARE_CITY_BLOCK_US_SOUTH = 'SQUARE_CITY_BLOCK_US_SOUTH'
Constant  SQUARE_CUBIT = 'SQUARE_CUBIT'
Constant  SQUARE_DECIMETER = 'SQUARE_DECIMETER'
Constant  SQUARE_DEKAMETER = 'SQUARE_DEKAMETER'
Constant  SQUARE_EXAMETER = 'SQUARE_EXAMETER'
Constant  SQUARE_FATHOM = 'SQUARE_FATHOM'
Constant  SQUARE_FEMTOMETER = 'SQUARE_FEMTOMETER'
Constant  SQUARE_FERMI = 'SQUARE_FERMI'
Constant  SQUARE_FOOT = 'SQUARE_FOOT'
Constant  SQUARE_FOOT_SURVEY = 'SQUARE_FOOT_SURVEY'
Constant  SQUARE_FURLONG = 'SQUARE_FURLONG'
Constant  SQUARE_GIGAMETER = 'SQUARE_GIGAMETER'
Constant  SQUARE_HECTOMETER = 'SQUARE_HECTOMETER'
Constant  SQUARE_INCH = 'SQUARE_INCH'
Constant  SQUARE_INCH_SURVEY = 'SQUARE_INCH_SURVEY'
Constant  SQUARE_KILOMETER = 'SQUARE_KILOMETER'
Constant  SQUARE_LEAGUE_NAUTIC = 'SQUARE_LEAGUE_NAUTIC'
Constant  SQUARE_LEAGUE = 'SQUARE_LEAGUE'
Constant  SQUARE_LIGHT_YEAR = 'SQUARE_LIGHT_YEAR'
Constant  SQUARE_LINK = 'SQUARE_LINK'
Constant  SQUARE_LINK_ENGINEER = 'SQUARE_LINK_ENGINEER'
Constant  SQUARE_MEGAMETER = 'SQUARE_MEGAMETER'
Constant  SQUARE_METER = 'SQUARE_METER'
Constant  SQUARE_MICROINCH = 'SQUARE_MICROINCH'
Constant  SQUARE_MICROMETER = 'SQUARE_MICROMETER'
Constant  SQUARE_MICROMICRON = 'SQUARE_MICROMICRON'
Constant  SQUARE_MICRON = 'SQUARE_MICRON'
Constant  SQUARE_MIL = 'SQUARE_MIL'
Constant  SQUARE_MILE = 'SQUARE_MILE'
Constant  SQUARE_MILE_NAUTIC = 'SQUARE_MILE_NAUTIC'
Constant  SQUARE_MILE_SURVEY = 'SQUARE_MILE_SURVEY'
Constant  SQUARE_MILLIMETER = 'SQUARE_MILLIMETER'
Constant  SQUARE_MILLIMICRON = 'SQUARE_MILLIMICRON'
Constant  SQUARE_MYRIAMETER = 'SQUARE_MYRIAMETER'
Constant  SQUARE_NANOMETER = 'SQUARE_NANOMETER'
Constant  SQUARE_PARIS_FOOT = 'SQUARE_PARIS_FOOT'
Constant  SQUARE_PARSEC = 'SQUARE_PARSEC'
Constant  SQUARE_PERCH = 'SQUARE_PERCH'
Constant  SQUARE_PERCHE = 'SQUARE_PERCHE'
Constant  SQUARE_PETAMETER = 'SQUARE_PETAMETER'
Constant  SQUARE_PICOMETER = 'SQUARE_PICOMETER'
Constant  SQUARE_ROD = 'SQUARE_ROD'
Constant  SQUARE_TENTHMETER = 'SQUARE_TENTHMETER'
Constant  SQUARE_TERAMETER = 'SQUARE_TERAMETER'
Constant  SQUARE_THOU = 'SQUARE_THOU'
Constant  SQUARE_VARA = 'SQUARE_VARA'
Constant  SQUARE_VARA_TEXAS = 'SQUARE_VARA_TEXAS'
Constant  SQUARE_YARD = 'SQUARE_YARD'
Constant  SQUARE_YARD_SURVEY = 'SQUARE_YARD_SURVEY'
Constant  SQUARE_YOCTOMETER = 'SQUARE_YOCTOMETER'
Constant  SQUARE_YOTTAMETER = 'SQUARE_YOTTAMETER'
Constant  STANG = 'STANG'
Constant  STREMMA = 'STREMMA'
Constant  TAREA = 'TAREA'
Constant  TATAMI = 'TATAMI'
Constant  TONDE_LAND = 'TONDE_LAND'
Constant  TOWNSHIP = 'TOWNSHIP'
Constant  TSUBO = 'TSUBO'
Constant  TUNNLAND = 'TUNNLAND'
Constant  YARD = 'YARD'
Constant  VIRGATE = 'VIRGATE'

Properties

Propertyprotectedstring $_locale = null
inherited

Locale identifier

Inherited from: \Zend_Measure_Abstract::$$_locale
Default valuenullDetails
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_locale  
Propertyprotectedstring $_type =
inherited

Original type for this unit

Inherited from: \Zend_Measure_Abstract::$$_type
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_type  
Propertyprotectedarray $_units = array('ACRE' => array('4046.856422', 'A'), 'ACRE_COMMERCIAL' => array('3344.50944', 'A'), 'ACRE_SURVEY' => array('4046.872627', 'A'), 'ACRE_IRELAND' => array('6555', 'A'), 'ARE' => array('100', 'a'), 'ARPENT' => array('3418.89', 'arpent'), 'BARN' => array('1e-28', 'b'), 'BOVATE' => array('60000', 'bovate'), 'BUNDER' => array('10000', 'bunder'), 'CABALLERIA' => array('400000', 'caballeria'), 'CABALLERIA_AMERICA' => array('450000', 'caballeria'), 'CABALLERIA_CUBA' => array('134200', 'caballeria'), 'CARREAU' => array('12900', 'carreau'), 'CARUCATE' => array('486000', 'carucate'), 'CAWNEY' => array('5400', 'cawney'), 'CENTIARE' => array('1', 'ca'), 'CONG' => array('1000', 'cong'), 'COVER' => array('2698', 'cover'), 'CUERDA' => array('3930', 'cda'), 'DEKARE' => array('1000', 'dekare'), 'DESSIATINA' => array('10925', 'dessiantina'), 'DHUR' => array('16.929', 'dhur'), 'DUNUM' => array('1000', 'dunum'), 'DUNHAM' => array('1000', 'dunham'), 'FALL_SCOTS' => array('32.15', 'fall'), 'FALL' => array('47.03', 'fall'), 'FANEGA' => array('6430', 'fanega'), 'FARTHINGDALE' => array('1012', 'farthingdale'), 'HACIENDA' => array('89600000', 'hacienda'), 'HECTARE' => array('10000', 'ha'), 'HIDE' => array('486000', 'hide'), 'HOMESTEAD' => array('647500', 'homestead'), 'HUNDRED' => array('50000000', 'hundred'), 'JERIB' => array('2000', 'jerib'), 'JITRO' => array('5755', 'jitro'), 'JOCH' => array('5755', 'joch'), 'JUTRO' => array('5755', 'jutro'), 'JO' => array('1.62', 'jo'), 'KAPPLAND' => array('154.26', 'kappland'), 'KATTHA' => array('338', 'kattha'), 'LABOR' => array('716850', 'labor'), 'LEGUA' => array('17920000', 'legua'), 'MANZANA_COSTA_RICA' => array('6988.96', 'manzana'), 'MANZANA' => array('10000', 'manzana'), 'MORGEN' => array('2500', 'morgen'), 'MORGEN_AFRICA' => array('8567', 'morgen'), 'MU' => array(array('' => '10000', '/' => '15'), 'mu'), 'NGARN' => array('400', 'ngarn'), 'NOOK' => array('80937.128', 'nook'), 'OXGANG' => array('60000', 'oxgang'), 'PERCH' => array('25.29285264', 'perch'), 'PERCHE' => array('34.19', 'perche'), 'PING' => array('3.305', 'ping'), 'PYONG' => array('3.306', 'pyong'), 'RAI' => array('1600', 'rai'), 'ROOD' => array('1011.7141', 'rood'), 'SECTION' => array('2589998.5', 'sec'), 'SHED' => array('10e-52', 'shed'), 'SITIO' => array('18000000', 'sitio'), 'SQUARE' => array('9.290304', 'sq'), 'SQUARE_ANGSTROM' => array('1.0e-20', 'A²'), 'SQUARE_ASTRONOMICAL_UNIT' => array('2.2379523e+22', 'AU²'), 'SQUARE_ATTOMETER' => array('1.0e-36', 'am²'), 'SQUARE_BICRON' => array('1.0e-24', 'µµ²'), 'SQUARE_CENTIMETER' => array('0.0001', 'cm²'), 'SQUARE_CHAIN' => array('404.68726', 'ch²'), 'SQUARE_CHAIN_ENGINEER' => array('929.03412', 'ch²'), 'SQUARE_CITY_BLOCK_US_EAST' => array('4.97027584', 'sq block'), 'SQUARE_CITY_BLOCK_US_WEST' => array('17.141056', 'sq block'), 'SQUARE_CITY_BLOCK_US_SOUTH' => array('99.88110336', 'sq block'), 'SQUARE_CUBIT' => array('0.20903184', 'sq cubit'), 'SQUARE_DECIMETER' => array('0.01', 'dm²'), 'SQUARE_DEKAMETER' => array('100', 'dam²'), 'SQUARE_EXAMETER' => array('1.0e+36', 'Em²'), 'SQUARE_FATHOM' => array('3.3445228', 'fth²'), 'SQUARE_FEMTOMETER' => array('1.0e-30', 'fm²'), 'SQUARE_FERMI' => array('1.0e-30', 'f²'), 'SQUARE_FOOT' => array('0.09290304', 'ft²'), 'SQUARE_FOOT_SURVEY' => array('0.092903412', 'ft²'), 'SQUARE_FURLONG' => array('40468.726', 'fur²'), 'SQUARE_GIGAMETER' => array('1.0e+18', 'Gm²'), 'SQUARE_HECTOMETER' => array('10000', 'hm²'), 'SQUARE_INCH' => array(array('' => '0.09290304', '/' => '144'), 'in²'), 'SQUARE_INCH_SURVEY' => array(array('' => '0.092903412', '/' => '144'), 'in²'), 'SQUARE_KILOMETER' => array('1000000', 'km²'), 'SQUARE_LEAGUE_NAUTIC' => array('3.0869136e+07', 'sq league'), 'SQUARE_LEAGUE' => array('2.3309986e+07', 'sq league'), 'SQUARE_LIGHT_YEAR' => array('8.9505412e+31', 'ly²'), 'SQUARE_LINK' => array('0.040468726', 'sq link'), 'SQUARE_LINK_ENGINEER' => array('0.092903412', 'sq link'), 'SQUARE_MEGAMETER' => array('1.0e+12', 'Mm²'), 'SQUARE_METER' => array('1', 'm²'), 'SQUARE_MICROINCH' => array(array('' => '1.0e-6', '*' => '6.4516e-10'), 'µin²'), 'SQUARE_MICROMETER' => array('1.0e-12', 'µm²'), 'SQUARE_MICROMICRON' => array('1.0e-24', 'µµ²'), 'SQUARE_MICRON' => array('1.0e-12', 'µ²'), 'SQUARE_MIL' => array('6.4516e-10', 'sq mil'), 'SQUARE_MILE' => array(array('' => '0.09290304', '*' => '27878400'), 'mi²'), 'SQUARE_MILE_NAUTIC' => array('3429904', 'mi²'), 'SQUARE_MILE_SURVEY' => array('2589998.5', 'mi²'), 'SQUARE_MILLIMETER' => array('0.000001', 'mm²'), 'SQUARE_MILLIMICRON' => array('1.0e-18', 'mµ²'), 'SQUARE_MYRIAMETER' => array('1.0e+8', 'mym²'), 'SQUARE_NANOMETER' => array('1.0e-18', 'nm²'), 'SQUARE_PARIS_FOOT' => array('0.1055', 'sq paris foot'), 'SQUARE_PARSEC' => array('9.5214087e+32', 'pc²'), 'SQUARE_PERCH' => array('25.292954', 'sq perch'), 'SQUARE_PERCHE' => array('51.072', 'sq perche'), 'SQUARE_PETAMETER' => array('1.0e+30', 'Pm²'), 'SQUARE_PICOMETER' => array('1.0e-24', 'pm²'), 'SQUARE_ROD' => array(array('' => '0.092903412', '*' => '272.25'), 'rd²'), 'SQUARE_TENTHMETER' => array('1.0e-20', 'sq tenth-meter'), 'SQUARE_TERAMETER' => array('1.0e+24', 'Tm²'), 'SQUARE_THOU' => array('6.4516e-10', 'sq thou'), 'SQUARE_VARA' => array('0.70258205', 'sq vara'), 'SQUARE_VARA_TEXAS' => array('0.71684731', 'sq vara'), 'SQUARE_YARD' => array('0.83612736', 'yd²'), 'SQUARE_YARD_SURVEY' => array('0.836130708', 'yd²'), 'SQUARE_YOCTOMETER' => array('1.0e-48', 'ym²'), 'SQUARE_YOTTAMETER' => array('1.0e+48', 'Ym²'), 'STANG' => array('2709', 'stang'), 'STREMMA' => array('1000', 'stremma'), 'TAREA' => array('628.8', 'tarea'), 'TATAMI' => array('1.62', 'tatami'), 'TONDE_LAND' => array('5516', 'tonde land'), 'TOWNSHIP' => array('93239945.3196288', 'twp'), 'TSUBO' => array('3.3058', 'tsubo'), 'TUNNLAND' => array('4936.4', 'tunnland'), 'YARD' => array('0.83612736', 'yd'), 'VIRGATE' => array('120000', 'virgate'), 'STANDARD' => 'SQUARE_METER')

Calculations for all area units

Default valuearray('ACRE' => array('4046.856422', 'A'), 'ACRE_COMMERCIAL' => array('3344.50944', 'A'), 'ACRE_SURVEY' => array('4046.872627', 'A'), 'ACRE_IRELAND' => array('6555', 'A'), 'ARE' => array('100', 'a'), 'ARPENT' => array('3418.89', 'arpent'), 'BARN' => array('1e-28', 'b'), 'BOVATE' => array('60000', 'bovate'), 'BUNDER' => array('10000', 'bunder'), 'CABALLERIA' => array('400000', 'caballeria'), 'CABALLERIA_AMERICA' => array('450000', 'caballeria'), 'CABALLERIA_CUBA' => array('134200', 'caballeria'), 'CARREAU' => array('12900', 'carreau'), 'CARUCATE' => array('486000', 'carucate'), 'CAWNEY' => array('5400', 'cawney'), 'CENTIARE' => array('1', 'ca'), 'CONG' => array('1000', 'cong'), 'COVER' => array('2698', 'cover'), 'CUERDA' => array('3930', 'cda'), 'DEKARE' => array('1000', 'dekare'), 'DESSIATINA' => array('10925', 'dessiantina'), 'DHUR' => array('16.929', 'dhur'), 'DUNUM' => array('1000', 'dunum'), 'DUNHAM' => array('1000', 'dunham'), 'FALL_SCOTS' => array('32.15', 'fall'), 'FALL' => array('47.03', 'fall'), 'FANEGA' => array('6430', 'fanega'), 'FARTHINGDALE' => array('1012', 'farthingdale'), 'HACIENDA' => array('89600000', 'hacienda'), 'HECTARE' => array('10000', 'ha'), 'HIDE' => array('486000', 'hide'), 'HOMESTEAD' => array('647500', 'homestead'), 'HUNDRED' => array('50000000', 'hundred'), 'JERIB' => array('2000', 'jerib'), 'JITRO' => array('5755', 'jitro'), 'JOCH' => array('5755', 'joch'), 'JUTRO' => array('5755', 'jutro'), 'JO' => array('1.62', 'jo'), 'KAPPLAND' => array('154.26', 'kappland'), 'KATTHA' => array('338', 'kattha'), 'LABOR' => array('716850', 'labor'), 'LEGUA' => array('17920000', 'legua'), 'MANZANA_COSTA_RICA' => array('6988.96', 'manzana'), 'MANZANA' => array('10000', 'manzana'), 'MORGEN' => array('2500', 'morgen'), 'MORGEN_AFRICA' => array('8567', 'morgen'), 'MU' => array(array('' => '10000', '/' => '15'), 'mu'), 'NGARN' => array('400', 'ngarn'), 'NOOK' => array('80937.128', 'nook'), 'OXGANG' => array('60000', 'oxgang'), 'PERCH' => array('25.29285264', 'perch'), 'PERCHE' => array('34.19', 'perche'), 'PING' => array('3.305', 'ping'), 'PYONG' => array('3.306', 'pyong'), 'RAI' => array('1600', 'rai'), 'ROOD' => array('1011.7141', 'rood'), 'SECTION' => array('2589998.5', 'sec'), 'SHED' => array('10e-52', 'shed'), 'SITIO' => array('18000000', 'sitio'), 'SQUARE' => array('9.290304', 'sq'), 'SQUARE_ANGSTROM' => array('1.0e-20', 'A²'), 'SQUARE_ASTRONOMICAL_UNIT' => array('2.2379523e+22', 'AU²'), 'SQUARE_ATTOMETER' => array('1.0e-36', 'am²'), 'SQUARE_BICRON' => array('1.0e-24', 'µµ²'), 'SQUARE_CENTIMETER' => array('0.0001', 'cm²'), 'SQUARE_CHAIN' => array('404.68726', 'ch²'), 'SQUARE_CHAIN_ENGINEER' => array('929.03412', 'ch²'), 'SQUARE_CITY_BLOCK_US_EAST' => array('4.97027584', 'sq block'), 'SQUARE_CITY_BLOCK_US_WEST' => array('17.141056', 'sq block'), 'SQUARE_CITY_BLOCK_US_SOUTH' => array('99.88110336', 'sq block'), 'SQUARE_CUBIT' => array('0.20903184', 'sq cubit'), 'SQUARE_DECIMETER' => array('0.01', 'dm²'), 'SQUARE_DEKAMETER' => array('100', 'dam²'), 'SQUARE_EXAMETER' => array('1.0e+36', 'Em²'), 'SQUARE_FATHOM' => array('3.3445228', 'fth²'), 'SQUARE_FEMTOMETER' => array('1.0e-30', 'fm²'), 'SQUARE_FERMI' => array('1.0e-30', 'f²'), 'SQUARE_FOOT' => array('0.09290304', 'ft²'), 'SQUARE_FOOT_SURVEY' => array('0.092903412', 'ft²'), 'SQUARE_FURLONG' => array('40468.726', 'fur²'), 'SQUARE_GIGAMETER' => array('1.0e+18', 'Gm²'), 'SQUARE_HECTOMETER' => array('10000', 'hm²'), 'SQUARE_INCH' => array(array('' => '0.09290304', '/' => '144'), 'in²'), 'SQUARE_INCH_SURVEY' => array(array('' => '0.092903412', '/' => '144'), 'in²'), 'SQUARE_KILOMETER' => array('1000000', 'km²'), 'SQUARE_LEAGUE_NAUTIC' => array('3.0869136e+07', 'sq league'), 'SQUARE_LEAGUE' => array('2.3309986e+07', 'sq league'), 'SQUARE_LIGHT_YEAR' => array('8.9505412e+31', 'ly²'), 'SQUARE_LINK' => array('0.040468726', 'sq link'), 'SQUARE_LINK_ENGINEER' => array('0.092903412', 'sq link'), 'SQUARE_MEGAMETER' => array('1.0e+12', 'Mm²'), 'SQUARE_METER' => array('1', 'm²'), 'SQUARE_MICROINCH' => array(array('' => '1.0e-6', '*' => '6.4516e-10'), 'µin²'), 'SQUARE_MICROMETER' => array('1.0e-12', 'µm²'), 'SQUARE_MICROMICRON' => array('1.0e-24', 'µµ²'), 'SQUARE_MICRON' => array('1.0e-12', 'µ²'), 'SQUARE_MIL' => array('6.4516e-10', 'sq mil'), 'SQUARE_MILE' => array(array('' => '0.09290304', '*' => '27878400'), 'mi²'), 'SQUARE_MILE_NAUTIC' => array('3429904', 'mi²'), 'SQUARE_MILE_SURVEY' => array('2589998.5', 'mi²'), 'SQUARE_MILLIMETER' => array('0.000001', 'mm²'), 'SQUARE_MILLIMICRON' => array('1.0e-18', 'mµ²'), 'SQUARE_MYRIAMETER' => array('1.0e+8', 'mym²'), 'SQUARE_NANOMETER' => array('1.0e-18', 'nm²'), 'SQUARE_PARIS_FOOT' => array('0.1055', 'sq paris foot'), 'SQUARE_PARSEC' => array('9.5214087e+32', 'pc²'), 'SQUARE_PERCH' => array('25.292954', 'sq perch'), 'SQUARE_PERCHE' => array('51.072', 'sq perche'), 'SQUARE_PETAMETER' => array('1.0e+30', 'Pm²'), 'SQUARE_PICOMETER' => array('1.0e-24', 'pm²'), 'SQUARE_ROD' => array(array('' => '0.092903412', '*' => '272.25'), 'rd²'), 'SQUARE_TENTHMETER' => array('1.0e-20', 'sq tenth-meter'), 'SQUARE_TERAMETER' => array('1.0e+24', 'Tm²'), 'SQUARE_THOU' => array('6.4516e-10', 'sq thou'), 'SQUARE_VARA' => array('0.70258205', 'sq vara'), 'SQUARE_VARA_TEXAS' => array('0.71684731', 'sq vara'), 'SQUARE_YARD' => array('0.83612736', 'yd²'), 'SQUARE_YARD_SURVEY' => array('0.836130708', 'yd²'), 'SQUARE_YOCTOMETER' => array('1.0e-48', 'ym²'), 'SQUARE_YOTTAMETER' => array('1.0e+48', 'Ym²'), 'STANG' => array('2709', 'stang'), 'STREMMA' => array('1000', 'stremma'), 'TAREA' => array('628.8', 'tarea'), 'TATAMI' => array('1.62', 'tatami'), 'TONDE_LAND' => array('5516', 'tonde land'), 'TOWNSHIP' => array('93239945.3196288', 'twp'), 'TSUBO' => array('3.3058', 'tsubo'), 'TUNNLAND' => array('4936.4', 'tunnland'), 'YARD' => array('0.83612736', 'yd'), 'VIRGATE' => array('120000', 'virgate'), 'STANDARD' => 'SQUARE_METER')Details
Type
array
Propertyprotectedstring $_value =
inherited

Plain value in standard unit

Inherited from: \Zend_Measure_Abstract::$$_value
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_value  

Methods

methodpublic__construct(mixed $value, int $type = null, \Zend_Locale $locale = null) : void
inherited

Zend_Measure_Abstract is an abstract class for the different measurement types

Inherited from: \Zend_Measure_Abstract::__construct()
Parameters
Name Type Description
$value mixed

Value as string, integer, real or float

$type int

OPTIONAL a measure type f.e. Zend_Measure_Length::METER

$locale \Zend_Locale

OPTIONAL a Zend_Locale Type

Throws
Exception Description
\Zend_Measure_Exception
methodpublic__toString() : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::__toString()
Returns
Type Description
string
methodpublicadd(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Adds an unit to another one

Inherited from: \Zend_Measure_Abstract::add()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
\Zend_Measure_Abstract
methodpubliccompare(\Zend_Measure_Abstract $object) : boolean
inherited

Compares two units

Inherited from: \Zend_Measure_Abstract::compare()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
boolean
methodpublicconvertTo(string $type, integer $round = 2, string | \Zend_Locale $locale = null) : string
inherited

Alias function for setType returning the converted unit

Inherited from: \Zend_Measure_Abstract::convertTo()
Parameters
Name Type Description
$type string

Constant Type

$round integer

(Optional) Rounds the value to a given precision

$locale string | \Zend_Locale

(Optional) Locale to set for the number

Returns
Type Description
string
methodpublicequals(\Zend_Measure_Abstract $object) : boolean
inherited

Compare if the value and type is equal

Inherited from: \Zend_Measure_Abstract::equals()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object to compare

Returns
Type Description
boolean
methodpublicgetConversionList() : array
inherited

Returns the conversion list

Inherited from: \Zend_Measure_Abstract::getConversionList()
Returns
Type Description
array
methodpublicgetLocale() : string
inherited

Returns the actual set locale

Inherited from: \Zend_Measure_Abstract::getLocale()
Returns
Type Description
string
methodpublicgetType() : \type
inherited

Returns the original type

Inherited from: \Zend_Measure_Abstract::getType()
Returns
Type Description
\type
methodpublicgetValue(integer $round = -1, string | \Zend_Locale $locale = null) : integer | string
inherited

Returns the internal value

Inherited from: \Zend_Measure_Abstract::getValue()
Parameters
Name Type Description
$round integer

(Optional) Rounds the value to an given precision, Default is -1 which returns without rounding

$locale string | \Zend_Locale

(Optional) Locale for number representation

Returns
Type Description
integer | string
methodpublicsetLocale(string | \Zend_Locale $locale = null, boolean $check = false) : \Zend_Measure_Abstract
inherited

Sets a new locale for the value representation

Inherited from: \Zend_Measure_Abstract::setLocale()
Parameters
Name Type Description
$locale string | \Zend_Locale

(Optional) New locale to set

$check boolean

False, check but don't set; True, set the new locale

Returns
Type Description
\Zend_Measure_Abstract
methodpublicsetType(string $type) : \Zend_Measure_Abstract
inherited

Set a new type, and convert the value

Inherited from: \Zend_Measure_Abstract::setType()
Parameters
Name Type Description
$type string

New type to set

Returns
Type Description
\Zend_Measure_Abstract
Throws
Exception Description
\Zend_Measure_Exception
methodpublicsetValue(integer | string $value, string $type = null, string | \Zend_Locale $locale = null) : \Zend_Measure_Abstract
inherited

Set a new value

Inherited from: \Zend_Measure_Abstract::setValue()
Parameters
Name Type Description
$value integer | string

Value as string, integer, real or float

$type string

OPTIONAL A measure type f.e. Zend_Measure_Length::METER

$locale string | \Zend_Locale

OPTIONAL Locale for parsing numbers

Returns
Type Description
\Zend_Measure_Abstract
Throws
Exception Description
\Zend_Measure_Exception
methodpublicsub(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Substracts an unit from another one

Inherited from: \Zend_Measure_Abstract::sub()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
\Zend_Measure_Abstract
methodpublictoString(integer $round = -1, string | \Zend_Locale $locale = null) : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::toString()
Parameters
Name Type Description
$round integer

(Optional) Runds the value to an given exception

$locale string | \Zend_Locale

(Optional) Locale to set for the number

Returns
Type Description
string
Documentation was generated by phpDocumentor 2.0.0a8.