public function navigation($courseorid, $page) {
        $tabs = core_completion\manager::get_available_completion_tabs($courseorid);
        if (count($tabs) > 1) {
            return $this->tabtree($tabs, $page);
        } else {
            return '';
        }
    }
public function navigation($courseorid, $page) {
        $tabs = core_completion\manager::get_available_completion_tabs($courseorid);
        if (count($tabs) > 1) {
            return $this->tabtree($tabs, $page);
        } else {
            return '';
        }
    }
public function navigation ( $ courseorid , $ page ) { $ tabs = core_completion \ manager :: get_available_completion_tabs ( $ courseorid ) ; if ( count ( $ tabs ) > 1 ) { return $ this -> tabtree ( $ tabs , $ page ) ; } else { return '' ; } }
Render the navigation tabs for the completion page.

@param int|stdClass $courseorid the course object or id.
@param String $page the tab to focus.
@return string html
Render the navigation tabs for the completion page .