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

Class: LiveUser_Perm_Medium

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

Class Overview

LiveUser_Perm_Simple
   |
   --LiveUser_Perm_Medium

Medium permission complexity driver for LiveUser.


Author(s):

  • Arnaud Limbourg

Version:

  • $Id: Medium.php,v 1.4 2004/12/18 21:52:03 lsmith Exp $

Variables

Methods


Child classes:

LiveUser_Perm_Complex
This is a PEAR::MDB2 backend driver for the LiveUser class.

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()
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 47]
Medium permission complexity driver for LiveUser.

Description: The Medium provides the following functionalities

  • users
  • groups
  • grouprights
  • userrights
  • authareas

  • Author: Arnaud Limbourg
  • Version: $Id: Medium.php,v 1.4 2004/12/18 21:52:03 lsmith Exp $


[ Top ]


Class Variables

$groupIds = array()

[line 57]

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

Format: "RightId" => "Level"


Type:   array


[ Top ]

$groupRights = array()

[line 67]

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

Format: "RightId" => "Level"


Type:   array


[ Top ]



Method Detail

LiveUser_Perm_Medium (Constructor)   [line 76]

void LiveUser_Perm_Medium( mixed &$confArray)

Constructor
  • Access: protected

Parameters:

mixed   &$confArray   —  configuration array

[ Top ]

checkGroup   [line 231]

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.
  • Access: public

Parameters:

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

[ Top ]

readAreaAdminAreas   [line 164]

mixed readAreaAdminAreas( int $permUserId)

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

Parameters:

int   $permUserId   — 

[ Top ]

readGroupRights   [line 204]

mixed readGroupRights( array $groupIds)

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

Parameters:

array   $groupIds   — 

[ Top ]

readGroups   [line 184]

mixed readGroups( int $permUserId)

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

Parameters:

int   $permUserId   — 

[ Top ]


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