Example #1
0
 function get_format_name()
 {
     $this->init_full();
     if (defined('ADMIN_STICKYBLOCKS')) {
         return PAGE_COURSE_VIEW;
     }
     if ($this->id == SITEID) {
         return parent::get_format_name();
     }
     // This needs to reflect the path hierarchy under Moodle root.
     return 'course-view-' . $this->courserecord->format;
 }