blob: a28c9cda7b678795be3e78695ccd093c5be9babf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
class AtomNoticeFeed extends Atom10Feed
{
function __construct($indent = true) {
parent::__construct($indent);
// Feeds containing notice info use the Atom Threading Extensions
$this->addNamespace(
'xmlns:thr',
'http://purl.org/syndication/thread/1.0'
);
}
function addEntryFromNotices($notices)
{
if (is_array($notices)) {
foreach ($notices as $notice) {
$this->addEntryFromNotice($notice);
}
} else {
while ($notices->fetch()) {
$this->addEntryFromNotice($notice);
}
}
}
function addEntryFromNotice($notice)
{
$this->addEntryRaw($notice->asAtomEntry());
}
}
|