MDL-77347 mod_feedback: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared.
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user