public function load($areaid) {
        global $DB;

        $this->areacache = $DB->get_record('grading_areas', array('id' => $areaid), '*', MUST_EXIST);
        $this->context = context::instance_by_id($this->areacache->contextid, MUST_EXIST);
        $this->component = $this->areacache->component;
        $this->area = $this->areacache->areaname;
    }
public function load($areaid) {
        global $DB;

        $this->areacache = $DB->get_record('grading_areas', array('id' => $areaid), '*', MUST_EXIST);
        $this->context = context::instance_by_id($this->areacache->contextid, MUST_EXIST);
        $this->component = $this->areacache->component;
        $this->area = $this->areacache->areaname;
    }
public function load ( $ areaid ) { global $ DB ; $ this -> areacache = $ DB -> get_record ( 'grading_areas' , array ( 'id' => $ areaid ) , '*' , MUST_EXIST ) ; $ this -> context = context :: instance_by_id ( $ this -> areacache -> contextid , MUST_EXIST ) ; $ this -> component = $ this -> areacache -> component ; $ this -> area = $ this -> areacache -> areaname ; }
Loads the gradable area info from the database

@param int $areaid
Loads the gradable area info from the database