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

Class: Text_Wiki_Parse_Blockquote

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

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Blockquote

Block-quoted text rule parser class (with nesting) for BBCode.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 bertrand Gugger

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Block-quoted text rule parser class (with nesting) for BBCode.


[ Top ]


Class Variables

$regex =  '#\[quote(?:=\s*"(.*?)")?\s*]((?:((?R))|.)*?)\[/quote]#msi'

[line 45]

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

We match [quote=..] ... [/quote] with nesting

  • See: Text_Wiki_Parse::parse()
  • Access: public

Type:   string


[ Top ]



Method Detail

process   [line 67]

string process( array &$matches)

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

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

  • 'level' => the level of nesting (starting 0)
  • 'name' => the author indicator (optional)

  • Return: Delimited by start/end tokens to be used as placeholder in the source text surrounding the text to be quoted.
  • 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.