mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
- Allow DBObjects to be deleted by the standard UI 'Delete', which may be useful in case a DBObject has to be deleted as a dependent object of a CMDBObject.
SVN:trunk[945]
This commit is contained in:
@@ -943,6 +943,11 @@ abstract class DBObject
|
|||||||
return $this->m_iKey;
|
return $this->m_iKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function DBInsertTracked(CMDBChange $oVoid)
|
||||||
|
{
|
||||||
|
return $this->DBInsert();
|
||||||
|
}
|
||||||
|
|
||||||
// Creates a copy of the current object into the database
|
// Creates a copy of the current object into the database
|
||||||
// Returns the id of the newly created object
|
// Returns the id of the newly created object
|
||||||
public function DBClone($iNewKey = null)
|
public function DBClone($iNewKey = null)
|
||||||
@@ -1021,6 +1026,11 @@ abstract class DBObject
|
|||||||
return $this->m_iKey;
|
return $this->m_iKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function DBUpdateTracked(CMDBChange $oVoid)
|
||||||
|
{
|
||||||
|
return $this->DBUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
// Make the current changes persistent - clever wrapper for Insert or Update
|
// Make the current changes persistent - clever wrapper for Insert or Update
|
||||||
public function DBWrite()
|
public function DBWrite()
|
||||||
{
|
{
|
||||||
@@ -1051,6 +1061,11 @@ abstract class DBObject
|
|||||||
$this->m_iKey = null;
|
$this->m_iKey = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function DBDeleteTracked(CMDBChange $oVoid)
|
||||||
|
{
|
||||||
|
$this->DBDelete();
|
||||||
|
}
|
||||||
|
|
||||||
public function EnumTransitions()
|
public function EnumTransitions()
|
||||||
{
|
{
|
||||||
$sStateAttCode = MetaModel::GetStateAttributeCode(get_class($this));
|
$sStateAttCode = MetaModel::GetStateAttributeCode(get_class($this));
|
||||||
|
|||||||
Reference in New Issue
Block a user