protected function load_activity_record() {
        global $DB;
        if (is_null($this->_cm)) {
            return;
        }
        $this->_module = $DB->get_record($this->_cm->modname, array('id' => $this->_cm->instance));
    }
protected function load_activity_record() {
        global $DB;
        if (is_null($this->_cm)) {
            return;
        }
        $this->_module = $DB->get_record($this->_cm->modname, array('id' => $this->_cm->instance));
    }
protected function load_activity_record ( ) { global $ DB ; if ( is_null ( $ this -> _cm ) ) { return ; } $ this -> _module = $ DB -> get_record ( $ this -> _cm -> modname , array ( 'id' => $ this -> _cm -> instance ) ) ; }
Loads the activity record for the current CM object associated with this
page.

This will load {@link moodle_page::$_module} with a row from the related
module table in the database.
For instance if {@link moodle_page::$_cm} is a forum then a row from the
forum table will be loaded.
Loads the activity record for the current CM object associated with this page .