new type API
This commit is contained in:
parent
fad7a009f0
commit
0bf8702763
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\OU_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) 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 toolOUEditor implements LAMTool {
|
class toolOUEditor implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\PDF_EDITOR;
|
||||||
/*
|
/*
|
||||||
$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 toolPDFEditor implements LAMTool {
|
class toolPDFEditor implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\PROFILE_EDITOR;
|
||||||
/*
|
/*
|
||||||
$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 toolProfileEditor implements LAMTool {
|
class toolProfileEditor implements \LAMTool {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the tool.
|
* Returns the name of the tool.
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\OU_EDIT;
|
||||||
|
use \htmlTable;
|
||||||
|
use \htmlSpacer;
|
||||||
|
use \htmlOutputText;
|
||||||
|
use \htmlButton;
|
||||||
|
use \htmlHiddenInput;
|
||||||
|
use \htmlSubTitle;
|
||||||
|
use \htmlStatusMessage;
|
||||||
|
use \htmlSelect;
|
||||||
|
use \htmlHelpLink;
|
||||||
|
use \htmlInputField;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
@ -51,8 +62,6 @@ if (!empty($_POST)) {
|
||||||
validateSecurityToken();
|
validateSecurityToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
|
||||||
|
|
||||||
// check if deletion was canceled
|
// check if deletion was canceled
|
||||||
if (isset($_POST['abort'])) {
|
if (isset($_POST['abort'])) {
|
||||||
display_main(null, null);
|
display_main(null, null);
|
||||||
|
@ -166,13 +175,14 @@ function display_main($message, $error) {
|
||||||
$container->addElement($msg, true);
|
$container->addElement($msg, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
|
$typeList = $typeManager->getConfiguredTypes();
|
||||||
$types = array();
|
$types = array();
|
||||||
$typeList = $_SESSION['config']->get_ActiveTypes();
|
foreach ($typeList as $type) {
|
||||||
for ($i = 0; $i < sizeof($typeList); $i++) {
|
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($type->getId())) {
|
||||||
if (isAccountTypeHidden($typeList[$i]) || !checkIfWriteAccessIsAllowed($typeList[$i])) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$types[$typeList[$i]] = LAM\TYPES\getTypeAlias($typeList[$i]);
|
$types[$type->getId()] = $type->getAlias();
|
||||||
}
|
}
|
||||||
natcasesort($types);
|
natcasesort($types);
|
||||||
$options = array();
|
$options = array();
|
||||||
|
|
Loading…
Reference in New Issue