name = _("Lamdaemon test"); $lamdaemonTest->link = 'tests/lamdaemonTest.php'; $lamdaemonTest->description = _("Check if quotas and homedirectories can be managed."); $lamdaemonTest->image = 'lamdaemonSmall.png'; $return[] = $lamdaemonTest; $schemaTest = new \LAMSubTool(); $schemaTest->name = _("Schema test"); $schemaTest->link = 'tests/schemaTest.php'; $schemaTest->description = _("Check if the LDAP schema fits the requirements of the selected account modules."); $schemaTest->image = 'schemaTest.png'; $return[] = $schemaTest; return $return; } /** * Returns if the tool is visible in the menu. * * @return boolean visible */ function isVisible() { $typeManager = new \LAM\TYPES\TypeManager(); $types = $typeManager->getConfiguredTypes(); return (sizeof($types) > 0); } /** * Returns if a tool may be hidden by configuration in the LAM server profile. * * @return boolean hideable */ function isHideable() { return true; } } ?>