new type API
This commit is contained in:
parent
0bf8702763
commit
cbdd69f7f6
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\UPLOAD;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -33,7 +34,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package tools
|
* @package tools
|
||||||
*/
|
*/
|
||||||
class toolFileUpload implements LAMTool {
|
class toolFileUpload implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\MULTI_EDIT;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -33,7 +34,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package tools
|
* @package tools
|
||||||
*/
|
*/
|
||||||
class toolMultiEdit implements LAMTool {
|
class toolMultiEdit implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\SCHEMA;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package tools
|
* @package tools
|
||||||
*/
|
*/
|
||||||
class toolSchemaBrowser implements LAMTool {
|
class toolSchemaBrowser implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\SERVER_INFO;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -33,7 +34,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package tools
|
* @package tools
|
||||||
*/
|
*/
|
||||||
class toolServerInformation implements LAMTool {
|
class toolServerInformation implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\TESTS;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -33,7 +34,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package tools
|
* @package tools
|
||||||
*/
|
*/
|
||||||
class toolTests implements LAMTool {
|
class toolTests implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
@ -106,13 +107,13 @@ class toolTests implements LAMTool {
|
||||||
*/
|
*/
|
||||||
function getSubTools() {
|
function getSubTools() {
|
||||||
$return = array();
|
$return = array();
|
||||||
$lamdaemonTest = new LAMSubTool();
|
$lamdaemonTest = new \LAMSubTool();
|
||||||
$lamdaemonTest->name = _("Lamdaemon test");
|
$lamdaemonTest->name = _("Lamdaemon test");
|
||||||
$lamdaemonTest->link = 'tests/lamdaemonTest.php';
|
$lamdaemonTest->link = 'tests/lamdaemonTest.php';
|
||||||
$lamdaemonTest->description = _("Check if quotas and homedirectories can be managed.");
|
$lamdaemonTest->description = _("Check if quotas and homedirectories can be managed.");
|
||||||
$lamdaemonTest->image = 'lamdaemonSmall.png';
|
$lamdaemonTest->image = 'lamdaemonSmall.png';
|
||||||
$return[] = $lamdaemonTest;
|
$return[] = $lamdaemonTest;
|
||||||
$schemaTest = new LAMSubTool();
|
$schemaTest = new \LAMSubTool();
|
||||||
$schemaTest->name = _("Schema test");
|
$schemaTest->name = _("Schema test");
|
||||||
$schemaTest->link = 'tests/schemaTest.php';
|
$schemaTest->link = 'tests/schemaTest.php';
|
||||||
$schemaTest->description = _("Check if the LDAP schema fits the requirements of the selected account modules.");
|
$schemaTest->description = _("Check if the LDAP schema fits the requirements of the selected account modules.");
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
<?php
|
<?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$
|
$Id$
|
||||||
|
|
||||||
|
@ -85,11 +103,15 @@ function displayStartPage() {
|
||||||
$hideRules = array();
|
$hideRules = array();
|
||||||
$container->addElement(new htmlOutputText(_('LDAP suffix')));
|
$container->addElement(new htmlOutputText(_('LDAP suffix')));
|
||||||
$suffixGroup = new htmlTable();
|
$suffixGroup = new htmlTable();
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
|
$types = $typeManager->getConfiguredTypes();
|
||||||
$suffixes = array();
|
$suffixes = array();
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
$suffixes[LAM\TYPES\getTypeAlias($type)] = $_SESSION['config']->get_Suffix($type);
|
if ($type->isHidden()) {
|
||||||
$hideRules[$_SESSION['config']->get_Suffix($type)] = array('otherSuffix');
|
continue;
|
||||||
|
}
|
||||||
|
$suffixes[$type->getAlias()] = $type->getSuffix();
|
||||||
|
$hideRules[$type->getSuffix()] = array('otherSuffix');
|
||||||
}
|
}
|
||||||
$treeSuffix = $_SESSION['config']->get_Suffix('tree');
|
$treeSuffix = $_SESSION['config']->get_Suffix('tree');
|
||||||
if (!empty($treeSuffix)) {
|
if (!empty($treeSuffix)) {
|
||||||
|
|
Loading…
Reference in New Issue