On occasion, you may need to unregister or retrieve a plugin. The following methods of the front controller allow you to do so:
getPlugin($class)allows you to retrieve a plugin by class name. If no plugins match, it returns
FALSE. If more than one plugin of that class is registered, it returns an array.
getPlugins()retrieves the entire plugin stack.
unregisterPlugin($plugin)allows you to remove a plugin from the stack. You may pass a plugin object, or the class name of the plugin you wish to unregister. If you pass the class name, any plugins of that class will be removed.