mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2014 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Alchemy\Phrasea\Feed\Formatter;
|
|
|
|
use Alchemy\Phrasea\Application;
|
|
use Alchemy\Phrasea\Feed\FeedInterface;
|
|
use Alchemy\Phrasea\Model\Entities\User;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
interface FeedFormatterInterface
|
|
{
|
|
/**
|
|
* Returns a string representation of the feed.
|
|
*
|
|
* @param FeedInterface $feed
|
|
* @param int $page
|
|
* @param User $user
|
|
* @param string $generator
|
|
* @param Application $app
|
|
*
|
|
* @return string
|
|
*/
|
|
public function format(FeedInterface $feed, $page, User $user = null, $generator = 'Phraseanet', Application $app);
|
|
|
|
/**
|
|
* Returns an HTTP Response containing a string representation of the feed.
|
|
*
|
|
* @param FeedInterface $feed
|
|
* @param int $page
|
|
* @param User $user
|
|
* @param string $generator
|
|
* @param Application $app
|
|
*
|
|
* @return Response
|
|
*/
|
|
public function createResponse(Application $app, FeedInterface $feed, $page, User $user = null, $generator = 'Phraseanet');
|
|
}
|