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

Class: Text_Wiki_Parse_Blockquote

Source Location: /Text_Wiki-0.23.0/Text/Wiki/Parse/Blockquote.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Blockquote

Parse for block-quoted text.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Text_Wiki_Parse

Text_Wiki_Parse::Text_Wiki_Parse()
Constructor for this parser rule.
Text_Wiki_Parse::getAttrs()
Extract 'attribute="value"' portions of wiki markup.
Text_Wiki_Parse::getConf()
Simple method to safely get configuration key values.
Text_Wiki_Parse::parse()
Abstrct method to parse source text for matches.
Text_Wiki_Parse::process()
Abstract method to generate replacements for matched text.

Class Details

[line 20]
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.

$Id: Blockquote.php,v 1.3 2004/09/25 19:05:13 pmjones Exp $



[ Top ]


Class Variables

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

[line 35]

Regex for parsing the source text.

Type:   string
Overrides:   Array


[ Top ]



Method Detail

process   [line 60]

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

Overrides Text_Wiki_Parse::process() (Abstract method to generate replacements for matched text.)

Parameters:

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

[ Top ]


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