本文整理匯總了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();
}