mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?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\Feed\Formatter;
|
|
|
|
use Alchemy\Phrasea\Application;
|
|
use Alchemy\Phrasea\Feed\FeedInterface;
|
|
|
|
interface FeedFormatterInterface
|
|
{
|
|
/**
|
|
* Returns a string representation of the feed.
|
|
*
|
|
* @param FeedInterface $feed
|
|
* @param type $page
|
|
* @param \User_Adapter $user
|
|
* @param type $generator
|
|
* @param Application $app
|
|
*
|
|
* @return string
|
|
*/
|
|
public function format(FeedInterface $feed, $page, \User_Adapter $user = null, $generator = 'Phraseanet', Application $app = null);
|
|
|
|
/**
|
|
* Returns an HTTP Response containing a string representation of the feed.
|
|
*
|
|
* @param FeedInterface $feed
|
|
* @param type $page
|
|
* @param \User_Adapter $user
|
|
* @param type $generator
|
|
* @param Application $app
|
|
*
|
|
* @return string
|
|
*/
|
|
public function createResponse(FeedInterface $feed, $page, \User_Adapter $user = null, $generator = 'Phraseanet', Application $app = null);
|
|
}
|