Parent Directory | Revision Log
init;
1 | bareface | 1.1 | <?php |
2 | /* | ||
3 | |||
4 | YakkaObject | ||
5 | |||
6 | Is the base-class of all objects of Yakka able to be identified and serialized to XML. | ||
7 | |||
8 | TODO:DESCRIPTION | ||
9 | */ | ||
10 | |||
11 | class YakkaObject { | ||
12 | var $id; | ||
13 | |||
14 | function YakkaObject($id) { | ||
15 | $this->id = $id; | ||
16 | } | ||
17 | |||
18 | function getId() { | ||
19 | return $this->id; | ||
20 | } | ||
21 | |||
22 | function getType() { | ||
23 | return get_class($this); | ||
24 | } | ||
25 | |||
26 | function is($className) { | ||
27 | return strtolower($className) == get_class($this); | ||
28 | } | ||
29 | } | ||
30 | |||
31 | ?> |
MailToCvsAdmin">MailToCvsAdmin | ViewVC Help |
Powered by ViewVC 1.1.26 |