MediaWiki master
PPFrame.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Parser;
9
11
18interface PPFrame {
19 public const NO_ARGS = 1;
20 public const NO_TEMPLATES = 2;
21 public const STRIP_COMMENTS = 4;
22 public const NO_IGNORE = 8;
23 public const RECOVER_COMMENTS = 16;
24 public const NO_TAGS = 32;
25
26 public const RECOVER_ORIG = self::NO_ARGS | self::NO_TEMPLATES | self::NO_IGNORE |
27 self::RECOVER_COMMENTS | self::NO_TAGS;
28
38 public function newChild( $args = false, $title = false, $indexOffset = 0 );
39
47 public function cachedExpand( $key, $root, $flags = 0 );
48
55 public function expand( $root, $flags = 0 );
56
64 public function implodeWithFlags( $sep, $flags, ...$params );
65
72 public function implode( $sep, ...$params );
73
81 public function virtualImplode( $sep, ...$params );
82
91 public function virtualBracketedImplode( $start, $sep, $end, ...$params );
92
98 public function isEmpty();
99
104 public function getArguments();
105
110 public function getNumberedArguments();
111
116 public function getNamedArguments();
117
123 public function getArgument( $name );
124
131 public function loopCheck( $title );
132
137 public function isTemplate();
138
150 public function setVolatile( $flag = true );
151
161 public function isVolatile();
162
176 public function getTTL();
177
190 public function setTTL( $ttl );
191
197 public function getTitle();
198}
199
201class_alias( PPFrame::class, 'PPFrame' );
Represents a title within MediaWiki.
Definition Title.php:69
getTitle()
Get a title of frame.
virtualImplode( $sep,... $params)
Makes an object that, when expand()ed, will be the same as one obtained with implode()
getArgument( $name)
Get an argument to this frame by name.
isEmpty()
Returns true if there are no arguments in this frame.
getTTL()
Get the TTL of the frame's output.
isVolatile()
Get the "volatile" flag.
getNumberedArguments()
Returns all numbered arguments of this frame.
newChild( $args=false, $title=false, $indexOffset=0)
Create a child frame.
expand( $root, $flags=0)
Expand a document tree node.
loopCheck( $title)
Returns true if the infinite loop check is OK, false if a loop is detected.
getNamedArguments()
Returns all named arguments of this frame.
getArguments()
Returns all arguments of this frame.
isTemplate()
Return true if the frame is a template frame.
cachedExpand( $key, $root, $flags=0)
Expand a document tree node, caching the result on its parent with the given key.
implode( $sep,... $params)
Implode with no flags specified.
implodeWithFlags( $sep, $flags,... $params)
Implode with flags for expand()
setTTL( $ttl)
Set the TTL of the output of this frame and all of its ancestors.
setVolatile( $flag=true)
Set the "volatile" flag.
virtualBracketedImplode( $start, $sep, $end,... $params)
Virtual implode with brackets.