src/xPDO/Transport/xPDOTransport.php
protected static function _convertManifestVer1_1($vehicles) {
        $manifest = array();
        foreach ($vehicles as $vKey => $vehicle) {
            $entry = $vehicle;
            if (!isset($vehicle['vehicle_class'])) {
                $entry['vehicle_class'] = 'xPDOObjectVehicle';
            }
            if (!isset($vehicle['vehicle_package'])) {
                $entry['vehicle_package'] = 'transport';
            }
            $manifest[] = $entry;
        }
        return $manifest;
    }
protected static function _convertManifestVer1_1($vehicles) {
        $manifest = array();
        foreach ($vehicles as $vKey => $vehicle) {
            $entry = $vehicle;
            if (!isset($vehicle['vehicle_class'])) {
                $entry['vehicle_class'] = 'xPDOObjectVehicle';
            }
            if (!isset($vehicle['vehicle_package'])) {
                $entry['vehicle_package'] = 'transport';
            }
            $manifest[] = $entry;
        }
        return $manifest;
    }
protected static function _convertManifestVer1_1 ( $ vehicles ) { $ manifest = array ( ) ; foreach ( $ vehicles as $ vKey => $ vehicle ) { $ entry = $ vehicle ; if ( ! isset ( $ vehicle [ 'vehicle_class' ] ) ) { $ entry [ 'vehicle_class' ] = 'xPDOObjectVehicle' ; } if ( ! isset ( $ vehicle [ 'vehicle_package' ] ) ) { $ entry [ 'vehicle_package' ] = 'transport' ; } $ manifest [ ] = $ entry ; } return $ manifest ; }
Converts 1.0 manifest vehicles to 1.1 format.

@static
@access private
@param array $vehicles A structure representing vehicles from a pre-1.1 manifest format.
@return array Vehicle definition structures converted to 1.1 format.
Converts 1 . 0 manifest vehicles to 1 . 1 format .