diff --git a/lib/Alchemy/Phrasea/Notification/Mail/MailSuccessFTPReceiver.php b/lib/Alchemy/Phrasea/Notification/Mail/MailSuccessFTPReceiver.php new file mode 100644 index 0000000000..5c391f86e9 --- /dev/null +++ b/lib/Alchemy/Phrasea/Notification/Mail/MailSuccessFTPReceiver.php @@ -0,0 +1,67 @@ +server = $server; + } + + /** + * {@inheritdoc} + */ + public function getSubject() + { + if (!$this->server) { + throw new LogicException('You must set server before calling getSubject'); + } + + return sprintf( + _('You just received some documents from %s on %s'), + $this->getPhraseanetTitle(), $this->server + ); + } + + /** + * {@inheritdoc} + */ + public function getMessage() + { + return $this->message; + } + + /** + * {@inheritdoc} + */ + public function getButtonText() + { + } + + /** + * {@inheritdoc} + */ + public function getButtonURL() + { + } +} diff --git a/lib/classes/caption/Field/ThesaurusValue.php b/lib/classes/caption/Field/ThesaurusValue.php new file mode 100644 index 0000000000..d62aa46d79 --- /dev/null +++ b/lib/classes/caption/Field/ThesaurusValue.php @@ -0,0 +1,47 @@ +value = $value; + $this->field = $field; + $this->query = $query; + } + + public function getValue() + { + return $this->value; + } + + public function getField() + { + return $this->field; + } + + public function getQuery() + { + return $this->query; + } + + public function __toString() + { + return $this->value; + } +}