protected function print_choose_category_message($categoryandcontext) {
        global $OUTPUT;
        debugging('print_choose_category_message() is deprecated, ' .
                'please use \core_question\bank\search\category_condition instead.', DEBUG_DEVELOPER);
        echo $OUTPUT->box_start('generalbox questionbank');
        $this->display_category_form($this->contexts->having_one_edit_tab_cap('edit'),
                $this->baseurl, $categoryandcontext);
        echo "<p style=\"text-align:center;\"><b>";
        print_string('selectcategoryabove', 'question');
        echo "</b></p>";
        echo $OUTPUT->box_end();
    }
protected function print_choose_category_message($categoryandcontext) {
        global $OUTPUT;
        debugging('print_choose_category_message() is deprecated, ' .
                'please use \core_question\bank\search\category_condition instead.', DEBUG_DEVELOPER);
        echo $OUTPUT->box_start('generalbox questionbank');
        $this->display_category_form($this->contexts->having_one_edit_tab_cap('edit'),
                $this->baseurl, $categoryandcontext);
        echo "<p style=\"text-align:center;\"><b>";
        print_string('selectcategoryabove', 'question');
        echo "</b></p>";
        echo $OUTPUT->box_end();
    }
protected function print_choose_category_message ( $ categoryandcontext ) { global $ OUTPUT ; debugging ( 'print_choose_category_message() is deprecated, ' . 'please use \core_question\bank\search\category_condition instead.' , DEBUG_DEVELOPER ) ; echo $ OUTPUT -> box_start ( 'generalbox questionbank' ) ; $ this -> display_category_form ( $ this -> contexts -> having_one_edit_tab_cap ( 'edit' ) , $ this -> baseurl , $ categoryandcontext ) ; echo "<p style=\"text-align:center;\"><b>" ; print_string ( 'selectcategoryabove' , 'question' ) ; echo "</b></p>" ; echo $ OUTPUT -> box_end ( ) ; }
Prints a form to choose categories.
@param string $categoryandcontext 'categoryID,contextID'.
@deprecated since Moodle 2.6 MDL-40313.
@see \core_question\bank\search\category_condition
@todo MDL-41978 This will be deleted in Moodle 2.8
Prints a form to choose categories .