mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
Deprecate unused and broken method
This commit is contained in:
@@ -4515,11 +4515,9 @@ HTML;
|
||||
*/
|
||||
protected function SetWarningsAsSessionMessages($sMessageIdPrefix)
|
||||
{
|
||||
if (!empty($this->m_aCheckWarnings) && is_array($this->m_aCheckWarnings))
|
||||
{
|
||||
if (!empty($this->m_aCheckWarnings) && is_array($this->m_aCheckWarnings)) {
|
||||
$iMsgNb = 0;
|
||||
foreach ($this->m_aCheckWarnings as $sWarningMessage)
|
||||
{
|
||||
foreach ($this->m_aCheckWarnings as $sWarningMessage) {
|
||||
$iMsgNb++;
|
||||
$sMessageId = "$sMessageIdPrefix-$iMsgNb"; // each message must have its own messageId !
|
||||
$this->SetSessionMessageFromInstance($sMessageId, $sWarningMessage, 'warning', 0);
|
||||
@@ -4527,6 +4525,10 @@ HTML;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 3.1.0
|
||||
* Not used and not working !
|
||||
*/
|
||||
protected static function BulkUpdateTracked_Internal(DBSearch $oFilter, array $aValues)
|
||||
{
|
||||
// Todo - invoke the extension
|
||||
@@ -5204,7 +5206,7 @@ EOF
|
||||
} else {
|
||||
$sStatus = $bResult ? Dict::S('UI:BulkModifyStatusModified') : Dict::S('UI:BulkModifyStatusSkipped');
|
||||
}
|
||||
$sChecked = $bResult ? 'checked' : '';
|
||||
|
||||
$aRows[] = array(
|
||||
'object' => $oObj->GetHyperlink(),
|
||||
'status' => $sStatus,
|
||||
|
||||
@@ -677,20 +677,33 @@ abstract class CMDBObject extends DBObject
|
||||
protected function DBDeleteTracked_Internal(&$oDeletionPlan = null)
|
||||
{
|
||||
$ret = parent::DBDelete($oDeletionPlan);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 3.1.0
|
||||
* Not used and not working !
|
||||
*/
|
||||
public static function BulkUpdate(DBSearch $oFilter, array $aValues)
|
||||
{
|
||||
return static::BulkUpdateTracked_Internal($oFilter, $aValues);
|
||||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 3.1.0
|
||||
* Not used and not working !
|
||||
*/
|
||||
public static function BulkUpdateTracked(CMDBChange $oChange, DBSearch $oFilter, array $aValues)
|
||||
{
|
||||
self::SetCurrentChange($oChange);
|
||||
static::BulkUpdateTracked_Internal($oFilter, $aValues);
|
||||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 3.1.0
|
||||
* Not used and not working because parent::BulkUpdate doesn't exist!
|
||||
*/
|
||||
protected static function BulkUpdateTracked_Internal(DBSearch $oFilter, array $aValues)
|
||||
{
|
||||
// $aValues is an array of $sAttCode => $value
|
||||
|
||||
Reference in New Issue
Block a user