Deprecated old history APIs

This commit is contained in:
Molkobain
2021-03-17 10:30:46 +01:00
parent 19d61300bb
commit 2a1b58e2c1
5 changed files with 12 additions and 5 deletions

View File

@@ -429,14 +429,16 @@ HTML
/**
* Display history tab of an object
*
* @param \WebPage $oPage
* @deprecated 3.0.0 will be removed in 3.1, see N°3824
*
* @param bool $bEditMode
* @param int $iLimitCount
* @param int $iLimitStart
*
* @param \WebPage $oPage
*
* @throws \CoreException
*
* @deprecated
*/
public function DisplayBareHistory(WebPage $oPage, $bEditMode = false, $iLimitCount = 0, $iLimitStart = 0)
{

View File

@@ -1629,6 +1629,8 @@ JS
* - list produces a table listing the objects
* - count produces a paragraphs with a sentence saying 'cont' objects found
* - details display (as table) the details of each object found (best if only one)
*
* @deprecated 3.0.0 will be removed in 3.1, see N°3824
*/
class HistoryBlock extends DisplayBlock
{

View File

@@ -21,7 +21,7 @@ require_once(APPROOT.'/application/displayblock.class.inc.php');
/**
* This class manages the special template format used internally to build the iTop web pages
*
* @deprecated Since 3.0.0
* @deprecated 3.0.0
*/
class DisplayTemplate
{

View File

@@ -564,6 +564,9 @@ function ExportInitButton(sSelector) {
});
}
/**
* @deprecated 3.0.0 will be removed in 3.1, see N°3824
*/
function DisplayHistory(sSelector, sFilter, iCount, iStart) {
$(sSelector).block();
var oParams = {operation: 'history_from_filter', filter: sFilter, start: iStart, count: iCount};

View File

@@ -1493,7 +1493,7 @@ JS
$oPage->add("</div>");
break;
// TODO 3.0.0: Handle the history pagination
/** @deprecated 3.0.0 Will be removed in 3.1, see N°3824 */
case 'history':
$oPage->SetContentType('text/html');
$id = (int)utils::ReadParam('id', 0);
@@ -1507,7 +1507,7 @@ JS
// widgets: ['myZebra', 'truncatedList']} );");
break;
// TODO 3.0.0: What to do with this?
/** @deprecated 3.0.0 Will be removed in 3.1, see N°3824 */
case 'history_from_filter':
$oPage->SetContentType('text/html');
$oHistoryFilter = DBSearch::unserialize($sFilter);