Code cleanup

This commit is contained in:
Molkobain
2022-05-14 20:42:13 +02:00
parent 23fab1bab0
commit afc8354523
10 changed files with 14 additions and 13 deletions

View File

@@ -11,7 +11,7 @@
/**
* Class ajax_page
*
* @deprecated since 3.0.0 will be removed in 3.1.0 - moved to AjaxPage
* @deprecated 3.0.0 will be removed in 3.1.0 - moved to AjaxPage
*/
class ajax_page extends AjaxPage
{

View File

@@ -1184,7 +1184,7 @@ interface iPageUIBlockExtension
* @api
* @package Extensibility
* @since 2.7.0
* @deprecated since 3.0.0 use AbstractPageUIBlockExtension instead
* @deprecated 3.0.0 use AbstractPageUIBlockExtension instead
*/
abstract class AbstractPageUIExtension implements iPageUIExtension
{

View File

@@ -1448,7 +1448,7 @@ HTML
* @throws \MissingQueryArgument
* @throws \MySQLException
* @throws \MySQLHasGoneAwayException
* @deprecated since 3.0.0
* @deprecated 3.0.0
*/
public static function GetDisplayExtendedSet(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{

View File

@@ -19,7 +19,7 @@ use Combodo\iTop\Renderer\Console\ConsoleBlockRenderer;
*
* You should have received a copy of the GNU Affero General Public License
*
* @deprecated since 3.0.0 use Combodo\iTop\Application\UI\Base\Component\DataTable\Datatable
* @deprecated 3.0.0 use Combodo\iTop\Application\UI\Base\Component\DataTable\Datatable
*/
class DataTable

View File

@@ -358,10 +358,11 @@ class WizardHelper
{$sWizardHelperJsVar}.UpdateFields();
JS;
}
/*
* Function with an old pattern of code
* @deprecated since 3.1
*/
/*
* Function with an old pattern of code
* @deprecated 3.1.0
*/
static function ParseJsonSet($oMe, $sLinkClass, $sExtKeyToMe, $sJsonSet)
{
$aSet = json_decode($sJsonSet, true); // true means hash array instead of object

View File

@@ -2,7 +2,7 @@
// The file has been moved in iTop 2.2.0+ (revision 3803)
// Preserve backward compatibility with some external tools (Cf. toolkit)
// @deprecated since 3.1.0
// @deprecated 3.1.0
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use core/oql/expression.class.inc.php instead');
require_once(APPROOT.'core/oql/expression.class.inc.php');

View File

@@ -186,7 +186,7 @@ abstract class AbstractPluginManager extends ServiceManager implements PluginMan
*
* Returns the creation context.
*
* @deprecated since 3.0.0. The creation context should be passed during
* @deprecated 3.0.0. The creation context should be passed during
* instantiation instead.
* @param ContainerInterface $container
* @return void

View File

@@ -158,7 +158,7 @@ class ServiceManager implements ServiceLocatorInterface
*
* Returns the creation context.
*
* @deprecated since 3.0.0. Factories using 3.0 should use the container
* @deprecated 3.0.0. Factories using 3.0 should use the container
* instance passed to the factory instead.
* @return ContainerInterface
*/

View File

@@ -51,7 +51,7 @@ try {
/**
* Helper function to build a select from the list of valid classes for a given action
*
* @deprecated since 3.0.0 use GetClassesSelectUIBlock
* @deprecated 3.0.0 use GetClassesSelectUIBlock
*
* @param $sDefaultValue
* @param integer $iWidthPx The width (in pixels) of the drop-down list

View File

@@ -1368,7 +1368,7 @@ JS;
* Get an ID (for any kind of HTML tag) that is guaranteed unique in this page
*
* @return int The unique ID (in this page)
* @deprecated since 3.0.0 use utils::GetUniqueId() instead
* @deprecated 3.0.0 use utils::GetUniqueId() instead
*/
public function GetUniqueId()
{