mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-78159-master' of https://github.com/meirzamoodle/moodle
This commit is contained in:
commit
3e1d6d61a9
@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
|
||||
*/
|
||||
class adminpresets_admin_setting_configmultiselect extends adminpresets_setting {
|
||||
|
||||
/** @var \admin_setting_configmultiselect $settingdata */
|
||||
protected $settingdata;
|
||||
|
||||
/**
|
||||
* Ensure that the $value values are setting choices.
|
||||
*
|
||||
|
@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
|
||||
*/
|
||||
class adminpresets_admin_setting_configselect extends adminpresets_setting {
|
||||
|
||||
/** @var \admin_setting_configselect $settingdata */
|
||||
protected $settingdata;
|
||||
|
||||
/**
|
||||
* Sets the setting value cleaning it.
|
||||
*
|
||||
|
@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
|
||||
*/
|
||||
class adminpresets_admin_setting_configtime extends adminpresets_setting {
|
||||
|
||||
/** @var \admin_setting_configtime $settingdata */
|
||||
protected $settingdata;
|
||||
|
||||
/**
|
||||
* To check that the value is one of the options
|
||||
*
|
||||
|
@ -28,6 +28,9 @@ namespace core_adminpresets\local\setting;
|
||||
*/
|
||||
class adminpresets_admin_setting_special_backupdays extends adminpresets_setting {
|
||||
|
||||
/** @var \admin_setting_special_backupdays $settingdata */
|
||||
protected $settingdata;
|
||||
|
||||
protected function set_value($value) {
|
||||
$this->value = clean_param($value, PARAM_SEQUENCE);
|
||||
$this->set_visiblevalue();
|
||||
|
@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
|
||||
*/
|
||||
class adminpresets_admin_setting_users_with_capability extends adminpresets_admin_setting_configmultiselect {
|
||||
|
||||
/** @var \admin_setting_configmultiselect $settingdata */
|
||||
protected $settingdata;
|
||||
|
||||
protected function set_behaviors() {
|
||||
$this->behaviors['loadchoices'] = &$this->settingdata;
|
||||
}
|
||||
|
@ -141,7 +141,6 @@ abstract class core_role_allow_role_page {
|
||||
$table->cellspacing = 0;
|
||||
$table->width = '90%';
|
||||
$table->align = array('left');
|
||||
$table->rotateheaders = true;
|
||||
$table->head = array(' ');
|
||||
$table->colclasses = array('');
|
||||
|
||||
|
@ -76,7 +76,6 @@ class renderer extends plugin_renderer_base {
|
||||
$label = $tool->get_toolshortname();
|
||||
}
|
||||
$tab = new tabobject($idprefix . $toolname, $link, $label);
|
||||
$tab->extraclass = isset($extraclass[$toolname]) ? $extraclass[$toolname] : null;
|
||||
$tabs[] = $tab;
|
||||
}
|
||||
return $this->render(new tabtree($tabs, $idprefix . $filter->tab));
|
||||
|
@ -1738,6 +1738,8 @@ abstract class admin_setting {
|
||||
private $dependenton = [];
|
||||
/** @var bool Whether this setting uses a custom form control */
|
||||
protected $customcontrol = false;
|
||||
/** @var mixed int means PARAM_XXX type, string is a allowed format in regex */
|
||||
public $paramtype;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -2442,8 +2444,6 @@ class admin_setting_description extends admin_setting {
|
||||
*/
|
||||
class admin_setting_configtext extends admin_setting {
|
||||
|
||||
/** @var mixed int means PARAM_XXX type, string is a allowed format in regex */
|
||||
public $paramtype;
|
||||
/** @var int default field size */
|
||||
public $size;
|
||||
|
||||
@ -3126,11 +3126,12 @@ class admin_setting_configcheckbox extends admin_setting {
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class admin_setting_configmulticheckbox extends admin_setting {
|
||||
/** @var array Array of choices value=>label */
|
||||
public $choices;
|
||||
/** @var callable|null Loader function for choices */
|
||||
protected $choiceloader = null;
|
||||
|
||||
/** @var array Array of choices value=>label. */
|
||||
public $choices;
|
||||
|
||||
/**
|
||||
* Constructor: uses parent::__construct
|
||||
*
|
||||
@ -4664,7 +4665,8 @@ class admin_setting_bloglevel extends admin_setting_configselect {
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class admin_setting_courselist_frontpage extends admin_setting {
|
||||
/** @var array Array of choices value=>label */
|
||||
|
||||
/** @var array Array of choices value=>label. */
|
||||
public $choices;
|
||||
|
||||
/**
|
||||
@ -6260,7 +6262,8 @@ class admin_setting_special_gradepointmax extends admin_setting_configtext {
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class admin_setting_gradecat_combo extends admin_setting {
|
||||
/** @var array Array of choices */
|
||||
|
||||
/** @var array Array of choices value=>label. */
|
||||
public $choices;
|
||||
|
||||
/**
|
||||
|
@ -178,7 +178,7 @@ class dml_multiple_records_exception extends dml_exception {
|
||||
*/
|
||||
class dml_missing_record_exception extends dml_exception {
|
||||
/** @var string A table's name.*/
|
||||
public $table;
|
||||
public $tablename;
|
||||
/** @var string An SQL query.*/
|
||||
public $sql;
|
||||
/** @var array The SQL's parameters.*/
|
||||
|
@ -3154,6 +3154,8 @@ class curl {
|
||||
private $ignoresecurity;
|
||||
/** @var array $mockresponses For unit testing only - return the head of this list instead of making the next request. */
|
||||
private static $mockresponses = [];
|
||||
/** @var array temporary params value if the value is not belongs to class stored_file. */
|
||||
public $_tmp_file_post_params = [];
|
||||
|
||||
/**
|
||||
* Curl constructor.
|
||||
@ -4261,6 +4263,9 @@ class curl_cache {
|
||||
/** @var string Path to cache directory */
|
||||
public $dir = '';
|
||||
|
||||
/** @var int the repositorycacheexpire config value. */
|
||||
private $ttl;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -568,6 +568,12 @@ class filterobject {
|
||||
/** @var null|string once initialised, holds the mangled HTML to replace the regexp with. */
|
||||
public $workreplacementphrase = null;
|
||||
|
||||
/** @var null|callable hold a replacement function to be called. */
|
||||
public $replacementcallback;
|
||||
|
||||
/** @var null|array data to be passed to $replacementcallback. */
|
||||
public $replacementcallbackdata;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
@ -57,6 +57,9 @@ class phpFlickr {
|
||||
var $token;
|
||||
var $php_version;
|
||||
|
||||
/** @var curl cURL class. */
|
||||
private $curl;
|
||||
|
||||
/**
|
||||
* When your database cache table hits this many rows, a cleanup
|
||||
* will occur to get rid of all of the old rows and cleanup the
|
||||
@ -78,7 +81,6 @@ class phpFlickr {
|
||||
$this->api_key = $api_key;
|
||||
$this->secret = $secret;
|
||||
$this->die_on_error = false;
|
||||
$this->service = "flickr";
|
||||
$this->token = $token;
|
||||
//Find the PHP version and store it for future reference
|
||||
$this->php_version = explode("-", phpversion());
|
||||
@ -1134,12 +1136,6 @@ class phpFlickr {
|
||||
// $args['async'] = 1;
|
||||
$args['api_key'] = $this->api_key;
|
||||
|
||||
if (!empty($this->email)) {
|
||||
$args['email'] = $this->email;
|
||||
}
|
||||
if (!empty($this->password)) {
|
||||
$args['password'] = $this->password;
|
||||
}
|
||||
if (!empty($this->token)) {
|
||||
$args['auth_token'] = $this->token;
|
||||
}
|
||||
|
@ -1682,6 +1682,12 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
*/
|
||||
const DEP_HIDE = 1;
|
||||
|
||||
/** @var string request class HTML. */
|
||||
protected $_reqHTML;
|
||||
|
||||
/** @var string advanced class HTML. */
|
||||
protected $_advancedHTML;
|
||||
|
||||
/**
|
||||
* Class constructor - same parameters as HTML_QuickForm_DHTMLRulesTableless
|
||||
*
|
||||
@ -3104,6 +3110,12 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
|
||||
*/
|
||||
var $_collapseButtons = '';
|
||||
|
||||
/** @var string request class HTML. */
|
||||
protected $_reqHTML;
|
||||
|
||||
/** @var string advanced class HTML. */
|
||||
protected $_advancedHTML;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
@ -154,6 +154,20 @@ class graph {
|
||||
var $y_tick_labels = null; // array of text values for y-axis tick labels
|
||||
var $offset_relation = null; // array of offsets for different sets of data
|
||||
|
||||
/** @var array y_order data. */
|
||||
public $y_order = [];
|
||||
|
||||
/** @var array y_format data. */
|
||||
public $y_format = [];
|
||||
|
||||
/** @var array x_data data. */
|
||||
public $x_data = [];
|
||||
|
||||
/** @var array colour. */
|
||||
public $colour = [];
|
||||
|
||||
/** @var array y_data data. */
|
||||
public $y_data = [];
|
||||
|
||||
// init all text - title, labels, and axis text.
|
||||
function init() {
|
||||
|
@ -79,6 +79,9 @@ abstract class moodle_list {
|
||||
public $pageurl;
|
||||
public $pageparamname;
|
||||
|
||||
/** @var int no of top level items. */
|
||||
private $itemsperpage;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
@ -3070,6 +3070,12 @@ class section_info implements IteratorAggregate {
|
||||
*/
|
||||
private $modinfo;
|
||||
|
||||
/**
|
||||
* True if has activities, otherwise false.
|
||||
* @var bool
|
||||
*/
|
||||
public $hasactivites;
|
||||
|
||||
/**
|
||||
* Constructs object from database information plus extra required data.
|
||||
* @param object $data Array entry from cached sectioncache
|
||||
|
@ -158,6 +158,12 @@ class navigation_node implements renderable {
|
||||
public $showinsecondarynavigation = true;
|
||||
/** @var bool If set to true the children of this node will be displayed within a submenu when applicable */
|
||||
public $showchildreninsubmenu = false;
|
||||
/** @var string tab element ID. */
|
||||
public $tab;
|
||||
/** @var string unique identifier. */
|
||||
public $moremenuid;
|
||||
/** @var bool node that have children. */
|
||||
public $haschildren;
|
||||
|
||||
/**
|
||||
* Constructs a new navigation_node
|
||||
@ -2279,7 +2285,6 @@ class global_navigation extends navigation_node {
|
||||
if ($this->includesectionnum !== false && $this->includesectionnum == $section->section) {
|
||||
$this->load_section_activities($sectionnode, $section->section, $activities);
|
||||
}
|
||||
$section->sectionnode = $sectionnode;
|
||||
$navigationsections[$sectionid] = $section;
|
||||
}
|
||||
}
|
||||
|
@ -61,6 +61,19 @@ class oauth_helper {
|
||||
protected $http;
|
||||
/** @var array options to pass to the next curl request */
|
||||
protected $http_options;
|
||||
/** @var moodle_url oauth callback URL. */
|
||||
protected $oauth_callback;
|
||||
/** @var string access token. */
|
||||
protected $access_token;
|
||||
/** @var string access secret token. */
|
||||
protected $access_token_secret;
|
||||
/** @var string sign secret. */
|
||||
protected $sign_secret;
|
||||
/** @var string nonce. */
|
||||
protected $nonce;
|
||||
/** @var int timestamp. */
|
||||
protected $timestamp;
|
||||
|
||||
|
||||
/**
|
||||
* Contructor for oauth_helper.
|
||||
|
@ -170,18 +170,17 @@ class popup_action extends component_action {
|
||||
*/
|
||||
public function __construct($event, $url, $name='popup', $params=array()) {
|
||||
global $CFG;
|
||||
$this->name = $name;
|
||||
|
||||
$url = new moodle_url($url);
|
||||
|
||||
if ($this->name) {
|
||||
$_name = $this->name;
|
||||
if (($_name = preg_replace("/\s/", '_', $_name)) != $this->name) {
|
||||
throw new coding_exception('The $name of a popup window shouldn\'t contain spaces - string modified. '. $this->name .' changed to '. $_name);
|
||||
$this->name = $_name;
|
||||
if ($name) {
|
||||
$_name = $name;
|
||||
if (($_name = preg_replace("/\s/", '_', $_name)) != $name) {
|
||||
throw new coding_exception('The $name of a popup window shouldn\'t contain spaces - string modified. '. $name .' changed to '. $_name);
|
||||
$name = $_name;
|
||||
}
|
||||
} else {
|
||||
$this->name = 'popup';
|
||||
$name = 'popup';
|
||||
}
|
||||
|
||||
foreach ($this->params as $var => $val) {
|
||||
|
@ -1116,6 +1116,9 @@ class single_select implements renderable, templatable {
|
||||
*/
|
||||
var $helpicon = null;
|
||||
|
||||
/** @var component_action[] component action. */
|
||||
public $actions = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param moodle_url $url form action target, includes hidden fields
|
||||
@ -2866,6 +2869,9 @@ class html_table {
|
||||
/** @var bool Whether to make the table to be scrolled horizontally with ease. Make table responsive across all viewports. */
|
||||
public $responsive = true;
|
||||
|
||||
/** @var string class name to add to this html table. */
|
||||
public $class;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
@ -689,6 +689,31 @@ class theme_config {
|
||||
*/
|
||||
public $activityheaderconfig = [];
|
||||
|
||||
/**
|
||||
* For backward compatibility with old themes.
|
||||
* BLOCK_ADDBLOCK_POSITION_DEFAULT, BLOCK_ADDBLOCK_POSITION_FLATNAV.
|
||||
* @var int
|
||||
*/
|
||||
public $addblockposition;
|
||||
|
||||
/**
|
||||
* editor_scss file(s) provided by this theme.
|
||||
* @var array
|
||||
*/
|
||||
public $editor_scss;
|
||||
|
||||
/**
|
||||
* Name of the class extending \core\output\icon_system.
|
||||
* @var string
|
||||
*/
|
||||
public $iconsystem;
|
||||
|
||||
/**
|
||||
* Theme defines its own editing mode switch.
|
||||
* @var bool
|
||||
*/
|
||||
public $haseditswitch = false;
|
||||
|
||||
/**
|
||||
* Load the config.php file for a particular theme, and return an instance
|
||||
* of this class. (That is, this is a factory method.)
|
||||
|
@ -1851,6 +1851,12 @@ class YUI_config {
|
||||
public $insertBefore = 'firstthemesheet';
|
||||
public $groups = array();
|
||||
public $modules = array();
|
||||
/** @var array The log sources that should be not be logged. */
|
||||
public $logInclude = [];
|
||||
/** @var array Tog sources that should be logged. */
|
||||
public $logExclude = [];
|
||||
/** @var string The minimum log level for YUI logging statements. */
|
||||
public $logLevel;
|
||||
|
||||
/**
|
||||
* @var array List of functions used by the YUI Loader group pattern recognition.
|
||||
|
@ -236,7 +236,6 @@ class html_writer_test extends basic_testcase {
|
||||
|
||||
// The data-name will be present in the output.
|
||||
$row->attributes['data-name'] = 'Fred';
|
||||
$row->class = 'this is a table row';
|
||||
|
||||
$cell = new html_table_cell();
|
||||
|
||||
@ -246,7 +245,6 @@ class html_writer_test extends basic_testcase {
|
||||
|
||||
// The data-name will be present in the output.
|
||||
$cell->attributes['data-name'] = 'John';
|
||||
$cell->class = 'this is a table cell';
|
||||
|
||||
$row->cells[] = $cell;
|
||||
|
||||
|
@ -88,6 +88,21 @@ class webdav_client {
|
||||
*/
|
||||
private $oauthtoken;
|
||||
|
||||
/** @var string Username (for basic/digest auth, see $auth). */
|
||||
private $user;
|
||||
|
||||
/** @var string Password (for basic/digest auth, see $auth). */
|
||||
private $pass;
|
||||
|
||||
/** @var mixed to store xml data that need to be handled. */
|
||||
private $_lock_ref_cdata;
|
||||
|
||||
/** @var mixed to store the deleted xml data. */
|
||||
private $_delete_cdata;
|
||||
|
||||
/** @var string to store the locked xml data. */
|
||||
private $_lock_cdata;
|
||||
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
|
@ -323,7 +323,6 @@ class WikiToMarkdown {
|
||||
$this->list_state = LIST_NONE;
|
||||
$this->list_depth = 0;
|
||||
$this->list_backtrack = array();
|
||||
$this->spelling_on = false;
|
||||
$this->courseid = $courseid;
|
||||
|
||||
// split content into array of single lines
|
||||
|
@ -660,7 +660,7 @@ class page_wiki_comments extends page_wiki {
|
||||
$cell1 = new html_table_cell($OUTPUT->user_picture($user, array('popup' => true)));
|
||||
$cell2 = new html_table_cell(get_string('bynameondate', 'forum', $by));
|
||||
$cell3 = new html_table_cell();
|
||||
$cell3->atributtes ['width'] = "80%";
|
||||
$cell3->attributes['width'] = "80%";
|
||||
$cell4 = new html_table_cell();
|
||||
$cell5 = new html_table_cell();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user