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

Class: Text_Wiki_Parse_Image

Source Location: /Text_Wiki_Tiki-0.1.0/Text/Wiki/Parse/Tiki/Image.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Image

Parses for image placement.


Author(s):

Version:

  • $Id: Image.php 191168 2005-07-21 20:56:15Z justinpatrin $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 21]
Parses for image placement.


[ Top ]


Class Variables

$regex =  '/{img\s+(.+?)\s*}/i'

[line 35]

The regular expression used to find source text matching this rule.
  • Access: public

Type:   string


[ Top ]



Method Detail

process   [line 55]

A process( array &$matches)

Generates a token entry for the matched text. Token options are:

'src' => The image source, typically a relative path name.

'opts' => Any macro options following the source.

  • Return: delimited token number to be used as a placeholder in the source text.
  • Access: public

Parameters:

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

[ Top ]


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