[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/phpbb/textformatter/s9e/ -> parser.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: 414 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

parser:: (21 methods):
  __construct()
  parse()
  disable_bbcode()
  disable_bbcodes()
  disable_censor()
  disable_magic_url()
  disable_smilies()
  enable_bbcode()
  enable_bbcodes()
  enable_censor()
  enable_magic_url()
  enable_smilies()
  get_errors()
  get_parser()
  set_var()
  set_vars()
  filter_flash_height()
  filter_flash_width()
  filter_font_size()
  filter_img_url()
  is_a_bbcode()


Class: parser  - X-Ref

s9e\TextFormatter\Parser adapter

__construct(\phpbb\cache\driver\driver_interface $cache, $key, factory $factory, \phpbb\event\dispatcher_interface $dispatcher)   X-Ref
Constructor

param: \phpbb\cache\driver\driver_interface $cache
param: string $key Cache key
param: factory $factory
param: \phpbb\event\dispatcher_interface $dispatcher

parse($text)   X-Ref
{@inheritdoc}


disable_bbcode($name)   X-Ref
{@inheritdoc}


disable_bbcodes()   X-Ref
{@inheritdoc}


disable_censor()   X-Ref
{@inheritdoc}


disable_magic_url()   X-Ref
{@inheritdoc}


disable_smilies()   X-Ref
{@inheritdoc}


enable_bbcode($name)   X-Ref
{@inheritdoc}


enable_bbcodes()   X-Ref
{@inheritdoc}


enable_censor()   X-Ref
{@inheritdoc}


enable_magic_url()   X-Ref
{@inheritdoc}


enable_smilies()   X-Ref
{@inheritdoc}


get_errors()   X-Ref
{@inheritdoc}

This will convert the log entries found in s9e\TextFormatter's logger into phpBB error
messages

get_parser()   X-Ref
Return the instance of s9e\TextFormatter\Parser used by this object

return: \s9e\TextFormatter\Parser

set_var($name, $value)   X-Ref
{@inheritdoc}


set_vars(array $vars)   X-Ref
{@inheritdoc}


filter_flash_height($height, $max_height, Logger $logger)   X-Ref
Filter a flash object's height

param: string  $height
param: integer $max_height
param: Logger  $logger
return: mixed              Original value if valid, FALSE otherwise

filter_flash_width($width, $max_width, Logger $logger)   X-Ref
Filter a flash object's width

param: string  $width
param: integer $max_width
param: Logger  $logger
return: mixed              Original value if valid, FALSE otherwise

filter_font_size($size, $max_size, Logger $logger)   X-Ref
Filter the value used in a [size] BBCode

param: string  $size     Original size
param: integer $max_size Maximum allowed size
param: Logger  $logger
return: mixed             Original value if valid, FALSE otherwise

filter_img_url($url, array $url_config, Logger $logger)   X-Ref
Filter an image's URL to enforce restrictions on its dimensions

param: string  $url        Original URL
param: array   $url_config Config used by the URL filter
param: Logger  $logger
return: string|bool         Original value if valid, FALSE otherwise

is_a_bbcode(Tag $tag)   X-Ref
Test whether given tag consumes text that looks like BBCode-styled markup

param: Tag  $tag Original tag
return: bool



Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1