function set_page($page) {
        global $PAGE;

        $this->page = $page;
        $this->title = $page->title;
        // set_title calls format_string itself so no probs there
        $PAGE->set_title($this->title);
    }
function set_page($page) {
        global $PAGE;

        $this->page = $page;
        $this->title = $page->title;
        // set_title calls format_string itself so no probs there
        $PAGE->set_title($this->title);
    }
function set_page ( $ page ) { global $ PAGE ; $ this -> page = $ page ; $ this -> title = $ page -> title ; // set_title calls format_string itself so no probs there $ PAGE -> set_title ( $ this -> title ) ; }
Method to set the current page

@param object $page Current page
Method to set the current page