Lines Matching refs:name
37 * @param $type string, plugin_type name;
74 * @param $name string name of the plugin to load
81 public function load($type, $name, $new = false, $disabled = false)
87 [$plugin, /* component */ ] = $this->splitName($name);
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];
123 'Plugin name \'%s\' is not a valid plugin name, only the characters a-z and 0-9 are allowed. ' .
130 $DOKU_PLUGINS[$type][$name] = new $class();
136 return $DOKU_PLUGINS[$type][$name];
142 * @param string $plugin name of plugin
155 * @param string $plugin name of plugin
166 * @param string $plugin name of plugin
179 * @param string $plugin name of plugin
333 * @param string $type plugin_type name; the type of plugin to return,
371 * Split name in a plugin name and a component name
373 * @param string $name
375 * - plugin name
376 * - and component name when available, otherwise empty string
378 protected function splitName($name)
380 if (!isset($this->masterList[$name])) {
381 return sexplode('_', $name, 2, '');
384 return [$name, ''];