<?php
/**
+ * Content object for CSS pages.
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @author Daniel Kinzler
*/
+
+/**
+ * Content object for CSS pages.
+ *
+ * @ingroup Content
+ */
class CssContent extends TextContent {
public function __construct( $text ) {
parent::__construct( $text, CONTENT_MODEL_CSS );
*/
public function preSaveTransform( Title $title, User $user, ParserOptions $popts ) {
global $wgParser;
- // @todo: make pre-save transformation optional for script pages
+ // @todo Make pre-save transformation optional for script pages
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
return new CssContent( $pst );
}
-
- protected function getHtml( ) {
+ protected function getHtml() {
$html = "";
$html .= "<pre class=\"mw-code mw-css\" dir=\"ltr\">\n";
- $html .= $this->getHighlightHtml( );
+ $html .= $this->getHighlightHtml();
$html .= "\n</pre>\n";
return $html;