summaryrefslogtreecommitdiffstats
path: root/templates/test.php
blob: d088fe02dfdc072b4d8931641f3493749172f31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php 

$content = file_get_contents('/tmp/occOrigzvXqKO');

require_once('news/opmlparser.php');

$parser = new OPMLParser($content);
$title = $parser->getTitle();
$data = $parser->parse();

foreach ($data as $collection) {
	if ($collection instanceof OC_News_Feed) {
		echo $collection->getTitle() . '\n';
	} else {
		echo 'NO\n';
	}
}
echo $title;