當前位置: 首頁>>代碼示例>>PHP>>正文


PHP admin_setting::admin_setting方法代碼示例

本文整理匯總了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);
 }
開發者ID:hmatulis,項目名稱:RTL-BIDI-Hebrew-Moodle-Plugins,代碼行數:14,代碼來源:settingslib.php

示例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);
 }
開發者ID:BackupTheBerlios,項目名稱:samouk-svn,代碼行數:9,代碼來源:adminlib.php

示例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);
 }
開發者ID:veritech,項目名稱:pare-project,代碼行數:9,代碼來源:adminlib.php

示例4:

 function admin_setting_alfresco_category_select($name, $heading, $information)
 {
     parent::admin_setting($name, $heading, $information, '');
 }
開發者ID:remotelearner,項目名稱:elis.alfresco,代碼行數:4,代碼來源:admin_settings_alfresco.php


注:本文中的admin_setting::admin_setting方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。