phpBB API Documentation
Class

phpbb\profilefields\lang_helper

class lang_helper

Custom Profile Fields

Methods

__construct($db, $language_table)

Construct

load_preview_options($field_id, $lang_id, $preview_options)

Loads preview options into language entries for options

load_option_lang($lang_id)

Fetches language entries for options from DB

boolean is_set($field_id, $lang_id = null, $field_value = null)

Are language options set for this field?

string get($field_id, $lang_id, $field_value = null)

Get the selected language string

Details

at line 45
public __construct($db, $language_table)

Construct

Parameters

$db
$language_table

at line 58
public load_preview_options($field_id, $lang_id, $preview_options)

Loads preview options into language entries for options

Parameters

$field_id
$lang_id
$preview_options

at line 81
public load_option_lang($lang_id)

Fetches language entries for options from DB

Parameters

$lang_id

at line 106
public boolean is_set($field_id, $lang_id = null, $field_value = null)

Are language options set for this field?

Parameters

$field_id
$lang_id
$field_value

Return Value

boolean

at line 131
public string get($field_id, $lang_id, $field_value = null)

Get the selected language string

Parameters

$field_id
$lang_id
$field_value

Return Value

string