r90887 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90886‎ | r90887 | r90888 >
Date:17:20, 27 June 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/extensions/PageSchemas/PageSchemas.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/PageSchemas.classes.php
@@ -72,10 +72,8 @@
7373 $text .= "</table>\n";
7474 }else{
7575 $text = "";
76 - }
77 - wfDebugLog( 'myextension', 'Generate html is:: ' . $text );
78 - return $text;
79 -
 76+ }
 77+ return $text;
8078 }
8179 static function parseTemplate ( $template_xml ) {
8280 $name = $template_xml->attributes()->name;
@@ -87,7 +85,12 @@
8886 }
8987 static function parseField ( $field_xml ) {
9088 $name = $field_xml->attributes()->name;
91 - $text = self::tableMessageRowHTML('paramAttr', $name, $field_xml);
 89+ $text = self::tableRowHTML('paramAttr', 'Field', $name);
 90+ $text_object = array(); //different extensions will fill the html parsed text in this array via hooks
 91+ wfRunHooks( 'PSParseFieldElements', array( $field_xml, &$text_object ) );
 92+ foreach( $text_object as $key => $value ) {
 93+ $text .= $value;
 94+ }
9295 return $text;
9396 }
9497 }

Status & tagging log