src/xPDO/Transport/xPDOVehicle.php
public function store(& $transport) {
        $stored = false;
        $cacheManager = $transport->xpdo->getCacheManager();
        if ($cacheManager && !empty ($this->payload)) {
            $this->_compilePayload($transport);

            $content = '<?php return ';
            $content .= var_export($this->payload, true);
            $content .= ';';
            $this->payload['filename'] = $this->payload['signature'] . '.vehicle';
            $vFileName = $transport->path . $transport->signature . '/' . str_replace('\\', '/', $this->payload['class']) . '/' . $this->payload['filename'];
            if (!($stored = $cacheManager->writeFile($vFileName, $content))) {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not store vehicle to file ' . $vFileName);
            }
        }
        return $stored;
    }
public function store(& $transport) {
        $stored = false;
        $cacheManager = $transport->xpdo->getCacheManager();
        if ($cacheManager && !empty ($this->payload)) {
            $this->_compilePayload($transport);

            $content = '<?php return ';
            $content .= var_export($this->payload, true);
            $content .= ';';
            $this->payload['filename'] = $this->payload['signature'] . '.vehicle';
            $vFileName = $transport->path . $transport->signature . '/' . str_replace('\\', '/', $this->payload['class']) . '/' . $this->payload['filename'];
            if (!($stored = $cacheManager->writeFile($vFileName, $content))) {
                $transport->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Could not store vehicle to file ' . $vFileName);
            }
        }
        return $stored;
    }
public function store ( & $ transport ) { $ stored = false ; $ cacheManager = $ transport -> xpdo -> getCacheManager ( ) ; if ( $ cacheManager && ! empty ( $ this -> payload ) ) { $ this -> _compilePayload ( $ transport ) ; $ content = '<?php return ' ; $ content .= var_export ( $ this -> payload , true ) ; $ content .= ';' ; $ this -> payload [ 'filename' ] = $ this -> payload [ 'signature' ] . '.vehicle' ; $ vFileName = $ transport -> path . $ transport -> signature . '/' . str_replace ( '\\' , '/' , $ this -> payload [ 'class' ] ) . '/' . $ this -> payload [ 'filename' ] ; if ( ! ( $ stored = $ cacheManager -> writeFile ( $ vFileName , $ content ) ) ) { $ transport -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Could not store vehicle to file ' . $ vFileName ) ; } } return $ stored ; }
Store this xPDOVehicle instance into an xPDOTransport.

@param xPDOTransport &$transport The transport to store the vehicle in.
@return boolean Indicates if the vehicle was stored in the transport.
Store this xPDOVehicle instance into an xPDOTransport .