[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/profilefields/ -> lang_helper.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 140 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lang_helper:: (5 methods):
  __construct()
  load_preview_options()
  load_option_lang()
  is_set()
  get()


Class: lang_helper  - X-Ref

Custom Profile Fields

__construct($db, $language_table)   X-Ref
Construct

param: \phpbb\db\driver\driver_interface    $db        Database object
param: string        $language_table        Table where the language strings are stored

load_preview_options($field_id, $lang_id, $preview_options)   X-Ref
Loads preview options into language entries for options

param: int        $field_id
param: int        $lang_id
param: mixed    $preview_options

load_option_lang($lang_id)   X-Ref
Fetches language entries for options from DB

param: int        $lang_id

is_set($field_id, $lang_id = null, $field_value = null)   X-Ref
Are language options set for this field?

return: boolean
param: int        $field_id        Database ID of the field
param: int        $lang_id        ID of the language
param: int        $field_value    Selected value of the field

get($field_id, $lang_id, $field_value = null)   X-Ref
Get the selected language string

return: string
param: int        $field_id        Database ID of the field
param: int        $lang_id        ID of the language
param: int        $field_value    Selected value of the field



Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1