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

Class: Text_Wiki_Parse_Blockquote

Source Location: /Text_Wiki_Creole-1.0.2/Text/Wiki/Parse/Creole/Blockquote.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Blockquote

Parse for block-quoted text.


Author(s):

Version:

  • $Id: Blockquote.php 230214 2007-02-19 08:57:14Z mic $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
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 an optional space, and then the quote text; each '>' indicates an additional level of quoting.

  • Author: Michele Tomaiuolo <tomamic@yahoo.it>
  • Author: Paul M. Jones <pmjones@php.net>
  • Version: $Id: Blockquote.php 230214 2007-02-19 08:57:14Z mic $
  • License: LGPL


[ Top ]


Class Variables

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

[line 40]

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

Type:   string


[ Top ]



Method Detail

process   [line 65]

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

Parameters:

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

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:40:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.