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