summaryrefslogtreecommitdiffstats
path: root/templates/test.php
blob: 6796a8cdcda17c1a0fb867baff6921d599496aa9 (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 OCA\News\Feed) {
		echo $collection->getTitle() . '\n';
	} else {
		echo 'NO\n';
	}
}
echo $title;