本文整理匯總了PHP中admin_setting_configcheckbox::admin_setting_configcheckbox方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin_setting_configcheckbox::admin_setting_configcheckbox方法的具體用法?PHP admin_setting_configcheckbox::admin_setting_configcheckbox怎麽用?PHP admin_setting_configcheckbox::admin_setting_configcheckbox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類admin_setting_configcheckbox
的用法示例。
在下文中一共展示了admin_setting_configcheckbox::admin_setting_configcheckbox方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* Constructor - same as admin_setting_configcheckbox
*
* @return void
**/
function admin_setting_special_pageformatonfrontpage($name, $visiblename, $description, $defaultsetting)
{
parent::admin_setting_configcheckbox($name, $visiblename, $description, $defaultsetting);
}
示例2:
function admin_setting_special_debugdisplay()
{
$name = 'debugdisplay';
$visiblename = get_string('debugdisplay', 'admin');
$description = get_string('configdebugdisplay', 'admin');
$default = ini_get('display_errors');
parent::admin_setting_configcheckbox($name, $visiblename, $description, $default);
}
示例3:
function admin_setting_special_gradelimiting()
{
parent::admin_setting_configcheckbox('unlimitedgrades', get_string('unlimitedgrades', 'grades'), get_string('configunlimitedgrades', 'grades'), '0', '1', '0');
}
示例4:
function admin_setting_special_pageformatonfrontpage()
{
parent::admin_setting_configcheckbox('pageformatonfrontpage', get_string('pageformatonfrontpage', 'format_page'), get_string('pageformatonfrontpagedesc', 'format_page'), 0);
}