public function addRevisionHistory($text, $revision, $start, $end, $class, $source = null)
    {
        
        $text  = $text . $start;
        $text .= "<ul class=\"$class\">\n";
        
        foreach ($revision as $date => $info) {
            $text .= "<li>$date: $info</li>\n";
        }

        $text .= "</ul>\n";

        if ($source) {
            $text .= "<p><a class=\"$class\" href=\"$source\">"
            . t("Document source")
            . "</a>.</p>\n";
        }

        $text .= $end;

        return $text;
    }
public function addRevisionHistory($text, $revision, $start, $end, $class, $source = null)
    {
        
        $text  = $text . $start;
        $text .= "<ul class=\"$class\">\n";
        
        foreach ($revision as $date => $info) {
            $text .= "<li>$date: $info</li>\n";
        }

        $text .= "</ul>\n";

        if ($source) {
            $text .= "<p><a class=\"$class\" href=\"$source\">"
            . t("Document source")
            . "</a>.</p>\n";
        }

        $text .= $end;

        return $text;
    }
public function addRevisionHistory ( $ text , $ revision , $ start , $ end , $ class , $ source = null ) { $ text = $ text . $ start ; $ text .= "<ul class=\"$class\">\n" ; foreach ( $ revision as $ date => $ info ) { $ text .= "<li>$date: $info</li>\n" ; } $ text .= "</ul>\n" ; if ( $ source ) { $ text .= "<p><a class=\"$class\" href=\"$source\">" . t ( "Document source" ) . "</a>.</p>\n" ; } $ text .= $ end ; return $ text ; }
Generate revision history and add to the end of content.

@param string $text     with content.
@param array  $revision with all revisions.
@param string $start    start wrap with this.
@param string $end      end wrap with this.
@param string $class    to add to ul element.
@param string $source   optional url to document source.

@return string with text and optionally added revision history.
Generate revision history and add to the end of content .