[ class tree: plugins ] [ index: plugins ] [ all elements ]

Class: user_groups

Source Location: /zp-extensions/user_groups.php

Class user_groups

Class Overview

User group management. You can create groups with common rights and assign users to the groups. Then you can alter these user's rights simply by changing the group rights.

Templates can also be used. The difference between a group and a template is that the latter simply sets the user rights one time. Afterwards the user is independent from the template.

Located in /zp-extensions/user_groups.php [line 26]



		
				Author(s):
		
  • Stephen Billard (sbillard)
Information Tags:

Methods

[ Top ]
Method Summary
static void   admin_alterrights()  
static void   admin_tabs()  
static string   edit_admin()   Returns table row(s) for edit of an admin user's custom data
static void   groupList()  
static void   merge_rights()   Merges rights for multiple group memebership or templates
static bool   save_admin()   Saves admin custom data Called when an admin is saved

[ Top ]
Methods
static method admin_alterrights  [line 225]

  static void admin_alterrights( $alterrights, $userobj  )

Parameters:
   $alterrights: 
   $userobj: 


[ Top ]
static method admin_tabs  [line 206]

  static void admin_tabs( $tabs  )

Parameters:
   $tabs: 


[ Top ]
static method edit_admin  [line 181]

  static string edit_admin( string $html, $userobj $userobj, string $i, string $background, bool $current  )

Returns table row(s) for edit of an admin user's custom data

Parameters:
string   $html: 
string   $i:  prefix for the admin
string   $background:  background color for the admin row
bool   $current:  true if this admin row is the logged in admin
$userobj   $userobj:  Admin object


[ Top ]
static method groupList  [line 104]

  static void groupList( $userobj, $i, $background, $current, $template  )

Parameters:
   $userobj: 
   $i: 
   $background: 
   $current: 
   $template: 


[ Top ]
static method merge_rights  [line 33]

  static void merge_rights( object $userobj, array $groups  )

Merges rights for multiple group memebership or templates

Parameters:
object   $userobj: 
array   $groups: 


[ Top ]
static method save_admin  [line 94]

  static bool save_admin( string $updated, object $userobj, string $i, bool $alter  )

Saves admin custom data Called when an admin is saved

Parameters:
string   $updated:  true if there has been an update to the user
object   $userobj:  admin user object
string   $i:  prefix for the admin
bool   $alter:  will be true if critical admin data may be altered


[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:49 +0200 by phpDocumentor 1.4.3