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

Class: Text_Wiki_Render_Xhtml_Smiley

Source Location: /Text_Wiki-1.2.4/Text/Wiki/Render/Xhtml/Smiley.php

Class Overview

Text_Wiki_Render
   |
   --Text_Wiki_Render_Xhtml_Smiley

Smiley rule Xhtml render class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 bertrand Gugger

Variables

Methods


Inherited Variables

Inherited Methods

Class: Text_Wiki_Render

Text_Wiki_Render::__construct()
Constructor for this render format or rule.
Text_Wiki_Render::Text_Wiki_Render()
Constructor for this render format or rule.
Text_Wiki_Render::formatConf()
Simple method to wrap a configuration in an sprintf() format.
Text_Wiki_Render::getConf()
Simple method to safely get configuration key values.
Text_Wiki_Render::textEncode()
Default method to render text (htmlspecialchars)
Text_Wiki_Render::urlEncode()
Default method to render url

Class Details

[line 29]
Smiley rule Xhtml render class


[ Top ]


Class Variables

$conf = array(
        'prefix' => 'images/smiles/icon_',
        'extension' => '.gif',
        'css' => null
    )

[line 45]

Configuration keys for this rule

'prefix' => the path to smileys images inclusive file name prefix, starts with '/' ==> abolute reference if no file names prefix but some folder, terminates with '/' 'extension' => the file extension (inclusive '.'), e.g. : if prefix 'smileys/icon_' and extension '.gif' ':)' whose name is 'smile' will give relative file 'smileys/icon_smile.gif' if prefix '/image/smileys/' and extension '.png': absolute '/image/smileys/smile.gif' 'css' => optional style applied to smileys

  • Var: 'config-key' => mixed config-value
  • Access: public

Type:   array
Overrides:   Array


[ Top ]



Method Detail

token   [line 59]

string token( array $options)

Renders a token into text matching the requested format.

process the Smileys

  • Return: The text rendered from the token options.
  • Access: public

Parameters:

array   $options   —  The "options" portion of the token (second element).

[ Top ]


Documentation generated on Tue, 12 Mar 2019 21:49:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.