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

Class: Smarty_GettextHelper

Source Location: /smarty/gettext_plugin/Smarty_GettextHelper.class.php

Class Overview




Variables

Methods



Class Details

[line 58]


[ Top ]


Class Variables

static $compiler =  null

[line 65]

Smarty_Compiler instance



Tags:

access:  public

Type:   object


[ Top ]

static $counter =  1

[line 79]

Template var counter



Tags:

access:  public

Type:   int


[ Top ]

static $map = array()

[line 72]

Temporary map for template vars



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


static method preg_collector_callback [line 88]

static void preg_collector_callback( array $matches)

Callback for preg_replace_callback(). Searches preg matches for template vars.

Found vars will be added to the template var map. Takes array with preg matches as first argument.




Tags:

access:  public


Parameters:

array   $matches   Preg matches

[ Top ]

static method preg_translator_callback [line 110]

static string preg_translator_callback( array $matches)

Callback for preg_replace_callback(). Searches preg matches for template vars and replaces them with sprintf() placeholders. Takes array with preg matches as first argument, returns string.



Tags:

access:  public


Parameters:

array   $matches   Preg matches

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:52:03 +0100 by phpDocumentor 1.4.3