protected function initGlobalDatabaseElement($database)
    {
        if (\in_array($database, $this->databases)) {
            return;
        }

        $databaseDocument = new \DOMDocument(static::$GLOBAL_SCHEMA_XML_VERSION, static::$GLOBAL_SCHEMA_XML_ENCODING);

        $databaseElement = $databaseDocument->createElement('database');

        $databaseElement->setAttribute('name', $database);

        $identifierQuotingNoticeComment = $databaseElement->ownerDocument->createComment(
            "Attribute 'identifierQuoting' generated"
        );
        $databaseElement->appendChild($identifierQuotingNoticeComment);
        $databaseElement->setAttribute('identifierQuoting', 'true');

        $databaseDocument->appendChild($databaseElement);

        $this->databases[] = $database;
        $this->globalDatabaseElements[$database] = $databaseElement;
        $this->sourceDatabaseElements[$database] = [];
        $this->externalSchemaDatabaseElements[$database] = [];
    }
protected function initGlobalDatabaseElement($database)
    {
        if (\in_array($database, $this->databases)) {
            return;
        }

        $databaseDocument = new \DOMDocument(static::$GLOBAL_SCHEMA_XML_VERSION, static::$GLOBAL_SCHEMA_XML_ENCODING);

        $databaseElement = $databaseDocument->createElement('database');

        $databaseElement->setAttribute('name', $database);

        $identifierQuotingNoticeComment = $databaseElement->ownerDocument->createComment(
            "Attribute 'identifierQuoting' generated"
        );
        $databaseElement->appendChild($identifierQuotingNoticeComment);
        $databaseElement->setAttribute('identifierQuoting', 'true');

        $databaseDocument->appendChild($databaseElement);

        $this->databases[] = $database;
        $this->globalDatabaseElements[$database] = $databaseElement;
        $this->sourceDatabaseElements[$database] = [];
        $this->externalSchemaDatabaseElements[$database] = [];
    }
protected function initGlobalDatabaseElement ( $ database ) { if ( \ in_array ( $ database , $ this -> databases ) ) { return ; } $ databaseDocument = new \ DOMDocument ( static :: $ GLOBAL_SCHEMA_XML_VERSION , static :: $ GLOBAL_SCHEMA_XML_ENCODING ) ; $ databaseElement = $ databaseDocument -> createElement ( 'database' ) ; $ databaseElement -> setAttribute ( 'name' , $ database ) ; $ identifierQuotingNoticeComment = $ databaseElement -> ownerDocument -> createComment ( "Attribute 'identifierQuoting' generated" ) ; $ databaseElement -> appendChild ( $ identifierQuotingNoticeComment ) ; $ databaseElement -> setAttribute ( 'identifierQuoting' , 'true' ) ; $ databaseDocument -> appendChild ( $ databaseElement ) ; $ this -> databases [ ] = $ database ; $ this -> globalDatabaseElements [ $ database ] = $ databaseElement ; $ this -> sourceDatabaseElements [ $ database ] = [ ] ; $ this -> externalSchemaDatabaseElements [ $ database ] = [ ] ; }
Create a global database element in a new document.
@param string $database Database.
Create a global database element in a new document .