public function can_control_visibility() {
        if (core_component::get_plugin_directory($this->itemtype, $this->itemmodule)) {
            return !plugin_supports($this->itemtype, $this->itemmodule, FEATURE_CONTROLS_GRADE_VISIBILITY, false);
        }
        return parent::can_control_visibility();
    }
public function can_control_visibility() {
        if (core_component::get_plugin_directory($this->itemtype, $this->itemmodule)) {
            return !plugin_supports($this->itemtype, $this->itemmodule, FEATURE_CONTROLS_GRADE_VISIBILITY, false);
        }
        return parent::can_control_visibility();
    }
public function can_control_visibility ( ) { if ( core_component :: get_plugin_directory ( $ this -> itemtype , $ this -> itemmodule ) ) { return ! plugin_supports ( $ this -> itemtype , $ this -> itemmodule , FEATURE_CONTROLS_GRADE_VISIBILITY , false ) ; } return parent :: can_control_visibility ( ) ; }
Returns whether the grade item can control the visibility of the grades

@return bool
Returns whether the grade item can control the visibility of the grades