public function dumpSchema(Schema $schema, $doFinalInitialization = true)
    {
        $rootNode = $this->document->createElement('app-data');
        $this->document->appendChild($rootNode);
        foreach ($schema->getDatabases($doFinalInitialization) as $database) {
            $this->appendDatabaseNode($database, $rootNode);
        }

        return trim($this->document->saveXML());
    }
public function dumpSchema(Schema $schema, $doFinalInitialization = true)
    {
        $rootNode = $this->document->createElement('app-data');
        $this->document->appendChild($rootNode);
        foreach ($schema->getDatabases($doFinalInitialization) as $database) {
            $this->appendDatabaseNode($database, $rootNode);
        }

        return trim($this->document->saveXML());
    }
public function dumpSchema ( Schema $ schema , $ doFinalInitialization = true ) { $ rootNode = $ this -> document -> createElement ( 'app-data' ) ; $ this -> document -> appendChild ( $ rootNode ) ; foreach ( $ schema -> getDatabases ( $ doFinalInitialization ) as $ database ) { $ this -> appendDatabaseNode ( $ database , $ rootNode ) ; } return trim ( $ this -> document -> saveXML ( ) ) ; }
Dumps a single Schema model into an XML formatted version.

@param  Schema  $schema                The schema object
@param  boolean $doFinalInitialization Whether or not to validate the schema
@return string
Dumps a single Schema model into an XML formatted version .