public function get_item_category() {
        if (!$this->is_course_item() and !$this->is_category_item()) {
            return false;
        }
        return grade_category::fetch(array('id'=>$this->iteminstance));
    }
public function get_item_category() {
        if (!$this->is_course_item() and !$this->is_category_item()) {
            return false;
        }
        return grade_category::fetch(array('id'=>$this->iteminstance));
    }
public function get_item_category ( ) { if ( ! $ this -> is_course_item ( ) and ! $ this -> is_category_item ( ) ) { return false ; } return grade_category :: fetch ( array ( 'id' => $ this -> iteminstance ) ) ; }
Returns the grade_category for a grade category grade item

@return grade_category|bool Returns a grade_category instance if applicable or false otherwise
Returns the grade_category for a grade category grade item