00001 <?php
00002
00006 interface Preprocessor {
00008 function __construct( $parser );
00009
00011 function newFrame();
00012
00014 function newCustomFrame( $args );
00015
00017 function preprocessToObj( $text, $flags = 0 );
00018 }
00019
00023 interface PPFrame {
00024 const NO_ARGS = 1;
00025 const NO_TEMPLATES = 2;
00026 const STRIP_COMMENTS = 4;
00027 const NO_IGNORE = 8;
00028 const RECOVER_COMMENTS = 16;
00029
00030 const RECOVER_ORIG = 27;
00031
00035 function newChild( $args = false, $title = false );
00036
00040 function expand( $root, $flags = 0 );
00041
00045 function implodeWithFlags( $sep, $flags );
00046
00050 function implode( $sep );
00051
00056 function virtualImplode( $sep );
00057
00061 function virtualBracketedImplode( $start, $sep, $end );
00062
00066 function isEmpty();
00067
00071 function getArguments();
00072
00076 function getNumberedArguments();
00077
00081 function getNamedArguments();
00082
00086 function getArgument( $name );
00087
00091 function loopCheck( $title );
00092
00096 function isTemplate();
00097 }
00098
00112 interface PPNode {
00117 function getChildren();
00118
00122 function getFirstChild();
00123
00127 function getNextSibling();
00128
00133 function getChildrenOfType( $type );
00134
00135
00139 function getLength();
00140
00144 function item( $i );
00145
00158 function getName();
00159
00166 function splitArg();
00167
00172 function splitExt();
00173
00177 function splitHeading();
00178 }