Lines Matching refs:type
50 public function getList($type = '', $all = false) argument
54 if (!$type) {
58 if (!isset($this->listByType[$type]['enabled'])) {
59 $this->listByType[$type]['enabled'] = $this->getListByType($type, true);
61 if ($all && !isset($this->listByType[$type]['disabled'])) {
62 $this->listByType[$type]['disabled'] = $this->getListByType($type, false);
66 ? array_merge($this->listByType[$type]['enabled'], $this->listByType[$type]['disabled'])
67 : $this->listByType[$type]['enabled'];
81 public function load($type, $name, $new = false, $disabled = false) argument
94 $class = $type . '_plugin_' . $name;
98 if (!empty($DOKU_PLUGINS[$type][$name])) {
99 if ($new || !$DOKU_PLUGINS[$type][$name]->isSingleton()) {
103 return $DOKU_PLUGINS[$type][$name];
130 $DOKU_PLUGINS[$type][$name] = new $class();
136 return $DOKU_PLUGINS[$type][$name];
311 foreach (['default', 'protected'] as $type) {
312 if (array_key_exists($type, $config_cascade['plugins'])) {
313 … $this->pluginCascade[$type] = $this->checkRequire($config_cascade['plugins'][$type]);
333 * @param string $type plugin_type name; the type of plugin to return,
338 protected function getListByType($type, $enabled) argument
346 if (file_exists(DOKU_PLUGIN . "$plugin/$type.php")) {
350 $typedir = DOKU_PLUGIN . "$plugin/$type/";