MDL-38147 coding corrections after peer review
MDL-38147 Removed function coursecat::get_all_visible() as potentially causing performance issues
MDL-38147 rename functions starting with _