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;
    }
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;
    }
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 ; }
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
Disables a single plugin in the system .