[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/extensions/Poem/ -> Poem.class.php (summary)

(no description)

File Size: 84 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Poem:: (4 methods):
  init()
  renderPoem()
  replaceSpaces()
  indentVerse()


Class: Poem  - X-Ref

This class handles formatting poems in WikiText, specifically anything within
<poem></poem> tags.

init( &$parser )   X-Ref
Bind the renderPoem function to the <poem> tag

param: Parser $parser
return: bool true

renderPoem( $in, $param = array()   X-Ref
Parse the text into proper poem format

param: string $in The text inside the poem tag
param: array $param
param: Parser $parser
param: boolean $frame
return: string

replaceSpaces( $m )   X-Ref
Callback for preg_replace_callback() that replaces spaces with non-breaking spaces

param: array $m Matches from the regular expression
return: mixed

indentVerse( $m )   X-Ref
Callback for preg_replace_callback() that wraps content in an indented span

param: array $m Matches from the regular expression
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1