芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/lib/classes/plugininfo/cachestore.php
. /** * Defines classes used for plugin info. * * @package core * @copyright 2013 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\plugininfo; defined('MOODLE_INTERNAL') || die(); /** * Class for cache store plugins */ class cachestore extends base { public function is_uninstall_allowed() { $instance = \cache_config::instance(); foreach ($instance->get_all_stores() as $store) { if ($store['plugin'] == $this->name) { return false; } } return true; } }