[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Items/AttributeFilters/ -> HashmapFilter.php (summary)

(no description)

File Size: 91 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HashmapFilter:: (3 methods):
  __construct()
  setMap()
  optimizeLooseMap()


Class: HashmapFilter  - X-Ref


__construct(array $map = null, $strict = false)   X-Ref
Constructor

param: array $map    Associative array in the form [key => value]
param: bool  $strict Whether this map is strict (values with no match are invalid)

setMap(array $map, $strict = false)   X-Ref
Set the content of this map

param: array $map    Associative array in the form [word => replacement]
param: bool  $strict Whether this map is strict (values with no match are invalid)
return: void

optimizeLooseMap(array $map)   X-Ref
Optimize a non-strict map by removing values that are identical to their key

param: array $map Original map
return: array      Optimized map



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1