Esempio n. 1
0
 /**
  *	Unloads an active plugin from memory.
  *
  *	@param string $sPlugin
  *	@return bool 'true' on success.
  */
 public function pluginUnload($sPlugin)
 {
     if (isset($this->oPlugins->{$sPlugin})) {
         unset($this->oPlugins->{$sPlugin});
         Timers::CheckCall();
         echo "* Plugin " . $sPlugin . " has been unloaded." . PHP_EOL;
         return true;
     }
     return false;
 }