public static function get_device_type_list($includecustomtypes = true) {
        $types = self::$devicetypes;
        if ($includecustomtypes) {
            $instance = self::instance();
            $types = array_merge($types, array_keys($instance->devicetypecustoms));
        }
        return $types;
    }
public static function get_device_type_list($includecustomtypes = true) {
        $types = self::$devicetypes;
        if ($includecustomtypes) {
            $instance = self::instance();
            $types = array_merge($types, array_keys($instance->devicetypecustoms));
        }
        return $types;
    }
public static function get_device_type_list ( $ includecustomtypes = true ) { $ types = self :: $ devicetypes ; if ( $ includecustomtypes ) { $ instance = self :: instance ( ) ; $ types = array_merge ( $ types , array_keys ( $ instance -> devicetypecustoms ) ) ; } return $ types ; }
Gets a list of known device types.

@param bool $includecustomtypes If set to true we'll include types that have been added by the admin.
@return array
Gets a list of known device types .