public function is_section_current($section) {
        if (is_object($section)) {
            $sectionnum = $section->section;
        } else {
            $sectionnum = $section;
        }
        return ($sectionnum && ($course = $this->get_course()) && $course->marker == $sectionnum);
    }
public function is_section_current($section) {
        if (is_object($section)) {
            $sectionnum = $section->section;
        } else {
            $sectionnum = $section;
        }
        return ($sectionnum && ($course = $this->get_course()) && $course->marker == $sectionnum);
    }
public function is_section_current ( $ section ) { if ( is_object ( $ section ) ) { $ sectionnum = $ section -> section ; } else { $ sectionnum = $ section ; } return ( $ sectionnum && ( $ course = $ this -> get_course ( ) ) && $ course -> marker == $ sectionnum ) ; }
Returns true if the specified section is current

By default we analyze $course->marker

@param int|stdClass|section_info $section
@return bool
Returns true if the specified section is current