Merge branch 'MDL-77347-master' of https://github.com/meirzamoodle/moodle
This commit is contained in:
@@ -568,6 +568,9 @@ class files_tree_viewer implements renderable {
|
||||
public $path;
|
||||
public $context;
|
||||
|
||||
/** @var array file tree viewer options. */
|
||||
protected array $options = [];
|
||||
|
||||
/**
|
||||
* Constructor of moodle_file_tree_viewer class
|
||||
* @param file_info $file_info
|
||||
|
||||
@@ -32,6 +32,10 @@ require_once("$CFG->libdir/form/text.php");
|
||||
* @author Laurent David (laurent [at] call-learning [dt] fr)
|
||||
*/
|
||||
class text_with_copy_element extends MoodleQuickForm_text {
|
||||
|
||||
/** @var string an element template. */
|
||||
public $_groupElementTemplate;
|
||||
|
||||
/**
|
||||
* Accepts a renderer
|
||||
*
|
||||
|
||||
@@ -45,6 +45,9 @@ class instance_updated_message implements renderable, templatable {
|
||||
*/
|
||||
protected $instance;
|
||||
|
||||
/** @var int activity type. */
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* Instance updated constructor
|
||||
*
|
||||
|
||||
@@ -81,6 +81,9 @@ class recording extends persistent {
|
||||
/** @var instance A cached copy of the instance */
|
||||
protected $instance;
|
||||
|
||||
/** @var bool imported recording status */
|
||||
public $imported;
|
||||
|
||||
/**
|
||||
* Create an instance of this class.
|
||||
*
|
||||
|
||||
@@ -97,6 +97,45 @@ class ChatDaemon {
|
||||
public $setsinfo = array(); // Keyed by sessionid exactly like conn_sets, one of these for each of those.
|
||||
public $chatrooms = array(); // Keyed by chatid, holding arrays of data.
|
||||
|
||||
/** @var int error reporting level. */
|
||||
public $_trace_level;
|
||||
|
||||
/** @var bool true if function_name exists and is a function, false otherwise. */
|
||||
public $_pcntl_exists;
|
||||
|
||||
/** @var int */
|
||||
public $_time_rest_socket;
|
||||
|
||||
/** @var string beep file location. */
|
||||
public $_beepsoundsrc;
|
||||
|
||||
/** @var int update frequency records. */
|
||||
public $_freq_update_records;
|
||||
|
||||
/** @var int upper limit value in seconds to detect a user has disconnected or not. */
|
||||
public $_freq_poll_idle_chat;
|
||||
|
||||
/** @var resource|false a file pointer resource on success, or false on error. */
|
||||
public $_stdout;
|
||||
|
||||
/** @var array user data with session ID as the key. */
|
||||
public $sets_info = [];
|
||||
|
||||
/** @var array connection data with session ID as the key. */
|
||||
public $conn_sets = [];
|
||||
|
||||
/** @var array connection data. */
|
||||
public $conn_side = [];
|
||||
|
||||
/** @var array connection data. */
|
||||
public $conn_half = [];
|
||||
|
||||
/** @var array connection data. */
|
||||
public $conn_ufo = [];
|
||||
|
||||
/** @var resource|Socket socket resource. */
|
||||
public $listen_socket;
|
||||
|
||||
// IMPORTANT: $connectionssets, $setsinfo and $chatrooms must remain synchronized!
|
||||
// Pay extra attention when you write code that affects any of them!
|
||||
|
||||
|
||||
@@ -35,6 +35,11 @@ class chat_portfolio_caller extends portfolio_module_caller_base {
|
||||
protected $start;
|
||||
/** @var int Timestamp */
|
||||
protected $end;
|
||||
/** @var array Chat messages */
|
||||
protected $messages = [];
|
||||
/** @var bool True if participated, otherwise false. */
|
||||
protected $participated;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
||||
@@ -78,6 +78,9 @@ class mod_feedback_responses_table extends table_sql {
|
||||
/** @var array the data structure containing the table data for the external function */
|
||||
protected $dataforexternal = [];
|
||||
|
||||
/** @var bool true if elements per page > 0, otherwise false. */
|
||||
protected $pageable;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@@ -19,6 +19,10 @@ require_once($CFG->libdir.'/formslib.php');
|
||||
define('FEEDBACK_ITEM_NAME_TEXTBOX_SIZE', 80);
|
||||
define('FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE', 20);
|
||||
abstract class feedback_item_form extends moodleform {
|
||||
|
||||
/** @var string type value in the hidden element. */
|
||||
protected $type;
|
||||
|
||||
public function definition() {
|
||||
$item = $this->_customdata['item']; //the item object
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php');
|
||||
class feedback_info_form extends feedback_item_form {
|
||||
protected $type = "info";
|
||||
|
||||
/** @var object Form element. */
|
||||
protected $infotype;
|
||||
|
||||
public function definition() {
|
||||
|
||||
$item = $this->_customdata['item'];
|
||||
|
||||
@@ -19,6 +19,9 @@ require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php');
|
||||
class feedback_multichoicerated_form extends feedback_item_form {
|
||||
protected $type = "multichoicerated";
|
||||
|
||||
/** @var object Form element */
|
||||
protected $values;
|
||||
|
||||
public function definition() {
|
||||
$item = $this->_customdata['item'];
|
||||
$common = $this->_customdata['common'];
|
||||
|
||||
@@ -38,6 +38,30 @@ require_once($CFG->dirroot . '/mod/survey/lib.php');
|
||||
*/
|
||||
class externallib_test extends externallib_advanced_testcase {
|
||||
|
||||
/** @var \stdClass course record. */
|
||||
protected $course;
|
||||
|
||||
/** @var \stdClass activity record. */
|
||||
protected $survey;
|
||||
|
||||
/** @var \context_module context instance. */
|
||||
protected $context;
|
||||
|
||||
/** @var \StdClass course module. */
|
||||
protected $cm;
|
||||
|
||||
/** @var \StdClass student record. */
|
||||
protected $student;
|
||||
|
||||
/** @var \StdClass teacher record. */
|
||||
protected $teacher;
|
||||
|
||||
/** @var \StdClass student role. */
|
||||
protected $studentrole;
|
||||
|
||||
/** @var \StdClass teacher role. */
|
||||
protected $teacherrole;
|
||||
|
||||
/**
|
||||
* Set up for every test
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user