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 getArgument( $name );
00072
00076 function loopCheck( $title );
00077
00081 function isTemplate();
00082 }
00083
00097 interface PPNode {
00102 function getChildren();
00103
00107 function getFirstChild();
00108
00112 function getNextSibling();
00113
00118 function getChildrenOfType( $type );
00119
00120
00124 function getLength();
00125
00129 function item( $i );
00130
00143 function getName();
00144
00151 function splitArg();
00152
00157 function splitExt();
00158
00162 function splitHeading();
00163 }