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

Class: LiveUser_Perm_Container_DB_Medium

Source Location: /LiveUser-0.11.0/Perm/Container/DB_Medium.php

Class Overview

LiveUser_Perm_Common
   |
   --LiveUser_Perm_Container_DB_Simple
      |
      --LiveUser_Perm_Container_DB_Medium

Class LiveUser_Perm_Container_DB_Medium


Author(s):

  • Arnaud Limbourg

Version:

  • $Id: DB_Medium.php,v 1.36 2004/04/25 13:37:44 lsmith Exp $

Methods


Child classes:

LiveUser_Perm_Container_DB_Complex
Class LiveUser_Perm_Container_DB_Complex

Inherited Variables

Inherited Methods

Class: LiveUser_Perm_Container_DB_Simple

LiveUser_Perm_Container_DB_Simple::LiveUser_Perm_Container_DB_Simple()
Constructor
LiveUser_Perm_Container_DB_Simple::disconnect()
properly disconnect from resources
LiveUser_Perm_Container_DB_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_DB_Simple::readRights()
Reads all rights of current user into an associative array.
LiveUser_Perm_Container_DB_Simple::userExists()
LiveUser_Perm_Container_DB_Complex::userExists()

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::checkRightLevel()
Checks if the current user has a certain right in a given area with the sufficient level to gain access to a specific ressource in that 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 49]
Class LiveUser_Perm_Container_DB_Medium

Medium DB-based complexity driver for LiveUser.

Description: The DB_Medium provides the following functionalities

  • users
  • groups
  • grouprights
  • userrights
  • authareas

  • Author: Arnaud Limbourg
  • Version: $Id: DB_Medium.php,v 1.36 2004/04/25 13:37:44 lsmith Exp $


[ Top ]


Method Detail

LiveUser_Perm_Container_DB_Medium (Constructor)   [line 56]

LiveUser_Perm_Container_DB_Medium &LiveUser_Perm_Container_DB_Medium( &$connectOptions, mixed $connectOptions)

Constructor

Parameters:

mixed   $connectOptions   —  Array or PEAR::DB object.
   &$connectOptions   — 

[ Top ]

init   [line 69]

mixed init( string $uid)

Tries to find the user with the given user ID in the permissions container. Will read all permission data and return true on success.
  • Return: true on success or a PEAR_Error object
  • Access: public

Overrides LiveUser_Perm_Container_DB_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.)

Parameters:

string   $uid   —  user identifier

[ Top ]

readGroupRights   [line 260]

mixed readGroupRights( )

Reads the group rights and put them in the array

right => 1

  • Return: DB_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 161]

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: DB_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 10:16:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.