Lines Matching defs:config
20 protected $config = [
39 if ($this->config['usetitles']) {
75 if (PhpString::strlen($lookup) < $this->config['autocomplete']['mininput']) return [];
78 $max = $this->config['autocomplete']['maxresult'];
81 $data = ft_pageLookup($lookup, true, $this->config['usetitles']);
84 $filter = $this->config['autocomplete']['filter'];
93 if ($this->config['usetitles']) {
126 if (!$this->config['usetitles']) {
145 if (!$this->config['usetitles']) {
164 if ($this->config['usetitles']) {
178 if ($this->config['usetitles']) {
199 if (!$this->config['usetitles']) {
239 * Merge the current config with the base config of the type.
242 * Required to migrate deprecated / obsolete options, no longer part of type config.
245 * @param array $config Base Type configuration
247 protected function mergeConfig($current, &$config)
250 if (isset($config[$key]) && is_array($config[$key])) {
251 $this->mergeConfig($value, $config[$key]);
253 $config[$key] = $value;
258 if (empty($config['autocomplete']['filter'])) {
259 if (!empty($config['autocomplete']['namespace'])) {
260 $config['autocomplete']['filter'] = $config['autocomplete']['namespace'];
261 unset($config['autocomplete']['namespace']);
263 if (!empty($config['autocomplete']['postfix'])) {
264 $config['autocomplete']['filter'] .= '.+?' . $config['autocomplete']['postfix'] . '$';
265 unset($config['autocomplete']['postfix']);