apps/files_trashbin/lib/expiration.php 1 location
|
@@ 112-119 (lines=8) @@
|
| 109 |
|
/** |
| 110 |
|
* @return bool|int |
| 111 |
|
*/ |
| 112 |
|
public function getMaxAgeAsTimestamp() { |
| 113 |
|
$maxAge = false; |
| 114 |
|
if ($this->isEnabled() && $this->maxAge !== self::NO_OBLIGATION) { |
| 115 |
|
$time = $this->timeFactory->getTime(); |
| 116 |
|
$maxAge = $time - ($this->maxAge * 86400); |
| 117 |
|
} |
| 118 |
|
return $maxAge; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
private function parseRetentionObligation(){ |
| 122 |
|
$splitValues = explode(',', $this->retentionObligation); |
apps/files_versions/lib/expiration.php 1 location
|
@@ 119-126 (lines=8) @@
|
| 116 |
|
* Get maximal retention obligation as a timestamp |
| 117 |
|
* @return int |
| 118 |
|
*/ |
| 119 |
|
public function getMaxAgeAsTimestamp(){ |
| 120 |
|
$maxAge = false; |
| 121 |
|
if ($this->isEnabled() && $this->maxAge !== self::NO_OBLIGATION) { |
| 122 |
|
$time = $this->timeFactory->getTime(); |
| 123 |
|
$maxAge = $time - ($this->maxAge * 86400); |
| 124 |
|
} |
| 125 |
|
return $maxAge; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
/** |
| 129 |
|
* Read versions_retention_obligation, validate it |