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

Class: LiveUser_Perm_Container_MDB2_Medium

Source Location: /LiveUser-0.13.0/Perm/Container/MDB2/Medium.php

Class Overview

LiveUser_Perm_Common
   |
   --LiveUser_Perm_Container_MDB2_Simple
      |
      --LiveUser_Perm_Container_MDB2_Medium

Medium MDB2-based complexity driver for LiveUser.


Author(s):

  • Arnaud Limbourg

Version:

  • $Id: Medium.php,v 1.2 2004/07/23 16:54:12 lsmith Exp $

Methods


Child classes:

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

Inherited Variables

Inherited Methods

Class: LiveUser_Perm_Container_MDB2_Simple

LiveUser_Perm_Container_MDB2_Simple::LiveUser_Perm_Container_MDB2_Simple()
Constructor
LiveUser_Perm_Container_MDB2_Simple::disconnect()
properly disconnect from resources
LiveUser_Perm_Container_MDB2_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_Container_MDB2_Simple::readRights()
Reads all rights of current user into an associative array.
LiveUser_Perm_Container_MDB2_Simple::userExists()
Checks if a user with the given perm_user_id exists in the permission container and returns true on success.

Class: LiveUser_Perm_Common

LiveUser_Perm_Common::LiveUser_Perm_Common()
Class constructor. Feel free to override in backend subclasses.
LiveUser_Perm_Common::checkLevel()
Checks if the current user has a certain right in a given area at the necessary level.
LiveUser_Perm_Common::checkRight()
Checks if the current user has a certain right in a given area.
LiveUser_Perm_Common::disconnect()
properly disconnect from resources
LiveUser_Perm_Common::freeze()
store all properties in an array
LiveUser_Perm_Common::getProperty()
Function returns the inquired value if it exists in the class.
LiveUser_Perm_Common::getRights()
Returns a one-dimensional array with all rights assigned
LiveUser_Perm_Common::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_Common::readGroupRights()
Reads all individual rights of current user into a two-dimensional array of this format: "GroupName" => "AreaName" -> "RightName"
LiveUser_Perm_Common::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_Common::readUserRights()
Reads all individual rights of current user into a two-dimensional array of this format: AreaName => RightName -> Value
LiveUser_Perm_Common::unfreeze()
Reinitializes properties
LiveUser_Perm_Common::userExists()
Checks if a user with the given perm_user_id exists in the permission container and returns true on success.

Class Details

[line 47]
Medium MDB2-based complexity driver for LiveUser.

Description: The MDB2_Medium provides the following functionalities

  • users
  • groups
  • grouprights
  • userrights
  • authareas

  • Author: Arnaud Limbourg
  • Version: $Id: Medium.php,v 1.2 2004/07/23 16:54:12 lsmith Exp $


[ Top ]


Method Detail

LiveUser_Perm_Container_MDB2_Medium (Constructor)   [line 56]

void LiveUser_Perm_Container_MDB2_Medium( mixed &$connectOptions)

Constructor
  • Access: protected

Parameters:

mixed   &$connectOptions   —  configuration array

[ Top ]

readGroupRights   [line 231]

mixed readGroupRights( )

Reads the group rights and put them in the array

right => 1

  • Return: MDB2_Error on failure or nothing
  • Access: public

Overrides LiveUser_Perm_Common::readGroupRights() (Reads all individual rights of current user into a two-dimensional array of this format: "GroupName" => "AreaName" -> "RightName")
[ Top ]

readUserRights   [line 126]

mixed readUserRights( )

Reads the user rights and put them in an array

right => level

This level is either 1 or -1 i.e. you grant the user the right or you do not allow him to have the right.

  • Return: MDB2_Error on failure or nothing
  • Access: public

Overrides LiveUser_Perm_Common::readUserRights() (Reads all individual rights of current user into a two-dimensional array of this format: AreaName => RightName -> Value)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:56:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.