本文整理汇总了PHP中thebuggenie\core\framework\Context::getUninstalledModules方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getUninstalledModules方法的具体用法?PHP Context::getUninstalledModules怎么用?PHP Context::getUninstalledModules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\framework\Context
的用法示例。
在下文中一共展示了Context::getUninstalledModules方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _listAvailable
protected function _listAvailable()
{
$this->cliEcho("\nAvailable modules:\n", 'green', 'bold');
$this->cliEcho("To install a module, use the name in bold as the parameter for the install module task\n\n");
if (count(\thebuggenie\core\framework\Context::getUninstalledModules()) > 0) {
foreach (\thebuggenie\core\framework\Context::getUninstalledModules() as $module_key => $module) {
$this->cliEcho("{$module_key}: ", 'white', 'bold');
$this->cliEcho($module->getLongName());
$this->cliEcho("\n");
}
} else {
$this->cliEcho("There are no available modules\n", 'red');
}
$this->cliEcho("\n");
}
示例2: runConfigureModules
/**
* Configure modules
*
* @param framework\Request $request The request object
*/
public function runConfigureModules(framework\Request $request)
{
$this->module_message = framework\Context::getMessageAndClear('module_message');
$this->module_error = framework\Context::getMessageAndClear('module_error');
$this->modules = framework\Context::getModules();
$this->writable = is_writable(THEBUGGENIE_MODULES_PATH);
$this->uninstalled_modules = framework\Context::getUninstalledModules();
$this->outdated_modules = framework\Context::getOutdatedModules();
$this->is_default_scope = framework\Context::getScope()->isDefault();
}