◆ __construct()
| __construct |
( |
|
$base, |
|
|
|
$lang = null, |
|
|
|
$metadata = array() |
|
) |
| |
Initialize a new I18NString instance.
- Parameters
-
| string | $base | text in default content language |
| array | $lang | text in additional languages |
| array | $metadata | database info for id, table, field |
◆ __toString()
Return the text representation of this object.
◆ fetchDataForField()
| static fetchDataForField |
( |
|
$object_id, |
|
|
|
$table, |
|
|
|
$field |
|
) |
| |
|
static |
◆ fetchDataForRow()
| static fetchDataForRow |
( |
|
$object_id, |
|
|
|
$table |
|
) |
| |
|
static |
◆ load()
| static load |
( |
|
$object_id, |
|
|
|
$table, |
|
|
|
$field, |
|
|
|
$base = null |
|
) |
| |
|
static |
- Parameters
-
| $object_id | |
| $table | |
| $field | |
| null | $base | |
- Returns
- I18NString
◆ original()
Return the string in the default content language.
- Returns
- string
◆ removeTranslations()
◆ setMetadata()
◆ setOriginal()
◆ setTranslations()
◆ storeTranslations()
Stores the i18n String manually in the database
◆ toArray()
Return an array containg the text in all additional languages.
- Returns
- array
◆ translation()
Return the string in the specified additional language.
- Parameters
-
- Returns
- string
◆ trim()
| trim |
( |
|
$symbols = " \t\n\r\0\x0B" | ) |
|
Trim all language strings
- Parameters
-
| string | $symbols | All symbols to trim. |
- Returns
- I18NString
The documentation for this class was generated from the following file: