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

Class: Formagic_Translator

Source Location: /Translator/Translator.php

Class Overview


Formagic translator class


Author(s):

  • Florian Sonnenburg

Version:

  • $Id: Translator.php 126 2011-05-18 18:41:58Z meweasle $

Copyright:

  • Copyright (c) 2010 Florian Sonnenburg

Variables

Methods



Class Details

[line 36]
Formagic translator class

Provides an standard interface used by all Formagic framework classes. Contains no stand-alone translation features: If no translation callback is provided, Formagic_Translator will simply return the same string that was passed in the first place.




Tags:

author:  Florian Sonnenburg
version:  $Id: Translator.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2010 Florian Sonnenburg


[ Top ]


Class Variables

$_callback =

[line 42]

Callback array containing the translation class and method



Tags:

access:  private

Type:   array


[ Top ]



Class Methods


constructor __construct [line 51]

void __construct( )

Constructor

Empty by default, allows subclass initialization.




Tags:

access:  public


[ Top ]

method setCallback [line 62]

void setCallback( mixed $object, string $method)

Sets the translation callback with class and method.



Tags:

access:  public


Parameters:

mixed   $object   Translation class
string   $method   Translation class

[ Top ]

method _ [line 73]

string _( string $string)

Translates a string or returns it if no translator is set.



Tags:

return:  The translated string
access:  public


Parameters:

string   $string   The string to be translated

[ Top ]


Documentation generated on Sun, 22 May 2011 22:40:25 +0200 by phpDocumentor 1.4.3