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

Class: Text_Wiki_Parse_Url

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

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Url

Parse for URLS in the source text.


Author(s):

Version:

  • $Id: Url.php 293784 2010-01-20 18:48:09Z justinpatrin $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 27]
Parse for URLS in the source text.

raw -- http://example.com no descr. -- [[http://example.com]] described -- [[http://example.com|Example Description]]

When rendering a URL token, this will convert URLs pointing to a .gif, .jpg, or .png image into an inline <img /> tag (for the 'xhtml' format).

  • Author: Michele Tomaiuolo <tomamic@yahoo.it>
  • Version: $Id: Url.php 293784 2010-01-20 18:48:09Z justinpatrin $
  • License: LGPL


[ Top ]


Method Detail

Text_Wiki_Parse_Url (Constructor)   [line 41]

Text_Wiki_Parse_Url Text_Wiki_Parse_Url( object &$obj, string $name)

Constructor. Overrides the Text_Wiki_Parse constructor so that we can set the $regex property dynamically (we need to include the Text_Wiki $delim character).

Parameters:

object   &$obj   —  The calling "parent" Text_Wiki object.
string   $name   —  The token name to use for this rule.

[ Top ]

process   [line 67]

string process( array &$matches)

Generates a replacement for the matched text.

Token options are:

'href' => the URL link href portion

'text' => the displayed text of the URL link

  • Return: A token to be used as a placeholder in the source text for the preformatted text.
  • Access: public

Parameters:

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

[ Top ]


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