Stud.IP  4.0 Revision
I18N Class Reference
Collaboration diagram for I18N:
Collaboration graph

Static Public Member Functions

static input ($name, $value, $attributes=array())
 
static textarea ($name, $value, $attributes=array())
 
static isEnabled ()
 

Detailed Description

Translation class

Automatic generation of inputs and textareas for i18n

Member Function Documentation

◆ input()

static input (   $name,
  $value,
  $attributes = array() 
)
static

Create a set of HTML input elements for this form element in text form. One element will be generated for each configured content language.

Parameters
string$nameHTML name of the Inputfild
I18NString$value(Needs to be an i18n input string)
array$attributesAdditional attributes of the input
Returns
string Crafted input
Here is the call graph for this function:

◆ isEnabled()

static isEnabled ( )
static

is more than the default language configured

Returns
bool
Here is the caller graph for this function:

◆ textarea()

static textarea (   $name,
  $value,
  $attributes = array() 
)
static

Create a set of HTML textarea elements for this form element in text form. One element will be generated for each configured content language.

Parameters
string$nameHTML name of the Textarea
I18NString$value(Needs to be an i18n input string)
array$attributesAdditional attributes of the input
Returns
string Crafted textarea
Exceptions
i18nExceptionIf given value was not an i18n Object
Here is the call graph for this function:

The documentation for this class was generated from the following file: