/[cvs]/bareface/yakka/library/YakkaRole.php
ViewVC logotype

Contents of /bareface/yakka/library/YakkaRole.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sun Jan 5 00:22:25 2003 UTC (21 years, 6 months ago) by bareface
Branch: MAIN
CVS Tags: HEAD
init;

1 <?php
2
3 require_once("YakkaObject.php");
4
5 class YakkaRole extends YakkaObject {
6 var $userStorage;
7
8 var $exists;
9
10 var $name;
11 var $comment;
12
13 function YakkaRole($id = null) {
14 $$singleton = YAKKA_GLOBAL_SINGLETON;
15 global $singleton;
16 $this->userStorage = &$singleton->userStorage;
17
18 $this->YakkaObject($id);
19
20 $this->exists = $this->load($id);
21 }
22
23 function load($id) {
24 if ($data = $this->userStorage->loadRole($id)) {
25 $this->id = $data["id"];
26 $this->name = $data["name"];
27 $this->comment = $data["comment"];
28
29 $this->exists = true;
30 } else {
31 $this->id = $id;
32 $this->exists = false;
33 }
34
35 return $this->exists;
36 }
37 }
38
39 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed