◆ __construct()
ILIAS\LegalDocuments\Provide\History\HistoryManager::__construct |
( |
InternalDataService |
$data_service, |
|
|
InternalRepoService |
$repo_service, |
|
|
InternalDomainService |
$domain_service |
|
) |
| |
Definition at line 35 of file class.HistoryManager.php.
40 $this->history_repo = $repo_service->history();
41 $this->pc_definition = $domain_service
◆ deleteHistoryEntriesOlderEqualThanNr()
ILIAS\LegalDocuments\Provide\History\HistoryManager::deleteHistoryEntriesOlderEqualThanNr |
( |
int |
$delete_lower_than_nr, |
|
|
string |
$parent_type, |
|
|
int |
$page_id, |
|
|
string |
$lang |
|
) |
| |
|
protected |
◆ deleteOldHistoryEntries()
ILIAS\LegalDocuments\Provide\History\HistoryManager::deleteOldHistoryEntries |
( |
int |
$x_days, |
|
|
int |
$keep_entries |
|
) |
| |
- Parameters
-
int | $x_days | delet entries older than x days |
int | $keep_entries | entries that should be kept as minimum |
- Exceptions
-
Definition at line 51 of file class.HistoryManager.php.
References ILIAS\LegalDocuments\Provide\History\HistoryManager\deleteHistoryEntriesOlderEqualThanNr().
55 foreach ($this->history_repo->getMaxHistEntryPerPageOlderThanX($x_days) as $page) {
56 $max_deletable = $this->history_repo->getMaxDeletableNr($keep_entries, $page[
"parent_type"], (
int) $page[
"page_id"], $page[
"lang"]);
57 $delete_lower_than_nr = min($page[
"max_nr"], $max_deletable);
58 if ($delete_lower_than_nr > 0) {
60 $delete_lower_than_nr,
62 (
int) $page[
"page_id"],
deleteHistoryEntriesOlderEqualThanNr(int $delete_lower_than_nr, string $parent_type, int $page_id, string $lang)
◆ $history_repo
◆ $pc_definition
ILIAS COPage PC PCDefinition ILIAS\LegalDocuments\Provide\History\HistoryManager::$pc_definition |
|
protected |
The documentation for this class was generated from the following file: