Suin\RSSWriter\Item::title PHP Method

title() public method

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

Usage Example

Example #1
0
function generate_rss($posts)
{
    $feed = new Feed();
    $channel = new Channel();
    $channel->title(config('blog.title'))->description(config('blog.description'))->url(site_url())->appendTo($feed);
    foreach ($posts as $p) {
        $item = new Item();
        $item->title($p->title)->description($p->body)->url($p->url)->appendTo($channel);
    }
    echo $feed;
}
All Usage Examples Of Suin\RSSWriter\Item::title