protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $base) { $provider = new \NethServer\Tool\UserProvider($this->getPlatform()); # hide this module if no provider is installed if ($provider->isReadOnly()) { return $base; } else { return \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($base, 'Security', 30); } }
protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $base) { return \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($base, 'Configuration'); }
protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $attributes) { $a = \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($attributes, 'Status'); return new \NethServer\Tool\CustomModuleAttributesProvider($a, array('languageCatalog' => array('NethServer_Module_Duc', 'NethServer_Module_Dashboard_Duc'))); }
protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $base) { return \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($base, 'Management', 20); }
protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $attributes) { return \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($attributes, 'Administration', 16); }
/** * @depends testInitializeFromModule */ public function testGetTitle(\Nethgui\Module\SimpleModuleAttributesProvider $object) { $this->assertEquals('MockModule1_Title', $object->getTitle()); }
protected function initializeAttributes(\Nethgui\Module\ModuleAttributesInterface $base) { return \Nethgui\Module\SimpleModuleAttributesProvider::extendModuleAttributes($base, 'PlugService', 30); }