Skip to content

Commit

Permalink
Fix #797 define properties in parent class to prevent php warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Dec 18, 2024
1 parent 0ff2157 commit 8f3a2db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 9 additions & 0 deletions classes/page_with_filter_controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ class mod_attendance_page_with_filter_controls {
/** @var int */
private $sesstype;

/** @var int */
public $page;

/** @var int */
public $group;

/** @var int */
public $sort;

/**
* initialise stuff.
*
Expand Down
7 changes: 1 addition & 6 deletions classes/report_page_params.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class mod_attendance_report_page_params extends mod_attendance_page_with_filter_controls {
/** @var int */
public $group;
/** @var int */
public $sort;
/** @var int */
public $showextrauserdetails;
/** @var int */
public $showsessiondetails;
/** @var int */
public $sessiondetailspos;
/** @var int */
public $page;


/**
* mod_attendance_report_page_params constructor.
Expand Down

0 comments on commit 8f3a2db

Please sign in to comment.