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

Class: Text_Wiki_Parse_Blockquote

Source Location: /Text_Wiki_Cowiki-0.0.2/Text/Wiki/Parse/Cowiki/Blockquote.php

Class Overview


Parse for block-quoted text.




Inherited Variables

Inherited Methods

Class Details

[line 37]
Parse for block-quoted text.

Find source text marked as a blockquote, identified by any number of greater-than signs '>' at the start of the line, followed by a space, and then the quote text; each '>' indicates an additional level of quoting.

[ Top ]

Class Variables

$regex =  '/\n((\>).*\n)(?!(\>))/Us'

[line 52]

Regex for parsing the source text.
  • See: parse()
  • Access: public

Type:   string

[ Top ]

Method Detail

process   [line 77]

A process( array &$matches)

Generates a replacement for the matched text.

Token options are:

'type' => 'start' : the start of a blockquote 'end' : the end of a blockquote

'level' => the indent level (0 for the first level, 1 for the second, etc)

  • Return: series of text and delimited tokens marking the different list text and list elements.
  • Access: public


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

[ Top ]

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