getConf(helper_plugin_stale::CONF_ADMIN_ONLY); } public function getMenuIcon() { /** @var helper_plugin_stale $stale */ $stale = plugin_load('helper', 'stale'); return $stale->getIcon(); } public function handle() { /** @var helper_plugin_stale $stale */ $stale = plugin_load('helper', 'stale'); $reason = $stale->canTouch(); if ($reason !== true) { msg('Plugin stale: You can\'t touch the file for the following reason: ' . $reason, -1); return false; } $this->msg = $stale->stale(); return true; } public function html() { ptln('
$this->msg
"); } }