original_string: public function disablePlugin($id, $isUser = false)
      {
          $code = $this->getIdentifier($id);
          if (array_key_exists($code, $this->disabledPlugins)) {
              return false;
          }
  
          $this->disabledPlugins[$code] = $isUser;
          $this->writeDisabled();
  
          if ($pluginObj = $this->findByIdentifier($code)) {
              $pluginObj->disabled = true;
          }
  
          return true;
      }
code: public function disablePlugin($id, $isUser = false)
      {
          $code = $this->getIdentifier($id);
          if (array_key_exists($code, $this->disabledPlugins)) {
              return false;
          }
  
          $this->disabledPlugins[$code] = $isUser;
          $this->writeDisabled();
  
          if ($pluginObj = $this->findByIdentifier($code)) {
              $pluginObj->disabled = true;
          }
  
          return true;
      }
code_tokens: public function disablePlugin ( $ id , $ isUser = false ) { $ code = $ this -> getIdentifier ( $ id ) ; if ( array_key_exists ( $ code , $ this -> disabledPlugins ) ) { return false ; } $ this -> disabledPlugins [ $ code ] = $ isUser ; $ this -> writeDisabled ( ) ; if ( $ pluginObj = $ this -> findByIdentifier ( $ code ) ) { $ pluginObj -> disabled = true ; } return true ; }
docstring: Disables a single plugin in the system.
  @param string $id Plugin code/namespace
  @param bool $isUser Set to true if disabled by the user
  @return bool
docstring_tokens: Disables a single plugin in the system .