mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-68463 user: Remove old selectall attribute
This commit is contained in:
parent
ed23725bc6
commit
07c9106476
2 changed files with 4 additions and 22 deletions
|
@ -54,11 +54,6 @@ class participants extends \table_sql implements dynamic_table {
|
|||
*/
|
||||
protected $courseid;
|
||||
|
||||
/**
|
||||
* @var bool $selectall Has the user selected all users on the page?
|
||||
*/
|
||||
protected $selectall;
|
||||
|
||||
/**
|
||||
* @var string[] The list of countries.
|
||||
*/
|
||||
|
@ -134,10 +129,10 @@ class participants extends \table_sql implements dynamic_table {
|
|||
$mastercheckbox = new \core\output\checkbox_toggleall('participants-table', true, [
|
||||
'id' => 'select-all-participants',
|
||||
'name' => 'select-all-participants',
|
||||
'label' => $this->selectall ? get_string('deselectall') : get_string('selectall'),
|
||||
'label' => get_string('selectall'),
|
||||
'labelclasses' => 'sr-only',
|
||||
'classes' => 'm-1',
|
||||
'checked' => $this->selectall
|
||||
'checked' => false,
|
||||
]);
|
||||
$headers[] = $OUTPUT->render($mastercheckbox);
|
||||
$columns[] = 'select';
|
||||
|
@ -236,7 +231,7 @@ class participants extends \table_sql implements dynamic_table {
|
|||
'classes' => 'usercheckbox m-1',
|
||||
'id' => 'user' . $data->id,
|
||||
'name' => 'user' . $data->id,
|
||||
'checked' => $this->selectall,
|
||||
'checked' => false,
|
||||
'label' => get_string('selectitem', 'moodle', fullname($data)),
|
||||
'labelclasses' => 'accesshide',
|
||||
]);
|
||||
|
@ -453,17 +448,6 @@ class participants extends \table_sql implements dynamic_table {
|
|||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for selectall.
|
||||
*
|
||||
* Note: This will be removed later in the 3.9 development cycle.
|
||||
*
|
||||
* @param bool $selectall
|
||||
*/
|
||||
public function set_selectall(bool $selectall): void {
|
||||
$this->selectall = $selectall;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set filters and build table structure.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue