Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Class: Text_Wiki_Parse_Font

Source Location: /Text_Wiki_BBCode-0.0.4/Text/Wiki/Parse/BBCode/Font.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Font

Font rule parser class (with nesting) for BBCode. ([size=...]...[/size])


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 bertrand Gugger

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Font rule parser class (with nesting) for BBCode. ([size=...]...[/size])


[ Top ]


Class Variables

$regex =  "#\[size=(\d+)]((?:((?R))|.)*?)\[/size]#msi"

[line 44]

The regular expression used to parse the source text and find matches conforming to this rule. Used by the parse() method.
  • See: parse()
  • Access: public

Type:   string


[ Top ]



Method Detail

process   [line 66]

string process( array &$matches)

Generates a replacement for the matched text. Token options are:
  • 'type' => ['start'|'end'] The starting or ending point of the sized text.

The text itself is left in the source but may content bested blocks

  • 'level' => the level of nesting (starting 0)
  • 'size' => the size indicator

  • Return: Delimited by start/end tokens to be used as placeholder in the source text surrounding the text to be sized.
  • Access: public

Parameters:

array   &$matches   —  The array of matches from parse().

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:50:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.