Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data Fields | Protected Attributes
Zend_Measure_Cooking_Weight Class Reference
Inheritance diagram for Zend_Measure_Cooking_Weight:
Zend_Measure_Abstract

Data Fields

const STANDARD = 'GRAM'
 
const HALF_STICK = 'HALF_STICK'
 
const STICK = 'STICK'
 
const CUP = 'CUP'
 
const GRAM = 'GRAM'
 
const OUNCE = 'OUNCE'
 
const POUND = 'POUND'
 
const TEASPOON = 'TEASPOON'
 
const TEASPOON_US = 'TEASPOON_US'
 
const TABLESPOON = 'TABLESPOON'
 
const TABLESPOON_US = 'TABLESPOON_US'
 

Protected Attributes

 $_units
 
- Protected Attributes inherited from Zend_Measure_Abstract
 $_value
 
 $_type
 
 $_locale = null
 
 $_units = array()
 

Additional Inherited Members

- Public Member Functions inherited from Zend_Measure_Abstract
 __construct ($value, $type=null, $locale=null)
 
 getLocale ()
 
 setLocale ($locale=null, $check=false)
 
 getValue ($round=-1, $locale=null)
 
 setValue ($value, $type=null, $locale=null)
 
 getType ()
 
 setType ($type)
 
 equals ($object)
 
 toString ($round=-1, $locale=null)
 
 __toString ()
 
 getConversionList ()
 
 convertTo ($type, $round=2, $locale=null)
 
 add ($object)
 
 sub ($object)
 
 compare ($object)
 

Detailed Description

Definition at line 37 of file Weight.php.

Field Documentation

◆ $_units

$_units
protected
Initial value:
= array(
'HALF_STICK' => array(array('' => '453.59237', '/' => '8'), 'half stk'),
'STICK' => array(array('' => '453.59237', '/' => '4'), 'stk'),
'CUP' => array(array('' => '453.59237', '/' => '2'), 'c'),
'GRAM' => array('1', 'g'),
'OUNCE' => array(array('' => '453.59237', '/' => '16'), 'oz'),
'POUND' => array('453.59237', 'lb'),
'TEASPOON' => array(array('' => '1.2503332', '' => '453.59237', '/' => '128'), 'tsp'),
'TEASPOON_US' => array(array('' => '453.59237', '/' => '96'), 'tsp'),
'TABLESPOON' => array(array('' => '1.2503332', '' => '453.59237', '/' => '32'), 'tbsp'),
'TABLESPOON_US' => array(array('' => '453.59237', '/' => '32'), 'tbsp'),
'STANDARD' => 'GRAM'
)

Definition at line 57 of file Weight.php.

◆ CUP

const CUP = 'CUP'

Definition at line 43 of file Weight.php.

◆ GRAM

const GRAM = 'GRAM'

Definition at line 44 of file Weight.php.

◆ HALF_STICK

const HALF_STICK = 'HALF_STICK'

Definition at line 41 of file Weight.php.

◆ OUNCE

const OUNCE = 'OUNCE'

Definition at line 45 of file Weight.php.

◆ POUND

const POUND = 'POUND'

Definition at line 46 of file Weight.php.

◆ STANDARD

const STANDARD = 'GRAM'

Definition at line 39 of file Weight.php.

◆ STICK

const STICK = 'STICK'

Definition at line 42 of file Weight.php.

◆ TABLESPOON

const TABLESPOON = 'TABLESPOON'

Definition at line 49 of file Weight.php.

◆ TABLESPOON_US

const TABLESPOON_US = 'TABLESPOON_US'

Definition at line 50 of file Weight.php.

◆ TEASPOON

const TEASPOON = 'TEASPOON'

Definition at line 47 of file Weight.php.

◆ TEASPOON_US

const TEASPOON_US = 'TEASPOON_US'

Definition at line 48 of file Weight.php.


The documentation for this class was generated from the following file: