protected function show_my_categories() {
        global $CFG;
        if ($this->showmycategories === null) {
            $this->showmycategories = !empty($CFG->navshowmycoursecategories) && !core_course_category::is_simple_site();
        }
        return $this->showmycategories;
    }
protected function show_my_categories() {
        global $CFG;
        if ($this->showmycategories === null) {
            $this->showmycategories = !empty($CFG->navshowmycoursecategories) && !core_course_category::is_simple_site();
        }
        return $this->showmycategories;
    }
protected function show_my_categories ( ) { global $ CFG ; if ( $ this -> showmycategories === null ) { $ this -> showmycategories = ! empty ( $ CFG -> navshowmycoursecategories ) && ! core_course_category :: is_simple_site ( ) ; } return $ this -> showmycategories ; }
Returns true if we should show categories in the My Courses branch.
@return bool
Returns true if we should show categories in the My Courses branch .