public function getTextOutput()
    {
        $patchLevel = $this->getPatchLevel();

        $commands     = array(sprintf('-- Patch level %d structural changes', $patchLevel));
        $lastLocation = '';
        $lastName     = '';
        $noOutput     = true;
        foreach ($this->getStructuralPatches($patchLevel) as $patch) {
            if ($patch['gpa_location'] != $lastLocation) {
                $commands[] = sprintf("\n-- DATABASE LOCATION: %s", $patch['gpa_location']);
                $lastLocation = $patch['gpa_location'];
            }
            if ($patch['gpa_name'] != $lastName) {
                $commands[] = sprintf("\n-- PATCH: %s", $patch['gpa_name']);
                $lastName = $patch['gpa_name'];
            }
            $commands[] = $patch['gpa_sql'] . ';';
            $noOutput = false;
        }

        if ($noOutput) {
            $commands[] = sprintf("\n-- No structural changes in patchlevel %d", $patchLevel);
        }
        $commands[] = '';

        return implode("\n", $commands);
    }
public function getTextOutput()
    {
        $patchLevel = $this->getPatchLevel();

        $commands     = array(sprintf('-- Patch level %d structural changes', $patchLevel));
        $lastLocation = '';
        $lastName     = '';
        $noOutput     = true;
        foreach ($this->getStructuralPatches($patchLevel) as $patch) {
            if ($patch['gpa_location'] != $lastLocation) {
                $commands[] = sprintf("\n-- DATABASE LOCATION: %s", $patch['gpa_location']);
                $lastLocation = $patch['gpa_location'];
            }
            if ($patch['gpa_name'] != $lastName) {
                $commands[] = sprintf("\n-- PATCH: %s", $patch['gpa_name']);
                $lastName = $patch['gpa_name'];
            }
            $commands[] = $patch['gpa_sql'] . ';';
            $noOutput = false;
        }

        if ($noOutput) {
            $commands[] = sprintf("\n-- No structural changes in patchlevel %d", $patchLevel);
        }
        $commands[] = '';

        return implode("\n", $commands);
    }
public function getTextOutput ( ) { $ patchLevel = $ this -> getPatchLevel ( ) ; $ commands = array ( sprintf ( '-- Patch level %d structural changes' , $ patchLevel ) ) ; $ lastLocation = '' ; $ lastName = '' ; $ noOutput = true ; foreach ( $ this -> getStructuralPatches ( $ patchLevel ) as $ patch ) { if ( $ patch [ 'gpa_location' ] != $ lastLocation ) { $ commands [ ] = sprintf ( "\n-- DATABASE LOCATION: %s" , $ patch [ 'gpa_location' ] ) ; $ lastLocation = $ patch [ 'gpa_location' ] ; } if ( $ patch [ 'gpa_name' ] != $ lastName ) { $ commands [ ] = sprintf ( "\n-- PATCH: %s" , $ patch [ 'gpa_name' ] ) ; $ lastName = $ patch [ 'gpa_name' ] ; } $ commands [ ] = $ patch [ 'gpa_sql' ] . ';' ; $ noOutput = false ; } if ( $ noOutput ) { $ commands [ ] = sprintf ( "\n-- No structural changes in patchlevel %d" , $ patchLevel ) ; } $ commands [ ] = '' ; return implode ( "\n" , $ commands ) ; }
Get the content as text

@return \MUtil_Html_HtmlInterface Something that can be rendered
Get the content as text