mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Add missing files
This commit is contained in:
@@ -0,0 +1,67 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2013 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Notification\Mail;
|
||||||
|
|
||||||
|
use Alchemy\Phrasea\Exception\LogicException;
|
||||||
|
|
||||||
|
class MailSuccessFTPReceiver extends AbstractMail
|
||||||
|
{
|
||||||
|
/** @var string */
|
||||||
|
private $server;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the server related to the FTP export
|
||||||
|
*
|
||||||
|
* @param string $server
|
||||||
|
*/
|
||||||
|
public function setServer($server)
|
||||||
|
{
|
||||||
|
$this->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()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
47
lib/classes/caption/Field/ThesaurusValue.php
Normal file
47
lib/classes/caption/Field/ThesaurusValue.php
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2013 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
class ThesaurusValue
|
||||||
|
{
|
||||||
|
/** @var string */
|
||||||
|
private $value;
|
||||||
|
/** @var \databox_field */
|
||||||
|
private $field;
|
||||||
|
/** @var string */
|
||||||
|
private $query;
|
||||||
|
|
||||||
|
public function __construct($value, \databox_field $field, $query)
|
||||||
|
{
|
||||||
|
$this->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;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user