added namespace

This commit is contained in:
Roland Gruber 2016-12-26 10:02:08 +01:00
parent dbb3c779c4
commit 50468a1fef
3 changed files with 29 additions and 3 deletions

View File

@ -1,4 +1,5 @@
<?php
namespace LAM\HEADER;
/*
$Id$
@ -204,7 +205,7 @@ jQuery(document).ready(function() {
<?php
function printTypeTabs($headerPrefix) {
$typeManager = new LAM\TYPES\TypeManager();
$typeManager = new \LAM\TYPES\TypeManager();
$types = $typeManager->getConfiguredTypes();
$linkList = array();
foreach ($types as $type) {

View File

@ -1,4 +1,20 @@
<?php
namespace LAM\TOOLS\PROFILE_EDITOR;
use \htmlTable;
use \htmlTitle;
use \htmlStatusMessage;
use \LAMCfgMain;
use \htmlSubTitle;
use \htmlSpacer;
use \htmlSelect;
use \htmlButton;
use \htmlImage;
use \htmlLink;
use \htmlOutputText;
use \htmlHelpLink;
use \htmlHiddenInput;
use \htmlInputField;
use \htmlDiv;
/*
$Id$
@ -51,7 +67,7 @@ if (!empty($_POST)) {
validateSecurityToken();
}
$typeManager = new LAM\TYPES\TypeManager();
$typeManager = new \LAM\TYPES\TypeManager();
$types = $typeManager->getConfiguredTypes();
$profileClasses = array();
$profileClassesTemp = array();

View File

@ -1,4 +1,13 @@
<?php
namespace LAM\TOOLS\PROFILE_EDITOR;
use \htmlTable;
use \htmlTitle;
use \htmlTableExtendedInputField;
use \htmlSpacer;
use \htmlTableExtendedSelect;
use \htmlFieldset;
use \htmlButton;
use \htmlHiddenInput;
/*
$Id$
@ -69,7 +78,7 @@ if (isset($_POST['accounttype'])) {
$_GET['type'] = $_POST['accounttype'];
}
$typeManager = new LAM\TYPES\TypeManager();
$typeManager = new \LAM\TYPES\TypeManager();
$type = $typeManager->getConfiguredType($_GET['type']);
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($_GET['type'])) {
logNewMessage(LOG_ERR, 'User tried to access hidden account type profile: ' . $_GET['type']);