Suin\RSSWriter\Channel::title PHP 메소드

title() 공개 메소드

Set channel title
public title ( string $title )
$title string
    public function title($title)
    {
        $this->title = $title;
        return $this;
    }

Usage Example

예제 #1
0
파일: myFunc.php 프로젝트: sky-L/LBlog-Slim
function generate_rss($posts)
{
    $feed = new Feed();
    $channel = new Channel();
    $channel->title('LBlog')->description('A very light weight blog.')->url('http://localhost:8000')->appendTo($feed);
    $item = new Item();
    foreach ($posts as $post) {
        $item->title($post->title)->description($post->body)->url($post->url)->appendTo($channel);
    }
    echo $feed;
}
All Usage Examples Of Suin\RSSWriter\Channel::title