APlayer_Plugin::deactivate PHP Method

deactivate() public static method

禁用插件方法,如果禁用失败,直接抛出异常
public static deactivate ( ) : void
return void
    public static function deactivate()
    {
        $files = glob('usr/plugins/APlayer/cache/*');
        foreach ($files as $file) {
            if (is_file($file)) {
                @unlink($file);
            }
        }
        return _t('APlayer插件禁用成功,所有缓存已清空!');
    }