Suin\RSSWriter\ChannelTest::dataForAsXML PHP Метод

dataForAsXML() публичный статический Метод

public static dataForAsXML ( )
    public static function dataForAsXML()
    {
        $now = time();
        $nowString = date(DATE_RSS, $now);
        return [["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site."]], ["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                    <language>en-us</language>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.", 'language' => 'en-us']], ["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                    <pubDate>{$nowString}</pubDate>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.", 'pubDate' => $now]], ["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                    <lastBuildDate>{$nowString}</lastBuildDate>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.", 'lastBuildDate' => $now]], ["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                    <ttl>60</ttl>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.", 'ttl' => 60]], ["\n                <channel>\n                    <title>GoUpstate.com News Headlines</title>\n                    <link>http://www.goupstate.com/</link>\n                    <description>The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.</description>\n                    <copyright>Copyright 2002, Spartanburg Herald-Journal</copyright>\n                </channel>\n                ", ['title' => "GoUpstate.com News Headlines", 'url' => 'http://www.goupstate.com/', 'description' => "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site.", 'copyright' => "Copyright 2002, Spartanburg Herald-Journal"]]];
    }