]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - lib/atom10entry.php
1b79ce7ad55bbe9565d0388878c94f46f84ea199
[quix0rs-gnu-social.git] / lib / atom10entry.php
1 <?php
2
3 class Atom10EntryException extends Exception
4 {
5 }
6
7 class Atom10Entry extends XMLStringer
8 {
9     private $namespaces;
10     private $categories;
11     private $content;
12     private $contributors;
13     private $id;
14     private $links;
15     private $published;
16     private $rights;
17     private $source;
18     private $summary;
19     private $title;
20
21     function __construct($indent = true) {
22         parent::__construct($indent);
23         $this->namespaces = array();
24     }
25
26     function addNamespace($namespace, $uri)
27     {
28         $ns = array($namespace => $uri);
29         $this->namespaces = array_merge($this->namespaces, $ns);
30     }
31
32     function initEntry()
33     {
34
35     }
36
37     function endEntry()
38     {
39
40     }
41
42     function validate
43     {
44
45     }
46
47     function getString()
48     {
49         $this->validate();
50
51         $this->initEntry();
52         $this->renderEntries();
53         $this->endEntry();
54
55         return $this->xw->outputMemory();
56     }
57
58 }