return $output;
}
- $count_str = '';
+ $countstr = '';
if ($component->has_more_results()) {
- $count_str = get_string('morecoursesearchresults', 'backup', $component->get_count());
+ $countstr = get_string('morecoursesearchresults', 'backup', $component->get_count());
} else {
- $count_str = get_string('totalcoursesearchresults', 'backup', $component->get_count());
+ $countstr = get_string('totalcoursesearchresults', 'backup', $component->get_count());
}
- $output .= html_writer::tag('div', $count_str, array('class'=>'ics-totalresults'));
+ $output .= html_writer::tag('div', $countstr, array('class'=>'ics-totalresults'));
$output .= html_writer::start_tag('div', array('class' => 'ics-results'));
$table = new html_table();
* Indicates if we have more than maxresults found.
* @var boolean
*/
- private $has_more_results = false;
+ private $hasmoreresults = false;
/**
* Constructor
}
// Check if we are over the limit.
if ($this->totalcount+1 > $this->maxresults) {
- $this->has_more_results = true;
+ $this->hasmoreresults = true;
break;
}
// If not, then continue.
if ($this->results === null) {
$this->search();
}
- return $this->has_more_results;
+ return $this->hasmoreresults;
}
/**