[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Helpers/ -> ConfigHelper.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 186 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  filterConfig()
  generateQuickMatchFromList()
  optimizeArray()
  toArray()

Functions
Functions that are not part of a class:

filterConfig(array $config, $target = 'PHP')   X-Ref
Recursively filter a config array to replace variants with the desired value

param: array  $config Config array
param: string $target Target parser
return: array          Filtered config

generateQuickMatchFromList(array $strings)   X-Ref
Generate a quickMatch string from a list of strings

This is basically a LCS implementation, tuned for small strings and fast failure

param: array $strings Array of strings
return: mixed          quickMatch string, or FALSE if none could be generated

optimizeArray(array &$config, array &$cache = [])   X-Ref
Optimize the size of a deep array by deduplicating identical structures

This method is meant to be used on a config array which is only read and never modified

param: array &$config
param: array &$cache
return: array

toArray($value, $keepEmpty = false, $keepNull = false)   X-Ref
Convert a structure to a (possibly multidimensional) array

param: mixed $value
param: bool  $keepEmpty Whether to keep empty arrays instead of removing them
param: bool  $keepNull  Whether to keep NULL values instead of removing them
return: array



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1