本文整理匯總了PHP中admin_setting::admin_setting方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin_setting::admin_setting方法的具體用法?PHP admin_setting::admin_setting怎麽用?PHP admin_setting::admin_setting使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類admin_setting
的用法示例。
在下文中一共展示了admin_setting::admin_setting方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* config text contructor
* @param string $name of setting
* @param string $visiblename localised
* @param string $description long localised info
* @param string $defaultsetting
* @param mixed $paramtype int means PARAM_XXX type, string is a allowed format in regex
* @param int $size default field size
*/
function kaltura_admin_setting_configradio($name, $visiblename, $description, $defaultsetting, $choices)
{
$this->choices = $choices;
parent::admin_setting($name, $visiblename, $description, $defaultsetting);
}
示例2: array
function admin_setting_special_gradeexport()
{
$name = 'gradeexport';
$visiblename = get_string('gradeexport', 'admin');
$description = get_string('configgradeexport', 'admin');
$default = array(3 => '1');
// The teahcer role in a default install
parent::admin_setting($name, $visiblename, $description, $default);
}
示例3: array
function admin_setting_special_coursemanager()
{
$name = 'coursemanager';
$visiblename = get_string('coursemanager', 'admin');
$description = get_string('configcoursemanager', 'admin');
$default = array(3 => '1');
// The teahcer role in a default install
parent::admin_setting($name, $visiblename, $description, $default);
}
示例4:
function admin_setting_alfresco_category_select($name, $heading, $information)
{
parent::admin_setting($name, $heading, $information, '');
}