Definition at line 25 of file BlockLevelPass.php.
BlockLevelPass::__construct |
( |
|
$text, |
|
|
|
$lineStart |
|
) |
| |
|
private |
BlockLevelPass::closeList |
( |
|
$char | ) |
|
|
private |
Close the current list item identified by the prefix character.
- Parameters
-
- Returns
- string
Definition at line 154 of file BlockLevelPass.php.
References $text.
Referenced by execute().
BlockLevelPass::closeParagraph |
( |
| ) |
|
|
private |
If a pre or p is open, return the corresponding close tag and update the state.
If no tag is open, return an empty string.
- Returns
- string
Definition at line 67 of file BlockLevelPass.php.
Referenced by execute(), and openList().
static BlockLevelPass::doBlockLevels |
( |
|
$text, |
|
|
|
$lineStart |
|
) |
| |
|
static |
Make lists from lines starting with ':', '*', '#', etc.
- Parameters
-
string | $text | |
bool | $lineStart | Whether or not this is at the start of a line. |
- Returns
- string The lists rendered as HTML
Definition at line 49 of file BlockLevelPass.php.
References $text.
Referenced by Parser\doBlockLevels().
BlockLevelPass::execute |
( |
| ) |
|
|
private |
Execute the pass.
- Returns
- string
Definition at line 176 of file BlockLevelPass.php.
References $output, $t, $term, $text, as, closeList(), closeParagraph(), StringUtils\explode(), findColonNoLinks(), getCommon(), Parser\MARKER_PREFIX, nextItem(), and openList().
BlockLevelPass::findColonNoLinks |
( |
|
$str, |
|
|
& |
$before, |
|
|
& |
$after |
|
) |
| |
|
private |
Split up a string on ':', ignoring any occurrences inside tags to prevent illegal overlapping.
- Parameters
-
string | $str | The string to split |
string | &$before | Set to everything before the ':' |
string | &$after | Set to everything after the ':' |
- Exceptions
-
- Returns
- string The position of the ':', or false if none found
Definition at line 391 of file BlockLevelPass.php.
References wfDebug().
Referenced by execute().
BlockLevelPass::getCommon |
( |
|
$st1, |
|
|
|
$st2 |
|
) |
| |
|
private |
getCommon() returns the length of the longest common substring of both arguments, starting at the beginning of both.
- Parameters
-
- Returns
- int
Definition at line 86 of file BlockLevelPass.php.
Referenced by execute().
BlockLevelPass::nextItem |
( |
|
$char | ) |
|
|
private |
Close the current list item and open the next one.
- Parameters
-
- Returns
- string
Definition at line 129 of file BlockLevelPass.php.
Referenced by execute().
BlockLevelPass::openList |
( |
|
$char | ) |
|
|
private |
BlockLevelPass::$DTopen = false |
|
private |
BlockLevelPass::$inPre = false |
|
private |
BlockLevelPass::$lastSection = '' |
|
private |
BlockLevelPass::$linestart |
|
private |
const BlockLevelPass::COLON_STATE_CLOSETAG = 3 |
const BlockLevelPass::COLON_STATE_COMMENT = 5 |
const BlockLevelPass::COLON_STATE_COMMENTDASH = 6 |
const BlockLevelPass::COLON_STATE_COMMENTDASHDASH = 7 |
const BlockLevelPass::COLON_STATE_TAG = 1 |
const BlockLevelPass::COLON_STATE_TAGSLASH = 4 |
const BlockLevelPass::COLON_STATE_TAGSTART = 2 |
const BlockLevelPass::COLON_STATE_TEXT = 0 |
The documentation for this class was generated from the following file: