* @return string internal name for this column. Used as a CSS class name,
* and to store information about the current sort. Must match PARAM_ALPHA.
*/
- abstract protected function get_name();
+ abstract public function get_name();
/**
* Output the contents of this column.
$this->strselect = get_string('select', 'quiz');
}
- protected function get_name() {
+ public function get_name() {
return 'checkbox';
}
* A column type for the name of the question type.
*/
class question_bank_question_type_column extends question_bank_column_base {
- protected function get_name() {
+ public function get_name() {
return 'qtype';
}
* A column type for the name of the question name.
*/
class question_bank_question_name_column extends question_bank_column_base {
- protected function get_name() {
+ public function get_name() {
return 'questionname';
}
* A column type for the name of the question creator.
*/
class question_bank_creator_name_column extends question_bank_column_base {
- protected function get_name() {
+ public function get_name() {
return 'creatorname';
}
* A column type for the name of the question last modifier.
*/
class question_bank_modifier_name_column extends question_bank_column_base {
- protected function get_name() {
+ public function get_name() {
return 'modifiername';
}
$this->strview = get_string('view');
}
- protected function get_name() {
+ public function get_name() {
return 'editaction';
}
$this->stredit = get_string('preview');
}
- protected function get_name() {
+ public function get_name() {
return 'previewaction';
}
$this->strmove = get_string('move');
}
- protected function get_name() {
- return 'editaction';
+ public function get_name() {
+ return 'moveaction';
}
protected function display_content($question, $rowclasses) {
$this->strrestore = get_string('restore');
}
- protected function get_name() {
+ public function get_name() {
return 'deleteaction';
}
$this->init_sort();
}
- protected function init_columns() {
+ protected function init_column_types() {
$types = array(
new question_bank_checkbox_column($this),
new question_bank_question_type_column($this),
new question_bank_delete_action_column($this),
);
$this->knowncolumntypes = array();
- foreach ($columns as $col) {
+ foreach ($types as $col) {
$this->knowncolumntypes[$col->get_name()] = $col;
}
}