]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/parser/Preprocessor.php
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / includes / parser / Preprocessor.php
index 1a33ac7fc179209400979f214ab3695d14bb179f..c31f37bf3639e0df0fad6e2947a4963e2d02ca25 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+/**
+ * Interfaces for preprocessors
+ *
+ * @file
+ */
 
 /**
  * @ingroup Parser
@@ -13,6 +18,9 @@ interface Preprocessor {
        /** Create a new custom frame for programmatic use of parameter replacement as used in some extensions */
        function newCustomFrame( $args );
 
+       /** Create a new custom node for programmatic use of parameter replacement as used in some extensions */
+       function newPartNodeArray( $values );
+
        /** Preprocess text to a PPNode */
        function preprocessToObj( $text, $flags = 0 );
 }
@@ -65,6 +73,21 @@ interface PPFrame {
         */
        function isEmpty();
 
+       /**
+        * Returns all arguments of this frame
+        */
+       function getArguments();
+
+       /**
+        * Returns all numbered arguments of this frame
+        */
+       function getNumberedArguments();
+
+       /**
+        * Returns all named arguments of this frame
+        */
+       function getNamedArguments();
+
        /**
         * Get an argument to this frame by name
         */