1 | <?php |
||
7 | class DigitalPodcast extends AbstractVendor implements VendorInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | const APP_ID = "podcastsearchdemo"; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | const SEARCH_URL = "http://api.digitalpodcast.com/v2r/search"; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | const FORMAT = "rss"; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $limit = 15; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $defaultQuery = null; |
||
33 | |||
34 | /** |
||
35 | * DigitalPodcast constructor. |
||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | public function getLimit() |
||
49 | |||
50 | /** |
||
51 | * @param int $limit |
||
52 | */ |
||
53 | public function setLimit($limit) |
||
58 | |||
59 | /** |
||
60 | * @return void |
||
61 | */ |
||
62 | public function setDefaultQuery() |
||
70 | |||
71 | /** |
||
72 | * @param string $value |
||
73 | * @return string |
||
74 | */ |
||
75 | public function generateUrl($value) |
||
82 | |||
83 | /** |
||
84 | * @param array $response |
||
85 | * @return array |
||
86 | */ |
||
87 | public function build(array $response) |
||
104 | |||
105 | /** |
||
106 | * @return void |
||
107 | */ |
||
108 | public function original() |
||
112 | } |
||
113 |