original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Returns whether the grade item can control the visibility of the grades
  
  @return bool
docstring_tokens: Returns whether the grade item can control the visibility of the grades