Ocs-server/Gfx4/User management

From KDE Community Wiki
Revision as of 11:10, 9 May 2016 by Snizzo (talk | contribs) (Created page with "The EUser static class (with static methods) allows you to easily handle user management on your website. Admin panel will support also for easy gfx users management. Small r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The EUser static class (with static methods) allows you to easily handle user management on your website. Admin panel will support also for easy gfx users management.

Small reference:

  • bool EUser::login($nick,$pass) -> attempts a login with given credentials
  • void EUser::logout() -> Performs a logout() call on whatever user is logged.
  • void EUser::gdeny($group) -> Denies access to this page to all users belonging to $group
  • void EUser::gallow($group) -> Allows access to this page to all users belonging to $group
  • bool EUser::logged() -> returns true if user is logged else false
  • string EUser::password() -> returns user's password
  • string EUser::mail() -> returns user's mail
  • string EUser::id() -> returns user's id
  • string EUser::group() -> returns user's group
  • void EUser::register($nick, $pass, $group) -> attempts a registration to gfx user system with given $nick, $pass and $group