Index: trunk/phase3/includes/Feed.php |
— | — | @@ -39,33 +39,33 @@ |
40 | 40 | /** |
41 | 41 | * @var Title |
42 | 42 | */ |
43 | | - var $Title = 'Wiki'; |
44 | | - var $Description = ''; |
45 | | - var $Url = ''; |
46 | | - var $Date = ''; |
47 | | - var $Author = ''; |
48 | | - var $UniqueId = ''; |
49 | | - var $RSSIsPermalink; |
| 43 | + var $title; |
| 44 | + var $description; |
| 45 | + var $url; |
| 46 | + var $date; |
| 47 | + var $author; |
| 48 | + var $uniqueId; |
| 49 | + var $comments; |
| 50 | + var $rssIsPermalink = false; |
50 | 51 | |
51 | 52 | /** |
52 | 53 | * Constructor |
53 | 54 | * |
54 | | - * @param $Title String|Title Item's title |
55 | | - * @param $Description String |
56 | | - * @param $Url String: URL uniquely designating the item. |
57 | | - * @param $Date String: Item's date |
58 | | - * @param $Author String: Author's user name |
59 | | - * @param $Comments String |
| 55 | + * @param $title String|Title Item's title |
| 56 | + * @param $description String |
| 57 | + * @param $url String: URL uniquely designating the item. |
| 58 | + * @param $date String: Item's date |
| 59 | + * @param $author String: Author's user name |
| 60 | + * @param $comments String |
60 | 61 | */ |
61 | | - function __construct( $Title, $Description, $Url, $Date = '', $Author = '', $Comments = '' ) { |
62 | | - $this->Title = $Title; |
63 | | - $this->Description = $Description; |
64 | | - $this->Url = $Url; |
65 | | - $this->UniqueId = $Url; |
66 | | - $this->RSSIsPermalink = false; |
67 | | - $this->Date = $Date; |
68 | | - $this->Author = $Author; |
69 | | - $this->Comments = $Comments; |
| 62 | + function __construct( $title, $description, $url, $date = '', $author = '', $comments = '' ) { |
| 63 | + $this->title = $title; |
| 64 | + $this->description = $description; |
| 65 | + $this->url = $url; |
| 66 | + $this->uniqueId = $url; |
| 67 | + $this->date = $date; |
| 68 | + $this->author = $author; |
| 69 | + $this->comments = $comments; |
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
— | — | @@ -86,8 +86,8 @@ |
87 | 87 | * @return String |
88 | 88 | */ |
89 | 89 | public function getUniqueId() { |
90 | | - if ( $this->UniqueId ) { |
91 | | - return $this->xmlEncode( $this->UniqueId ); |
| 90 | + if ( $this->uniqueId ) { |
| 91 | + return $this->xmlEncode( $this->uniqueId ); |
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
— | — | @@ -95,11 +95,11 @@ |
96 | 96 | * set the unique id of an item |
97 | 97 | * |
98 | 98 | * @param $uniqueId String: unique id for the item |
99 | | - * @param $RSSisPermalink Boolean: set to true if the guid (unique id) is a permalink (RSS feeds only) |
| 99 | + * @param $rssIsPermalink Boolean: set to true if the guid (unique id) is a permalink (RSS feeds only) |
100 | 100 | */ |
101 | | - public function setUniqueId($uniqueId, $RSSisPermalink = false) { |
102 | | - $this->UniqueId = $uniqueId; |
103 | | - $this->RSSIsPermalink = $RSSisPermalink; |
| 101 | + public function setUniqueId( $uniqueId, $rssIsPermalink = false ) { |
| 102 | + $this->uniqueId = $uniqueId; |
| 103 | + $this->rssIsPermalink = $rssIsPermalink; |
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | * @return String |
110 | 110 | */ |
111 | 111 | public function getTitle() { |
112 | | - return $this->xmlEncode( $this->Title ); |
| 112 | + return $this->xmlEncode( $this->title ); |
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | * @return String |
119 | 119 | */ |
120 | 120 | public function getUrl() { |
121 | | - return $this->xmlEncode( $this->Url ); |
| 121 | + return $this->xmlEncode( $this->url ); |
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | * @return String |
128 | 128 | */ |
129 | 129 | public function getDescription() { |
130 | | - return $this->xmlEncode( $this->Description ); |
| 130 | + return $this->xmlEncode( $this->description ); |
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | * @return String |
147 | 147 | */ |
148 | 148 | public function getDate() { |
149 | | - return $this->Date; |
| 149 | + return $this->date; |
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | * @return String |
156 | 156 | */ |
157 | 157 | public function getAuthor() { |
158 | | - return $this->xmlEncode( $this->Author ); |
| 158 | + return $this->xmlEncode( $this->author ); |
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | * @return String |
165 | 165 | */ |
166 | 166 | public function getComments() { |
167 | | - return $this->xmlEncode( $this->Comments ); |
| 167 | + return $this->xmlEncode( $this->comments ); |
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |