new type API
This commit is contained in:
		
							parent
							
								
									0bf8702763
								
							
						
					
					
						commit
						cbdd69f7f6
					
				|  | @ -1,9 +1,10 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\UPLOAD; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) | ||||
|   Copyright (C) 2009 - 2011  Roland Gruber | ||||
|   Copyright (C) 2009 - 2016  Roland Gruber | ||||
| 
 | ||||
|   This program is free software; you can redistribute it and/or modify | ||||
|   it under the terms of the GNU General Public License as published by | ||||
|  | @ -33,7 +34,7 @@ $Id$ | |||
|  * | ||||
|  * @package tools | ||||
|  */ | ||||
| class toolFileUpload implements LAMTool { | ||||
| class toolFileUpload implements \LAMTool { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * Returns the name of the tool. | ||||
|  |  | |||
|  | @ -1,9 +1,10 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\MULTI_EDIT; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) | ||||
|   Copyright (C) 2013  Roland Gruber | ||||
|   Copyright (C) 2013 - 2016  Roland Gruber | ||||
| 
 | ||||
|   This program is free software; you can redistribute it and/or modify | ||||
|   it under the terms of the GNU General Public License as published by | ||||
|  | @ -33,7 +34,7 @@ $Id$ | |||
|  * | ||||
|  * @package tools | ||||
|  */ | ||||
| class toolMultiEdit implements LAMTool { | ||||
| class toolMultiEdit implements \LAMTool { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * Returns the name of the tool. | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\SCHEMA; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|  | @ -33,7 +34,7 @@ $Id$ | |||
|  * | ||||
|  * @package tools | ||||
|  */ | ||||
| class toolSchemaBrowser implements LAMTool { | ||||
| class toolSchemaBrowser implements \LAMTool { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * Returns the name of the tool. | ||||
|  |  | |||
|  | @ -1,9 +1,10 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\SERVER_INFO; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) | ||||
|   Copyright (C) 2009 - 2011  Roland Gruber | ||||
|   Copyright (C) 2009 - 2016  Roland Gruber | ||||
| 
 | ||||
|   This program is free software; you can redistribute it and/or modify | ||||
|   it under the terms of the GNU General Public License as published by | ||||
|  | @ -33,7 +34,7 @@ $Id$ | |||
|  * | ||||
|  * @package tools | ||||
|  */ | ||||
| class toolServerInformation implements LAMTool { | ||||
| class toolServerInformation implements \LAMTool { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * Returns the name of the tool. | ||||
|  |  | |||
|  | @ -1,9 +1,10 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\TESTS; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) | ||||
|   Copyright (C) 2009 - 2011  Roland Gruber | ||||
|   Copyright (C) 2009 - 2016  Roland Gruber | ||||
| 
 | ||||
|   This program is free software; you can redistribute it and/or modify | ||||
|   it under the terms of the GNU General Public License as published by | ||||
|  | @ -33,7 +34,7 @@ $Id$ | |||
|  * | ||||
|  * @package tools | ||||
|  */ | ||||
| class toolTests implements LAMTool { | ||||
| class toolTests implements \LAMTool { | ||||
| 
 | ||||
| 	/** | ||||
| 	 * Returns the name of the tool. | ||||
|  | @ -106,13 +107,13 @@ class toolTests implements LAMTool { | |||
| 	 */ | ||||
| 	function getSubTools() { | ||||
| 		$return = array(); | ||||
| 		$lamdaemonTest = new LAMSubTool(); | ||||
| 		$lamdaemonTest = new \LAMSubTool(); | ||||
| 		$lamdaemonTest->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 = 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."); | ||||
|  |  | |||
|  | @ -1,4 +1,22 @@ | |||
| <?php | ||||
| namespace LAM\TOOLS\MULTI_EDIT; | ||||
| use \htmlTable; | ||||
| use \htmlTitle; | ||||
| use \htmlSelect; | ||||
| use \htmlOutputText; | ||||
| use \htmlHelpLink; | ||||
| use \htmlInputField; | ||||
| use \htmlSubTitle; | ||||
| use \htmlTableExtendedInputField; | ||||
| use \htmlButton; | ||||
| use \htmlStatusMessage; | ||||
| use \htmlSpacer; | ||||
| use \htmlHiddenInput; | ||||
| use \htmlGroup; | ||||
| use \htmlDiv; | ||||
| use \htmlJavaScript; | ||||
| use \htmlLink; | ||||
| use \htmlInputTextarea; | ||||
| /* | ||||
| $Id$ | ||||
| 
 | ||||
|  | @ -85,11 +103,15 @@ function displayStartPage() { | |||
| 	$hideRules = array(); | ||||
| 	$container->addElement(new htmlOutputText(_('LDAP suffix'))); | ||||
| 	$suffixGroup = new htmlTable(); | ||||
| 	$types = $_SESSION['config']->get_ActiveTypes(); | ||||
| 	$typeManager = new \LAM\TYPES\TypeManager(); | ||||
| 	$types = $typeManager->getConfiguredTypes(); | ||||
| 	$suffixes = array(); | ||||
| 	foreach ($types as $type) { | ||||
| 		$suffixes[LAM\TYPES\getTypeAlias($type)] = $_SESSION['config']->get_Suffix($type); | ||||
| 		$hideRules[$_SESSION['config']->get_Suffix($type)] = array('otherSuffix'); | ||||
| 		if ($type->isHidden()) { | ||||
| 			continue; | ||||
| 		} | ||||
| 		$suffixes[$type->getAlias()] = $type->getSuffix(); | ||||
| 		$hideRules[$type->getSuffix()] = array('otherSuffix'); | ||||
| 	} | ||||
| 	$treeSuffix = $_SESSION['config']->get_Suffix('tree'); | ||||
| 	if (!empty($treeSuffix)) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue