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

Class: Text_Wiki_Parse_Default_Blockquote

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

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Default_Blockquote

Parse for block-quoted text.


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Inherited Variables

Inherited Methods

Class: Text_Wiki_Parse

Text_Wiki_Parse::__construct()
Constructor for this parser rule.
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 36]
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.

  • Author: Paul M. Jones <pmjones@php.net>
  • Version: Release: @package_version@


[ Top ]


Class Variables

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

[line 51]

Regex for parsing the source text.

Type:   string
Overrides:   Array


[ Top ]



Method Detail

process   [line 76]

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 Tue, 12 Mar 2019 21:49:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.