Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Reader/ReaderImportInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * Zend Framework (http://framework.zend.com/) | |
5 * | |
6 * @link http://github.com/zendframework/zf2 for the canonical source repository | |
7 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | |
8 * @license http://framework.zend.com/license/new-bsd New BSD License | |
9 */ | |
10 | |
11 namespace Zend\Feed\Reader; | |
12 | |
13 interface ReaderImportInterface | |
14 { | |
15 /** | |
16 * Import a feed by providing a URI | |
17 * | |
18 * @param string $uri The URI to the feed | |
19 * @param string $etag OPTIONAL Last received ETag for this resource | |
20 * @param string $lastModified OPTIONAL Last-Modified value for this resource | |
21 * @return Feed\FeedInterface | |
22 * @throws Exception\RuntimeException | |
23 */ | |
24 public static function import($uri, $etag = null, $lastModified = null); | |
25 | |
26 /** | |
27 * Import a feed from a remote URI | |
28 * | |
29 * Performs similarly to import(), except it uses the HTTP client passed to | |
30 * the method, and does not take into account cached data. | |
31 * | |
32 * Primary purpose is to make it possible to use the Reader with alternate | |
33 * HTTP client implementations. | |
34 * | |
35 * @param string $uri | |
36 * @param Http\ClientInterface $client | |
37 * @return self | |
38 * @throws Exception\RuntimeException if response is not an Http\ResponseInterface | |
39 */ | |
40 public static function importRemoteFeed($uri, Http\ClientInterface $client); | |
41 | |
42 | |
43 /** | |
44 * Import a feed from a string | |
45 * | |
46 * @param string $string | |
47 * @return Feed\FeedInterface | |
48 * @throws Exception\InvalidArgumentException | |
49 * @throws Exception\RuntimeException | |
50 */ | |
51 public static function importString($string); | |
52 | |
53 | |
54 /** | |
55 * Imports a feed from a file located at $filename. | |
56 * | |
57 * @param string $filename | |
58 * @throws Exception\RuntimeException | |
59 * @return Feed\FeedInterface | |
60 */ | |
61 public static function importFile($filename); | |
62 } |