/** * Type as string * @return string */ public final function typeString() { return PluginType::string($this->type()); }
/** * Get plugins * @param mixed $type [optional] false or enum * @param mixed $active [optional] false or enum * @return array array with plugin keys */ protected function getPlugins($type = false, $active = false) { $keys = array(); foreach (self::Plugins() as $plugin) { if (($type === false || $plugin['type'] == PluginType::string($type)) && ($active === false || $plugin['active'] == $active)) { $keys[] = $plugin['key']; } } return $keys; }