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