MediaWiki  REL1_19
Preprocessor.php
Go to the documentation of this file.
00001 <?php
00011 interface Preprocessor {
00017         function __construct( $parser );
00018 
00024         function newFrame();
00025 
00033         function newCustomFrame( $args );
00034 
00040         function newPartNodeArray( $values );
00041 
00050         function preprocessToObj( $text, $flags = 0 );
00051 }
00052 
00056 interface PPFrame {
00057         const NO_ARGS = 1;
00058         const NO_TEMPLATES = 2;
00059         const STRIP_COMMENTS = 4;
00060         const NO_IGNORE = 8;
00061         const RECOVER_COMMENTS = 16;
00062 
00063         const RECOVER_ORIG = 27; // = 1|2|8|16 no constant expression support in PHP yet
00064 
00073         function newChild( $args = false, $title = false );
00074 
00078         function expand( $root, $flags = 0 );
00079 
00083         function implodeWithFlags( $sep, $flags /*, ... */ );
00084 
00088         function implode( $sep /*, ... */ );
00089 
00094         function virtualImplode( $sep /*, ... */ );
00095 
00099         function virtualBracketedImplode( $start, $sep, $end /*, ... */ );
00100 
00106         function isEmpty();
00107 
00111         function getArguments();
00112 
00116         function getNumberedArguments();
00117 
00121         function getNamedArguments();
00122 
00126         function getArgument( $name );
00127 
00135         function loopCheck( $title );
00136 
00140         function isTemplate();
00141 
00147         function getTitle();
00148 }
00149 
00163 interface PPNode {
00168         function getChildren();
00169 
00175         function getFirstChild();
00176 
00180         function getNextSibling();
00181 
00186         function getChildrenOfType( $type );
00187 
00188 
00192         function getLength();
00193 
00197         function item( $i );
00198 
00211         function getName();
00212 
00219         function splitArg();
00220 
00225         function splitExt();
00226 
00230         function splitHeading();
00231 }