function testSimple() { $plugin = new Plugin(); $this->assertEquals('caldav-schedule', $plugin->getPluginInfo()['name']); }
private function displayUninstallationConfirmScreen(Plugin $plugin) { $plug_info =& $plugin->getPluginInfo(); $descriptor =& $plug_info->getPluginDescriptor(); $name = $descriptor->getFullName(); if (strlen(trim($name)) === 0) { $name = get_class($plugin); } $output = sprintf(file_get_contents($GLOBALS['Language']->getContent('confirm_uninstall', null, 'pluginsadministration')), $name, $plugin->getId()); echo $output; }
private function getDocmanRootPath() { return $this->docman_plugin->getPluginInfo()->getPropertyValueForName('docman_root') . '/'; }
public function resource_allowed_project_title() { return $GLOBALS['Language']->getText('plugin_pluginsadministration', 'plugin_allowed_project_title', array($this->plugin->getPluginInfo()->getPluginDescriptor()->getFullName())); }