| @@ 572-581 (lines=10) @@ | ||
| 569 | * |
|
| 570 | * @return DMSDocument |
|
| 571 | */ |
|
| 572 | public function embargoUntilDate($datetime, $write = true) |
|
| 573 | { |
|
| 574 | $this->EmbargoedUntilDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
| 575 | ||
| 576 | if ($write) { |
|
| 577 | $this->write(); |
|
| 578 | } |
|
| 579 | ||
| 580 | return $this; |
|
| 581 | } |
|
| 582 | ||
| 583 | /** |
|
| 584 | * Clears any previously set embargos, so the Document always shows up in |
|
| @@ 635-644 (lines=10) @@ | ||
| 632 | * |
|
| 633 | * @return DMSDocument |
|
| 634 | */ |
|
| 635 | public function expireAtDate($datetime, $write = true) |
|
| 636 | { |
|
| 637 | $this->ExpireAtDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
| 638 | ||
| 639 | if ($write) { |
|
| 640 | $this->write(); |
|
| 641 | } |
|
| 642 | ||
| 643 | return $this; |
|
| 644 | } |
|
| 645 | ||
| 646 | /** |
|
| 647 | * Clears any previously set expiry. |
|