public function getUnitNames($type = null)
    {
        $names = array();
        foreach ($this->getUnits($type) as $key => $value) {
            $names[$key] = $value['name'];
        }

        return $names;
    }
public function getUnitNames($type = null)
    {
        $names = array();
        foreach ($this->getUnits($type) as $key => $value) {
            $names[$key] = $value['name'];
        }

        return $names;
    }
public function getUnitNames ( $ type = null ) { $ names = array ( ) ; foreach ( $ this -> getUnits ( $ type ) as $ key => $ value ) { $ names [ $ key ] = $ value [ 'name' ] ; } return $ names ; }
Returns an array of unit names
@param null|string $type
@return array
Returns an array of unit names