[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Configurator\JavaScript; 9 10 use ArrayObject; 11 use s9e\TextFormatter\Configurator\FilterableConfigValue; 12 use s9e\TextFormatter\Configurator\Helpers\ConfigHelper; 13 14 /** 15 * This class's sole purpose is to identify arrays that need their keys to be preserved in JavaScript 16 */ 17 class Dictionary extends ArrayObject implements FilterableConfigValue 18 { 19 /** 20 * {@inheritdoc} 21 */ 22 public function filterConfig($target) 23 { 24 $value = $this->getArrayCopy(); 25 if ($target === 'JS') 26 { 27 $value = new Dictionary(ConfigHelper::filterConfig($value, $target)); 28 } 29 30 return $value; 31 } 32 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |