3 interface Preprocessor
{
4 function __construct( $parser );
6 function preprocessToObj( $text, $flags = 0 );
11 const NO_TEMPLATES
= 2;
12 const STRIP_COMMENTS
= 4;
14 const RECOVER_COMMENTS
= 16;
16 const RECOVER_ORIG
= 27; // = 1|2|8|16 no constant expression support in PHP yet
19 * Create a child frame
21 function newChild( $args = false, $title = false );
24 * Expand a document tree node
26 function expand( $root, $flags = 0 );
29 * Implode with flags for expand()
31 function implodeWithFlags( $sep, $flags /*, ... */ );
34 * Implode with no flags specified
36 function implode( $sep /*, ... */ );
39 * Makes an object that, when expand()ed, will be the same as one obtained
42 function virtualImplode( $sep /*, ... */ );
45 * Virtual implode with brackets
47 function virtualBracketedImplode( $start, $sep, $end /*, ... */ );
50 * Returns true if there are no arguments in this frame
54 function getArgument( $name );
57 * Returns true if the infinite loop check is OK, false if a loop is detected
59 function loopCheck( $title );
62 * Return true if the frame is a template frame
64 function isTemplate();
68 function getChildren();
69 function getFirstChild();
70 function getNextSibling();
71 function getChildrenOfType( $type );
78 function splitHeading();