Re: AddUser basic question
Matthias Nothhaft <[email protected]> Tue, 08 Nov 2005 17:20:11 +0100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
cron-jbULQAKo4A5fyO9Q7EP/[email protected] schrieb: >Hello, > > >What the param $type is for? > >I know from the examples that is the user level, but user level for what? > >$admin->addUser($data, $type = LIVEUSER_USER_TYPE_ID) > > See it as level of permission. Take a look at LiveUser.php There are some user type constants defined. Using these levels you can easily separate users into general roles like: "anonyous users", "registered users", "administrators", ... Hope that helps. Regards, Matthias