| | 3 | class RssResponse implements IResponse |
| | 4 | { |
| | 5 | protected $channel, $items = array(); |
| | 6 | function buildRenderer(RendererBuilder $b) |
| | 7 | { |
| | 8 | return $b->buildRssRenderer(); |
| | 9 | } |
| | 10 | function setChannel($title, $url, $desc) |
| | 11 | { |
| | 12 | $this->channel = func_get_args(); |
| | 13 | } |
| | 14 | function setDescription($d) |
| | 15 | { |
| | 16 | $this->desc = $d; |
| | 17 | } |
| | 18 | function addItem($title, $desc, $link, $author) |
| | 19 | { |
| | 20 | $this->items[] = func_get_args(); |
| | 21 | } |
| | 22 | function getChannel() |
| | 23 | { |
| | 24 | return $this->channel; |
| | 25 | } |
| | 26 | function getItems() |
| | 27 | { |
| | 28 | return $this->items; |
| | 29 | } |
| | 30 | } |