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

$content = file_get_contents('/var/www/apps/news/prova.opml');

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;