mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 22:39:03 +02:00
📝 Some PHPDoc on object archiving
This commit is contained in:
@@ -5092,10 +5092,21 @@ abstract class DBObject implements iDisplay
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @param boolean $bArchive
|
||||
* <p>For all of the class hierarchy, sets the archive_flag field to the parameter's state.<br>
|
||||
* Also :
|
||||
* <ul>
|
||||
* <li>if $bArchive==false resets the archive_date flag
|
||||
* <li>if $bArchive==true and archive_date empty sets its value
|
||||
* </ul>
|
||||
*
|
||||
* <p>Can be used to fix database inconsistencies on archive_flag field.
|
||||
*
|
||||
* @see \DBSearch::DBBulkWriteArchiveFlag()
|
||||
*
|
||||
* @param boolean $bArchive if true then sets archive_flag and archive_date flags
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function DBWriteArchiveFlag($bArchive)
|
||||
@@ -5141,12 +5152,10 @@ abstract class DBObject implements iDisplay
|
||||
}
|
||||
|
||||
/**
|
||||
* @api
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* Can be called to repair the database (tables consistency)
|
||||
* The archive_date will be preserved
|
||||
* @throws Exception
|
||||
* @uses DBWriteArchiveFlag
|
||||
*/
|
||||
public function DBArchive()
|
||||
{
|
||||
@@ -5156,9 +5165,10 @@ abstract class DBObject implements iDisplay
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @api
|
||||
*
|
||||
* @throws Exception
|
||||
* @uses DBWriteArchiveFlag
|
||||
*/
|
||||
public function DBUnarchive()
|
||||
{
|
||||
|
||||
@@ -1424,15 +1424,18 @@ abstract class DBSearch
|
||||
}
|
||||
|
||||
/**
|
||||
* Experimental!
|
||||
* @todo implement the change tracking
|
||||
*
|
||||
* @internal
|
||||
* @api
|
||||
*
|
||||
* Updates archive_flag and archive_date fields in the whole class hierarchy
|
||||
*
|
||||
* @see \DBObject::DBWriteArchiveFlag()
|
||||
*
|
||||
* @param boolean $bArchive
|
||||
*
|
||||
* @param $bArchive
|
||||
* @throws Exception
|
||||
* @todo implement the change tracking
|
||||
*/
|
||||
function DBBulkWriteArchiveFlag($bArchive)
|
||||
public function DBBulkWriteArchiveFlag($bArchive)
|
||||
{
|
||||
$sClass = $this->GetClass();
|
||||
if (!MetaModel::IsArchivable($sClass))
|
||||
|
||||
Reference in New Issue
Block a user