本文整理汇总了PHP中PluginManager::getPluginObjects方法的典型用法代码示例。如果您正苦于以下问题:PHP PluginManager::getPluginObjects方法的具体用法?PHP PluginManager::getPluginObjects怎么用?PHP PluginManager::getPluginObjects使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginManager
的用法示例。
在下文中一共展示了PluginManager::getPluginObjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin
/**
* show list of plugins
*
* @return void
* @author Andy Bennett
*/
function admin()
{
$pm = new PluginManager();
$view = new View('plugins/index');
$view->set('plugins', $pm->getPluginObjects());
$copy = $view->render();
$this->render($copy);
}
示例2: edit
function edit()
{
$c = new Container($this->uri->segment(3, $_POST['container']));
// This includes deactivated plugins! They need to be filtered out
$pm = new PluginManager();
$all_plugins = $pm->getPluginObjects();
$container_plugins = $c->getPlugins();
/* print Kohana::debug($all_plugins);
print Kohana::debug($container_plugins);
// This returns only the instantiated objects
print Kohana::debug(array_intersect_key($all_plugins, $container_plugins));*/
$view = new View('containers_edit');
$view->container = $c;
objectSort($all_plugins, 'column');
$view->all_plugins = $all_plugins;
$view->plugin_instances = $container_plugins;
$copy = $view->render();
$this->render($copy);
}