Last change
on this file since 303 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * RSS Vocabulary (Resource)
|
---|
4 | *
|
---|
5 | * @version $Id: RSS_C.php 431 2007-05-01 15:49:19Z cweiske $
|
---|
6 | * @author Tobias Gauà (tobias.gauss@web.de)
|
---|
7 | * @package vocabulary
|
---|
8 | *
|
---|
9 | * Wrapper, defining resources for all terms of
|
---|
10 | * RSS.
|
---|
11 | * For details about RSS see: http://purl.org/rss/1.0/.
|
---|
12 | * Using the wrapper allows you to define all aspects of
|
---|
13 | * the vocabulary in one spot, simplifing implementation and
|
---|
14 | * maintainence.
|
---|
15 | */
|
---|
16 | class RSS{
|
---|
17 |
|
---|
18 | function CHANNEL()
|
---|
19 | {
|
---|
20 | return new Resource(RSS_NS . 'channel');
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | function IMAGE()
|
---|
25 | {
|
---|
26 | return new Resource(RSS_NS . 'image');
|
---|
27 |
|
---|
28 | }
|
---|
29 |
|
---|
30 | function ITEM()
|
---|
31 | {
|
---|
32 | return new Resource(RSS_NS . 'item');
|
---|
33 |
|
---|
34 | }
|
---|
35 |
|
---|
36 | function TEXTINPUT()
|
---|
37 | {
|
---|
38 | return new Resource(RSS_NS . 'textinput');
|
---|
39 |
|
---|
40 | }
|
---|
41 |
|
---|
42 | function ITEMS()
|
---|
43 | {
|
---|
44 | return new Resource(RSS_NS . 'items');
|
---|
45 |
|
---|
46 | }
|
---|
47 |
|
---|
48 | function TITLE()
|
---|
49 | {
|
---|
50 | return new Resource(RSS_NS . 'title');
|
---|
51 |
|
---|
52 | }
|
---|
53 |
|
---|
54 | function LINK()
|
---|
55 | {
|
---|
56 | return new Resource(RSS_NS . 'link');
|
---|
57 |
|
---|
58 | }
|
---|
59 |
|
---|
60 | function URL()
|
---|
61 | {
|
---|
62 | return new Resource(RSS_NS . 'url');
|
---|
63 |
|
---|
64 | }
|
---|
65 |
|
---|
66 | function DESCRIPTION()
|
---|
67 | {
|
---|
68 | return new Resource(RSS_NS . 'description');
|
---|
69 |
|
---|
70 | }
|
---|
71 |
|
---|
72 | function NAME()
|
---|
73 | {
|
---|
74 | return new Resource(RSS_NS . 'name');
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.