src/xPDO/Transport/xPDOTransportVehicle.php
protected function _installTransport(& $transport, $options) {
        $installed = false;
        $vOptions = $this->get($transport, $options);
        if (isset($vOptions['object']) && isset($vOptions['object']['source']) && isset($vOptions['object']['target']) && isset($vOptions['object']['name'])) {
            if ($transport->xpdo->getDebug() === true)
                $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, "Installing Vehicle: " . print_r($vOptions, true));
            $state = isset($vOptions['state']) ? $vOptions['state'] : xPDOTransport::STATE_PACKED;
            $pkgSource = $transport->path . $vOptions['object']['source'] . $vOptions['object']['name'];
            $pkgTarget = eval($vOptions['object']['target']);
            $object = xPDOTransport::retrieve($transport->xpdo, $pkgSource, $pkgTarget, $state);
            if ($this->validate($transport, $object, $vOptions)) {
                $installed = $object->install($vOptions);
                if (!$installed) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Error installing vehicle: ' . print_r($vOptions, true));
                }
                elseif (!$this->resolve($transport, $object, $vOptions)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not resolve vehicle: ' . print_r($vOptions, true));
                }
            } else {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not validate vehicle: ' . print_r($vOptions, true));
            }
        } else {
            $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not load vehicle: ' . print_r($vOptions, true));
        }
        return $installed;
    }
protected function _installTransport(& $transport, $options) {
        $installed = false;
        $vOptions = $this->get($transport, $options);
        if (isset($vOptions['object']) && isset($vOptions['object']['source']) && isset($vOptions['object']['target']) && isset($vOptions['object']['name'])) {
            if ($transport->xpdo->getDebug() === true)
                $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, "Installing Vehicle: " . print_r($vOptions, true));
            $state = isset($vOptions['state']) ? $vOptions['state'] : xPDOTransport::STATE_PACKED;
            $pkgSource = $transport->path . $vOptions['object']['source'] . $vOptions['object']['name'];
            $pkgTarget = eval($vOptions['object']['target']);
            $object = xPDOTransport::retrieve($transport->xpdo, $pkgSource, $pkgTarget, $state);
            if ($this->validate($transport, $object, $vOptions)) {
                $installed = $object->install($vOptions);
                if (!$installed) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Error installing vehicle: ' . print_r($vOptions, true));
                }
                elseif (!$this->resolve($transport, $object, $vOptions)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not resolve vehicle: ' . print_r($vOptions, true));
                }
            } else {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not validate vehicle: ' . print_r($vOptions, true));
            }
        } else {
            $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not load vehicle: ' . print_r($vOptions, true));
        }
        return $installed;
    }
protected function _installTransport ( & $ transport , $ options ) { $ installed = false ; $ vOptions = $ this -> get ( $ transport , $ options ) ; if ( isset ( $ vOptions [ 'object' ] ) && isset ( $ vOptions [ 'object' ] [ 'source' ] ) && isset ( $ vOptions [ 'object' ] [ 'target' ] ) && isset ( $ vOptions [ 'object' ] [ 'name' ] ) ) { if ( $ transport -> xpdo -> getDebug ( ) === true ) $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_DEBUG , "Installing Vehicle: " . print_r ( $ vOptions , true ) ) ; $ state = isset ( $ vOptions [ 'state' ] ) ? $ vOptions [ 'state' ] : xPDOTransport :: STATE_PACKED ; $ pkgSource = $ transport -> path . $ vOptions [ 'object' ] [ 'source' ] . $ vOptions [ 'object' ] [ 'name' ] ; $ pkgTarget = eval ( $ vOptions [ 'object' ] [ 'target' ] ) ; $ object = xPDOTransport :: retrieve ( $ transport -> xpdo , $ pkgSource , $ pkgTarget , $ state ) ; if ( $ this -> validate ( $ transport , $ object , $ vOptions ) ) { $ installed = $ object -> install ( $ vOptions ) ; if ( ! $ installed ) { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Error installing vehicle: ' . print_r ( $ vOptions , true ) ) ; } elseif ( ! $ this -> resolve ( $ transport , $ object , $ vOptions ) ) { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not resolve vehicle: ' . print_r ( $ vOptions , true ) ) ; } } else { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not validate vehicle: ' . print_r ( $ vOptions , true ) ) ; } } else { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not load vehicle: ' . print_r ( $ vOptions , true ) ) ; } return $ installed ; }
Install the xPDOTransport from the vehicle payload.

@param xPDOTransport $transport The host xPDOTransport instance.
@param array $options Any optional attributes to apply to the installation.
@return bool
Install the xPDOTransport from the vehicle payload .