\Nano4\UtilsHasUnits

Common Units operations.

Return information about Units, including conversion numbers.

Summary

Methods
Properties
Constants
convert()
count()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
current()
key()
next()
rewind()
valid()
No public properties found
No constants found
No protected methods found
$units
N/A
No private methods found
No private properties found
N/A

Properties

$units

$units : 

Type

Methods

convert()

convert(  $value,   $from,   $to) 

Parameters

$value
$from
$to

count()

count() 

Return the total count of units in our class.

offsetExists()

offsetExists(  $offset) 

Does a unit exist?

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

Get a Unit

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Add a unit to our units.

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

We don't allow unsetting units.

Parameters

$offset

current()

current() 

key()

key() 

next()

next() 

rewind()

rewind() 

valid()

valid()