本文整理汇总了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, '');
}