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

Class: LiveUser_Perm_Storage_MDB

Source Location: /LiveUser-0.16.5/Perm/Storage/MDB.php

Class Overview

LiveUser_Perm_Storage
   |
   --LiveUser_Perm_Storage_SQL
      |
      --LiveUser_Perm_Storage_MDB

MDB container for permission handling


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2005 Markus Wolff

Methods


Inherited Variables

Inherited Methods

Class: LiveUser_Perm_Storage_SQL

LiveUser_Perm_Storage_SQL::disconnect()
Properly disconnect from database

Class: LiveUser_Perm_Storage

LiveUser_Perm_Storage::LiveUser_Perm_Storage()
Constructor
LiveUser_Perm_Storage::disconnect()
properly disconnect from resources
LiveUser_Perm_Storage::freeze()
store all properties in an array
LiveUser_Perm_Storage::init()
LiveUser_Perm_Storage::mapUser()
LiveUser_Perm_Storage::readAreaAdminAreas()
LiveUser_Perm_Storage::readGroupRights()
Reads the group rights and put them in the array
LiveUser_Perm_Storage::readSubGroups()
LiveUser_Perm_Storage::readUserRights()
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_Storage::unfreeze()
Reinitializes properties

Class Details

[line 77]
MDB container for permission handling

This is a PEAR::MDB backend driver for the LiveUser class. A PEAR::MDB connection object can be passed to the constructor to reuse an existing connection. Alternatively, a DSN can be passed to open a new one.

Requirements:

  • File "Liveuser.php" (contains the parent class "LiveUser")
  • Array of connection options or a PEAR::MDB connection object must be passed to the constructor. Example: array('dsn' => 'mysql://user:pass@host/db_name') OR &$conn (PEAR::MDB connection object)



[ Top ]


Method Detail

init   [line 88]

boolean init( $storageConf, array &$storageConf)

  • Return: true on success, false on failure.
  • Access: public

Overrides LiveUser_Perm_Storage::init() (parent method not documented)

Parameters:

array   &$storageConf   —  Array with the storage configuration
   $storageConf   — 

[ Top ]

mapUser   [line 132]

mixed mapUser( int $auth_user_id, string $containerName)

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

Overrides LiveUser_Perm_Storage::mapUser() (parent method not documented)

Parameters:

int   $auth_user_id   — 
string   $containerName   — 

[ Top ]

readAreaAdminAreas   [line 212]

mixed readAreaAdminAreas( int $perm_user_id)

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

Overrides LiveUser_Perm_Storage::readAreaAdminAreas() (parent method not documented)

Parameters:

int   $perm_user_id   — 

[ Top ]

readGroupRights   [line 297]

mixed readGroupRights( array $group_ids)

Reads the group rights and put them in the array

right => 1

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

Overrides LiveUser_Perm_Storage::readGroupRights() (Reads the group rights and put them in the array)

Parameters:

array   $group_ids   —  array with id's for the groups that rights will be read from

[ Top ]

readImpliedRights   [line 422]

mixed readImpliedRights( array $currentRights, string $currentLevel)

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

Parameters:

array   $currentRights   — 
string   $currentLevel   — 

[ Top ]

readImplyingRights   [line 379]

mixed readImplyingRights( array $rightIds, string $table)

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

Parameters:

array   $rightIds   — 
string   $table   — 

[ Top ]

readSubGroups   [line 335]

mixed readSubGroups( array $group_ids, array $newGroupIds)

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

Overrides LiveUser_Perm_Storage::readSubGroups() (parent method not documented)

Parameters:

array   $group_ids   — 
array   $newGroupIds   — 

[ Top ]

readUserRights   [line 174]

mixed readUserRights( int $perm_user_id)

Reads all rights of current user into a two-dimensional associative array, having the area names as the key of the 1st dimension.

Group rights and invididual rights are being merged in the process.

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

Overrides LiveUser_Perm_Storage::readUserRights() (Reads all rights of current user into a two-dimensional associative array, having the area names as the key of the 1st dimension.)

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.