Lines Matching defs:config
30 * @var array current config
32 protected $config = [];
35 * @var array config keys that should not be cleaned despite not being in $config
66 * @param array|null $config The configuration, might be null if nothing saved, yet
71 public function __construct($config = null, $label = '', $ismulti = false, $tid = 0)
73 // general config options
82 if (!is_null($config)) {
83 $this->mergeConfig($config, $this->config);
87 $this->config = array_merge($baseconfig, $this->config);
94 * Merge the current config with the base config of the type
99 * @param array $config Base Type configuration
101 protected function mergeConfig($current, &$config)
104 if (isset($config[$key]) || in_array($key, $this->keepconfig)) {
105 if (isset($config[$key]) && is_array($config[$key])) {
106 $this->mergeConfig($value, $config[$key]);
108 $config[$key] = $value;
122 'config' => json_encode($this->config, JSON_THROW_ON_ERROR),
146 return $this->config;
226 return $this->config['visibility']['ineditor'];
234 return $this->config['visibility']['inpage'];
295 if (isset($this->config['autocomplete']['maxresult']) && $this->config['autocomplete']['maxresult']) {
353 * @param int|null $showCount count for the tag, only passed if summarize was set in config