@@ 388-397 (lines=10) @@ | ||
385 | * |
|
386 | * @return DMSDocument |
|
387 | */ |
|
388 | public function embargoUntilDate($datetime, $write = true) |
|
389 | { |
|
390 | $this->EmbargoedUntilDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
391 | ||
392 | if ($write) { |
|
393 | $this->write(); |
|
394 | } |
|
395 | ||
396 | return $this; |
|
397 | } |
|
398 | ||
399 | /** |
|
400 | * Clears any previously set embargos, so the Document always shows up in |
|
@@ 451-460 (lines=10) @@ | ||
448 | * |
|
449 | * @return DMSDocument |
|
450 | */ |
|
451 | public function expireAtDate($datetime, $write = true) |
|
452 | { |
|
453 | $this->ExpireAtDate = DBField::create_field('SS_Datetime', $datetime)->Format('Y-m-d H:i:s'); |
|
454 | ||
455 | if ($write) { |
|
456 | $this->write(); |
|
457 | } |
|
458 | ||
459 | return $this; |
|
460 | } |
|
461 | ||
462 | /** |
|
463 | * Clears any previously set expiry. |