mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Code cleanup: Warning suppression.
SVN:trunk[5925]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,9 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Controller;
|
||||
|
||||
use Silex\Application;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* AbstractController class
|
||||
*
|
||||
@@ -31,5 +28,3 @@ abstract class AbstractController
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,12 +19,7 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Controller;
|
||||
|
||||
use Silex\Application;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
abstract class BrickController extends AbstractController
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -32,7 +32,8 @@ class DefaultController
|
||||
|
||||
// Rendering tiles
|
||||
$aData['aTilesRendering'] = array();
|
||||
foreach($oApp['combodo.portal.instance.conf']['bricks'] as $oBrick)
|
||||
/** @var PortalBrick $oBrick */
|
||||
foreach($oApp['combodo.portal.instance.conf']['bricks'] as $oBrick)
|
||||
{
|
||||
// Doing it only for tile visible on home page to avoid unnecessary rendering
|
||||
if (($oBrick->GetVisibleHome() === true) && ($oBrick->GetTileControllerAction() !== null))
|
||||
@@ -58,5 +59,3 @@ class DefaultController
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -31,6 +31,7 @@ use Combodo\iTop\Portal\Brick\AbstractBrick;
|
||||
use Combodo\iTop\Portal\Brick\ManageBrick;
|
||||
use Combodo\iTop\Portal\Helper\ApplicationHelper;
|
||||
use Combodo\iTop\Portal\Helper\SecurityHelper;
|
||||
use Combodo\iTop\Portal\Helper\ScopeValidatorHelper;
|
||||
use DBObject;
|
||||
use DBObjectSet;
|
||||
use DBSearch;
|
||||
@@ -43,7 +44,6 @@ use Silex\Application;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use UnaryExpression;
|
||||
use URLButtonItem;
|
||||
use UserRights;
|
||||
use VariableExpression;
|
||||
|
||||
class ManageBrickController extends BrickController
|
||||
@@ -736,12 +736,14 @@ class ManageBrickController extends BrickController
|
||||
return $aData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $oRequest
|
||||
* @param array $aData
|
||||
* @param DBSearch $oQuery
|
||||
* @param string $sClass
|
||||
*/
|
||||
/**
|
||||
* @param Request $oRequest
|
||||
* @param array $aData
|
||||
* @param DBSearch $oQuery
|
||||
* @param string $sClass
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function ManageSearchValue(Request $oRequest, &$aData, DBSearch &$oQuery, $sClass, $aColumnsAttrs)
|
||||
{
|
||||
// Getting search value
|
||||
@@ -794,28 +796,28 @@ class ManageBrickController extends BrickController
|
||||
$aData['sSearchValue'] = $sSearchValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the groups using a given attribute code.
|
||||
* If a limit is given, the remaining groups are aggregated (groupby result and search request).
|
||||
*
|
||||
* @param DBSearch $oQuery Initial query
|
||||
* @param string $sGroupingTabAttCode Attribute code to group by
|
||||
* @param Application $oApp
|
||||
* @param ManageBrick $oBrick
|
||||
*
|
||||
* @return array of results from the groupby request and the corrsponding search.
|
||||
* @throws \DictExceptionMissingString
|
||||
* @throws \MissingQueryArgument
|
||||
* @throws \MySQLException
|
||||
* @throws \OQLException
|
||||
*/
|
||||
/**
|
||||
* Get the groups using a given attribute code.
|
||||
* If a limit is given, the remaining groups are aggregated (groupby result and search request).
|
||||
*
|
||||
* @param DBSearch $oQuery Initial query
|
||||
* @param string $sGroupingTabAttCode Attribute code to group by
|
||||
* @param Application $oApp
|
||||
* @param ManageBrick $oBrick
|
||||
*
|
||||
* @return array of results from the groupby request and the corrsponding search.
|
||||
*
|
||||
* @throws \MySQLException
|
||||
* @throws \OQLException
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function GroupByAttribute(
|
||||
DBSearch $oQuery, $sGroupingTabAttCode, Application $oApp, ManageBrick $oBrick
|
||||
) {
|
||||
$aGroupingTabsValues = array();
|
||||
$aDistinctResults = array();
|
||||
$oDistinctQuery = DBSearch::FromOQL($oBrick->GetOql());
|
||||
/** @var \Combodo\iTop\Portal\Helper\ScopeValidatorHelper $oScopeHelper */
|
||||
/** @var ScopeValidatorHelper $oScopeHelper */
|
||||
$oScopeHelper = $oApp['scope_validator'];
|
||||
$bHasScope = $oScopeHelper->AddScopeToQuery($oDistinctQuery, $oDistinctQuery->GetClass());
|
||||
if ($bHasScope)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2017 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Router;
|
||||
|
||||
use Silex\Application;
|
||||
|
||||
class BrowseBrickRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Router;
|
||||
|
||||
use Silex\Application;
|
||||
|
||||
class CreateBrickRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Router;
|
||||
|
||||
use Silex\Application;
|
||||
|
||||
class DefaultRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
@@ -36,5 +34,3 @@ class DefaultRouter extends AbstractRouter
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2017 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Router;
|
||||
|
||||
use Silex\Application;
|
||||
|
||||
class ObjectRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
@@ -113,5 +111,3 @@ class ObjectRouter extends AbstractRouter
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Copyright (C) 2010-2015 Combodo SARL
|
||||
// Copyright (C) 2010-2018 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Router;
|
||||
|
||||
use Silex\Application;
|
||||
|
||||
class UserProfileRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
@@ -34,5 +32,3 @@ class UserProfileRouter extends AbstractRouter
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user