[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | Copyright (c) 2010-2022 The s9e authors |
License: | http://www.opensource.org/licenses/mit-license.php The MIT License |
File Size: | 212 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ConfigOptimizer:: (12 methods):
__construct()
getVarDeclarations()
optimize()
reset()
canDeduplicate()
deduplicateConfigValues()
getVarName()
isIterable()
optimizeObjectContent()
recordObject()
recordObjectContent()
shouldPreserve()
Class: ConfigOptimizer - X-Ref
This class creates local variables to deduplicate complex configValues__construct(Encoder $encoder) X-Ref |
Constructor param: Encoder $encoder |
getVarDeclarations() X-Ref |
Return the var declarations for all deduplicated config values return: string JavaScript code |
optimize($object) X-Ref |
Optimize given config object param: array|Dictionary $object Original config object return: array|Dictionary Modified config object |
reset() X-Ref |
Clear the deduplicated config values stored in this instance return: void |
canDeduplicate($value) X-Ref |
Test whether given value can be deduplicated param: mixed $value return: bool |
deduplicateConfigValues() X-Ref |
Mark ConfigValue instances that have been used multiple times return: void |
getVarName($js) X-Ref |
Return the name of the variable that will a given value param: string $js JavaScript representation of the value return: string |
isIterable($value) X-Ref |
Test whether given value is iterable param: mixed $value return: bool |
optimizeObjectContent($object) X-Ref |
Optimize given object's content param: array|Dictionary $object Original object return: array|Dictionary Modified object |
recordObject($object) X-Ref |
Record a given config object as a ConfigValue instance param: array|Code|Dictionary $object Original object return: ConfigValue Stored ConfigValue instance |
recordObjectContent($object) X-Ref |
Record the content of given config object param: array|Dictionary $object Original object return: array|Dictionary Modified object containing ConfigValue instances |
shouldPreserve($value) X-Ref |
Test whether given value should be preserved and not deduplicated param: mixed $value return: bool |
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |