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


PHP admin_setting_configtext::__construct方法代碼示例

本文整理匯總了PHP中admin_setting_configtext::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin_setting_configtext::__construct方法的具體用法?PHP admin_setting_configtext::__construct怎麽用?PHP admin_setting_configtext::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在admin_setting_configtext的用法示例。


在下文中一共展示了admin_setting_configtext::__construct方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param string $name
  * @param string $visiblename
  * @param string $description
  * @param mixed $defaultsetting string or array
  * @param mixed $paramtype
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $paramtype = PARAM_RAW, $cols = '60', $rows = '8', $filearea = 'bcumarketingimages')
 {
     $this->rows = $rows;
     $this->cols = $cols;
     $this->filearea = $filearea;
     parent::__construct($name, $visiblename, $description, $defaultsetting, $paramtype);
     editors_head_setup();
 }
開發者ID:Gavinthisisit,項目名稱:Moodle,代碼行數:15,代碼來源:admin_confightmleditor.php

示例2: __construct

 /**
  * Config text constructor
  *
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in
  * config_plugins.
  * @param string $visiblename localised
  * @param string $description long localised info
  * @param string $defaultsetting
  * @param int $lower lower range limit
  * @param int $upper upper range limit
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $lower, $upper)
 {
     if ($upper < $lower) {
         throw new coding_exception('Upper range limit is less than the lower range limit.');
     }
     $this->lower = $lower;
     $this->upper = $upper;
     parent::__construct($name, $visiblename, $description, $defaultsetting, PARAM_INT);
 }
開發者ID:lucisgit,項目名稱:moodle-theme_essential,代碼行數:20,代碼來源:essential_admin_setting_configinteger.php

示例3: __construct

 /**
  * Config text constructor
  *
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting'
  * for ones in config_plugins.
  * @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
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $paramtype = PARAM_RAW_TRIMMED, $size = null)
 {
     $this->paramtype = $paramtype;
     if (!is_null($size)) {
         $this->size = $size;
     } else {
         $this->size = $paramtype === PARAM_INT ? 5 : 30;
     }
     parent::__construct($name, $visiblename, $description, $defaultsetting);
 }
開發者ID:mpetrowi,項目名稱:moodle-mod_collaborate,代碼行數:21,代碼來源:trimmed_configtext.php

示例4: __construct

 /**
  * Constructor: uses parent::__construct
  *
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in config_plugins.
  * @param string $visiblename localised
  * @param string $description long localised info
  * @param string $defaultsetting default value for the setting
  * @param boolean $lowercase if true, lowercase the value before writing it to the db.
  * @param boolean $enabled if true, the input field is enabled, otherwise it's disabled.
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $lowercase = false, $enabled = true)
 {
     $this->lowercase = $lowercase;
     $this->enabled = $enabled;
     parent::__construct($name, $visiblename, $description, $defaultsetting);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:16,代碼來源:settingslib.php

示例5: __construct

 /**
  * Constructor
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in config_plugins.
  * @param string $visiblename localised
  * @param string $description long localised info
  * @param array $defaultsetting ('value'=>string, '__construct'=>bool)
  * @param mixed $paramtype int means PARAM_XXX type, string is a allowed format in regex
  * @param int $size default field size
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $paramtype = PARAM_RAW, $size = null)
 {
     parent::__construct($name, $visiblename, $description, $defaultsetting, $paramtype, $size);
 }
開發者ID:raymondAntonio,項目名稱:moodle,代碼行數:13,代碼來源:adminlib.php

示例6: __construct

 /**
  * Config gradepointmax constructor
  *
  * @param string $name Overidden by "gradepointmax"
  * @param string $visiblename Overridden by "gradepointmax" language string.
  * @param string $description Overridden by "gradepointmax_help" language string.
  * @param string $defaultsetting Not used, overridden by 100.
  * @param mixed $paramtype Overridden by PARAM_INT.
  * @param int $size Overridden by 5.
  */
 public function __construct($name = '', $visiblename = '', $description = '', $defaultsetting = '', $paramtype = PARAM_INT, $size = 5)
 {
     $name = 'gradepointmax';
     $visiblename = get_string('gradepointmax', 'grades');
     $description = get_string('gradepointmax_help', 'grades');
     $defaultsetting = 100;
     $paramtype = PARAM_INT;
     $size = 5;
     parent::__construct($name, $visiblename, $description, $defaultsetting, $paramtype, $size);
 }
開發者ID:Alexbado,項目名稱:moodle2,代碼行數:20,代碼來源:adminlib.php

示例7: __construct

 /**
  * Constructor
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in config_plugins.
  * @param string $visiblename localised
  * @param string $description long localised info
  * @param array $defaultsetting ('value'=>string, '__construct'=>bool)
  * @param mixed $paramtype int means PARAM_XXX type, string is a allowed format in regex
  * @param int $size default field size
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $paramtype = PARAM_RAW, $size = null)
 {
     parent::__construct($name, $visiblename, $description, $defaultsetting['value'], $paramtype, $size);
     $this->set_advanced_flag_options(admin_setting_flag::ENABLED, !empty($defaultsetting['adv']));
 }
開發者ID:eamador,項目名稱:moodle-course-custom-fields,代碼行數:14,代碼來源:adminlib.php

示例8: __construct

 public function __construct($name, $visiblename, $description, $defaultsetting)
 {
     parent::__construct($name, $visiblename, $description, $defaultsetting, PARAM_RAW, 50);
 }
開發者ID:sumitnegi933,項目名稱:Moodle_lms_New,代碼行數:4,代碼來源:adminsetting.class.php

示例9: __construct

 public function __construct($role)
 {
     parent::__construct('enrol_flatfile/map_' . $role->id, $role->localname, '', $role->shortname);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:4,代碼來源:adminlib.php

示例10: __construct

 public function __construct($name, $visiblename, $description, $defaultsetting, $paramtype)
 {
     parent::__construct($name, $visiblename, $description, $defaultsetting, $paramtype);
 }
開發者ID:nicolasconnault,項目名稱:moodle2.0,代碼行數:4,代碼來源:adminlib.php

示例11: __construct

 /**
  * Config text constructor
  *
  * @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in
  * config_plugins.
  * @param string $visiblename localised
  * @param string $description long localised info
  * @param string $defaultsetting
  * @param int $regex RegEx expression to test.
  * @param int $error Error message to show if validation fails.
  */
 public function __construct($name, $visiblename, $description, $defaultsetting, $regex, $error)
 {
     $this->regex = $regex;
     $this->error = $error;
     parent::__construct($name, $visiblename, $description, $defaultsetting);
 }
開發者ID:lucisgit,項目名稱:moodle-theme_essential,代碼行數:17,代碼來源:essential_admin_setting_configtext.php


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