@@ 380-389 (lines=10) @@ | ||
377 | * |
|
378 | * @return DMSDocument |
|
379 | */ |
|
380 | public function embargoUntilDate($datetime, $write = true) |
|
381 | { |
|
382 | $this->EmbargoedUntilDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
383 | ||
384 | if ($write) { |
|
385 | $this->write(); |
|
386 | } |
|
387 | ||
388 | return $this; |
|
389 | } |
|
390 | ||
391 | /** |
|
392 | * Clears any previously set embargos, so the Document always shows up in |
|
@@ 443-452 (lines=10) @@ | ||
440 | * |
|
441 | * @return DMSDocument |
|
442 | */ |
|
443 | public function expireAtDate($datetime, $write = true) |
|
444 | { |
|
445 | $this->ExpireAtDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
446 | ||
447 | if ($write) { |
|
448 | $this->write(); |
|
449 | } |
|
450 | ||
451 | return $this; |
|
452 | } |
|
453 | ||
454 | /** |
|
455 | * Clears any previously set expiry. |