Show
Ignore:
Timestamp:
10/01/08 07:39:26 (3 months ago)
Author:
anatoo
Message:

レスポンス周り追加

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/plain_php/trunk/core/RssResponse.php

    r20040 r20336  
    11<?php 
    22 
     3class 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}