src/xPDO/Transport/xPDOScriptVehicle.php
protected function _executeScript(& $transport, $options) {
        $installed = false;
        $vOptions = $this->get($transport, $options);
        if (isset ($vOptions['object']) && isset ($vOptions['object']['source'])) {
            $object = $vOptions['object'];
            if ($this->validate($transport, $object, $vOptions)) {
                $fileSource = $transport->path . $object['source'];
                if (!$installed = include ($fileSource)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, "xPDOScriptVehicle execution failed: ({$fileSource})");
                } elseif (!$this->resolve($transport, $object, $vOptions)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not resolve vehicle for object: ' . print_r($object, true));
                    if ($transport->xpdo->getDebug() === true) $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, 'Could not resolve vehicle: ' . print_r($vOptions, true));
                }
            } else {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not validate vehicle for object: ' . print_r($object, true));
                if ($transport->xpdo->getDebug() === true) $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, 'Could not validate vehicle: ' . print_r($vOptions, true));
            }
        }
        return $installed;
    }
protected function _executeScript(& $transport, $options) {
        $installed = false;
        $vOptions = $this->get($transport, $options);
        if (isset ($vOptions['object']) && isset ($vOptions['object']['source'])) {
            $object = $vOptions['object'];
            if ($this->validate($transport, $object, $vOptions)) {
                $fileSource = $transport->path . $object['source'];
                if (!$installed = include ($fileSource)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, "xPDOScriptVehicle execution failed: ({$fileSource})");
                } elseif (!$this->resolve($transport, $object, $vOptions)) {
                    $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not resolve vehicle for object: ' . print_r($object, true));
                    if ($transport->xpdo->getDebug() === true) $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, 'Could not resolve vehicle: ' . print_r($vOptions, true));
                }
            } else {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not validate vehicle for object: ' . print_r($object, true));
                if ($transport->xpdo->getDebug() === true) $transport->xpdo->log(xPDO::LOG_LEVEL_DEBUG, 'Could not validate vehicle: ' . print_r($vOptions, true));
            }
        }
        return $installed;
    }
protected function _executeScript ( & $ transport , $ options ) { $ installed = false ; $ vOptions = $ this -> get ( $ transport , $ options ) ; if ( isset ( $ vOptions [ 'object' ] ) && isset ( $ vOptions [ 'object' ] [ 'source' ] ) ) { $ object = $ vOptions [ 'object' ] ; if ( $ this -> validate ( $ transport , $ object , $ vOptions ) ) { $ fileSource = $ transport -> path . $ object [ 'source' ] ; if ( ! $ installed = include ( $ fileSource ) ) { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , "xPDOScriptVehicle execution failed: ({$fileSource})" ) ; } elseif ( ! $ this -> resolve ( $ transport , $ object , $ vOptions ) ) { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not resolve vehicle for object: ' . print_r ( $ object , true ) ) ; if ( $ transport -> xpdo -> getDebug ( ) === true ) $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_DEBUG , 'Could not resolve vehicle: ' . print_r ( $ vOptions , true ) ) ; } } else { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not validate vehicle for object: ' . print_r ( $ object , true ) ) ; if ( $ transport -> xpdo -> getDebug ( ) === true ) $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_DEBUG , 'Could not validate vehicle: ' . print_r ( $ vOptions , true ) ) ; } } return $ installed ; }
Execute the script represented by and stored in this vehicle.

@access protected
@param xPDOTransport &$transport A reference the transport this vehicle is stored in.
@param array $options Optional attributes that can be applied to vehicle install process.
@return boolean True if the scripts are executed successfully.
Execute the script represented by and stored in this vehicle .