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

Class: LiveUser_Perm_Medium

Source Location: /LiveUser-0.16.5/Perm/Medium.php

Class Overview

LiveUser_Perm_Simple
   |
   --LiveUser_Perm_Medium

Medium container for permission handling


Author(s):

  • Arnaud Limbourg

Version:

  • Release: @package_version@

Copyright:

  • 2002-2005 Markus Wolff

Variables

Methods


Child classes:

LiveUser_Perm_Complex
Complex container for permission handling

Inherited Variables

Inherited Methods

Class: LiveUser_Perm_Simple

LiveUser_Perm_Simple::LiveUser_Perm_Simple()
Class constructor. Feel free to override in backend subclasses.
LiveUser_Perm_Simple::checkRight()
Checks if the current user has a certain right in a given area.
LiveUser_Perm_Simple::disconnect()
properly disconnect from resources
LiveUser_Perm_Simple::freeze()
store all properties in an array
LiveUser_Perm_Simple::getProperty()
Function returns the inquired value if it exists in the class.
LiveUser_Perm_Simple::init()
Load the storage container
LiveUser_Perm_Simple::mapUser()
Tries to find the user with the given user ID in the permissions container. Will read all permission data and return true on success.
LiveUser_Perm_Simple::readRights()
Reads all rights of current user into a two-dimensional associative array, having the area names as the key of the 1st dimension.
LiveUser_Perm_Simple::readUserRights()
LiveUser_Perm_Simple::unfreeze()
Reinitializes properties

Class Details

[line 72]
Medium container for permission handling

Medium permission complexity driver for LiveUser.



[ Top ]


Class Variables

$group_ids = array()

[line 83]

One-dimensional array containing all the groups ids for the actual user.

Format: "RightId" => "Level"

  • Access: public

Type:   array


[ Top ]

$group_rights = array()

[line 94]

One-dimensional array containing only the group rights for the actual user.

Format: "RightId" => "Level"

  • Access: public

Type:   array


[ Top ]



Method Detail

checkGroup   [line 216]

boolean. checkGroup( integer $group_id, boolean $ondemand)

Checks if the current user is a member of a certain group If $this->ondemand and $ondemand is true, the groups will be loaded on the fly.
  • Return: If group_ids isn't populated then false,
  • Access: public

Parameters:

integer   $group_id   —  Id of the group to check for.
boolean   $ondemand   —  allow ondemand reading of groups

[ Top ]

readGroupRights   [line 187]

mixed readGroupRights( array $group_ids)

  • Return: array or false on failure
  • Access: public

Parameters:

array   $group_ids   — 

[ Top ]

readGroups   [line 166]

mixed readGroups( int $perm_user_id)

  • Return: array or false on failure
  • Access: public

Parameters:

int   $perm_user_id   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:16:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.