N°4488 Remove cmdbAbstractObject methods used in export.php from API methods and add comment in export.php

`@deprecated` was added in 03e9bcd4 but as none of those will be removed in a near future, we are using `@internal`instead !
This commit is contained in:
Pierre Goiffon
2022-02-11 10:25:17 +01:00
parent df1e19dc43
commit b494ff2ce6
2 changed files with 13 additions and 3 deletions

View File

@@ -1558,7 +1558,8 @@ HTML
*
* @throws \Exception
* only used in old and deprecated export.php
* @deprecated since 2.7.7 3.0.1
*
* @internal Only to be used by `/webservices/export.php` : this is a legacy method that produces wrong HTML (no TR on table body rows)
*/
public static function DisplaySetAsHTMLSpreadsheet(WebPage $oPage, CMDBObjectSet $oSet, $aParams = array())
{
@@ -1579,8 +1580,8 @@ HTML
* @throws \MySQLException
* @throws \MySQLHasGoneAwayException
* @throws \Exception
* only used in old and deprecated export.php
* @deprecated since 2.7.7 3.0.1
*
* @internal Only to be used by `/webservices/export.php` : this is a legacy method that produces wrong HTML (no TR on table body rows)
*/
public static function GetSetAsHTMLSpreadsheet(DBObjectSet $oSet, $aParams = array())
{

View File

@@ -17,6 +17,15 @@
* You should have received a copy of the GNU Affero General Public License
*/
/**
* ⚠ Warning, this page is only kept for legacy usages : **it is not maintained anymore**
*
* Instead, you should use `export-v2.php`
*
* @link https://www.itophub.io/wiki/page?id=latest:advancedtopics:exportdata_v1 script documentation
*/
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
require_once(__DIR__.'/../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');