mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
Merge branch 'MDL-74412-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
2496a8910c
@ -77,4 +77,8 @@ class comment_count_column extends column_base {
|
||||
echo \html_writer::tag('a', $commentcount, $attributes);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -88,4 +88,8 @@ class custom_field_column extends column_base {
|
||||
}
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,4 +57,8 @@ class question_status_column extends column_base {
|
||||
}
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -36,6 +36,10 @@ class history_action_column extends menu_action_column_base {
|
||||
$this->strpreview = get_string('history_action', 'qbank_history');
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'historyaction';
|
||||
}
|
||||
|
@ -40,4 +40,8 @@ class version_number_column extends column_base {
|
||||
print_string('questionversiondata', 'qbank_history', $question->version);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -63,4 +63,9 @@ class discrimination_index extends column_base {
|
||||
$discriminationindex = helper::calculate_average_question_discrimination_index($question->id);
|
||||
echo $PAGE->get_renderer('qbank_statistics')->render_discrimination_index($discriminationindex);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,4 +61,8 @@ class discriminative_efficiency extends column_base {
|
||||
$discriminativeefficiency = helper::calculate_average_question_discriminative_efficiency($question->id);
|
||||
echo $PAGE->get_renderer('qbank_statistics')->render_discriminative_efficiency($discriminativeefficiency);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
}
|
||||
|
@ -61,4 +61,9 @@ class facility_index extends column_base {
|
||||
$facility = helper::calculate_average_question_facility($question->id);
|
||||
echo $PAGE->get_renderer('qbank_statistics')->render_facility_index($facility);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -58,4 +58,8 @@ class question_usage_column extends column_base {
|
||||
echo \html_writer::tag('a', $usagecount, $attributes);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -71,4 +71,8 @@ class creator_name_column extends column_base {
|
||||
];
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -80,4 +80,8 @@ class question_name_idnumber_tags_column extends viewquestionname_column_helper
|
||||
parent::load_question_tags($questions);
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -245,7 +245,6 @@ abstract class column_base {
|
||||
protected function get_classes(): string {
|
||||
$classes = $this->get_extra_classes();
|
||||
$classes[] = $this->get_name();
|
||||
$classes[] = 'pr-3';
|
||||
return implode(' ', $classes);
|
||||
}
|
||||
|
||||
|
@ -105,4 +105,9 @@ class edit_menu_column extends column_base {
|
||||
public function get_actions(): array {
|
||||
return $this->actions;
|
||||
}
|
||||
|
||||
public function get_extra_classes(): array {
|
||||
return ['pr-3'];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user