[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/phpbb/textformatter/ -> data_access.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: 252 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

data_access:: (9 methods):
  __construct()
  get_bbcodes()
  get_smilies()
  get_styles()
  get_styles_templates()
  resolve_style_filename()
  get_censored_words()
  decode_rowset()
  fetch_decoded_rowset()


Class: data_access  - X-Ref

Data access layer that fetchs BBCodes, smilies and censored words from the database.
To be extended to include insert/update/delete operations.

Also used to get templates.
__construct(\phpbb\db\driver\driver_interface $db, $bbcodes_table, $smilies_table, $styles_table, $words_table, $styles_path)   X-Ref
Constructor

param: \phpbb\db\driver\driver_interface $db Database connection
param: string $bbcodes_table Name of the BBCodes table
param: string $smilies_table Name of the smilies table
param: string $styles_table  Name of the styles table
param: string $words_table   Name of the words table
param: string $styles_path   Path to the styles dir

get_bbcodes()   X-Ref
Return the list of custom BBCodes

return: array

get_smilies()   X-Ref
Return the list of smilies

return: array

get_styles()   X-Ref
Return the list of installed styles

return: array

get_styles_templates()   X-Ref
Return the bbcode.html template for every installed style

return: array 2D array. style_id as keys, each element is an array with a "template" element that contains the style's bbcode.html and a "bbcodes" element that contains the name of each BBCode that is to be stylised

resolve_style_filename(array $styles, array $style)   X-Ref
Resolve inheritance for given style and return the path to their bbcode.html file

param: array       $styles Associative array of [style_id => style] containing all styles
param: array       $style  Style for which we resolve
return: string|bool         Path to this style's bbcode.html, or FALSE

get_censored_words()   X-Ref
Return the list of censored words

return: array

decode_rowset(array $rows, array $columns)   X-Ref
Decode HTML special chars in given rowset

param: array $rows    Original rowset
param: array $columns List of columns to decode
return: array          Decoded rowset

fetch_decoded_rowset($sql, array $columns = [])   X-Ref
Fetch all rows for given query and decode plain text columns

param: string $sql     SELECT query
param: array  $columns List of columns to decode
return: array



Generated: Sat Oct 26 11:28:42 2019 Cross-referenced by PHPXref 0.7.1