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

Class: LiveUser_Perm_Storage_MDB

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

Class Overview

LiveUser_Perm_Storage
   |
   --LiveUser_Perm_Storage_SQL
      |
      --LiveUser_Perm_Storage_MDB

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


Author(s):

Version:

  • $Id: MDB.php,v 1.6 2004/12/18 21:49:30 lsmith Exp $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 51]
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 53]

void init( &$storageConf)


Parameters:

   &$storageConf   — 

[ Top ]

mapUser   [line 92]

mixed mapUser( int $authUserId, string $containerName)

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

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

Parameters:

int   $authUserId   — 
string   $containerName   — 

[ Top ]

readAreaAdminAreas   [line 170]

mixed readAreaAdminAreas( int $permUserId)

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

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

Parameters:

int   $permUserId   — 

[ Top ]

readGroupRights   [line 252]

mixed readGroupRights( array $groupIds)

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   $groupIds   —  array with id's for the groups that rights will be read from

[ Top ]

readImpliedRights   [line 374]

mixed readImpliedRights( array $currentRights, string $currentLevel)

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

Parameters:

array   $currentRights   — 
string   $currentLevel   — 

[ Top ]

readImplyingRights   [line 332]

mixed readImplyingRights( array $rightIds, string $table)

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

Parameters:

array   $rightIds   — 
string   $table   — 

[ Top ]

readSubGroups   [line 289]

mixed readSubGroups( array $groupIds, array $newGroupIds)

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

Parameters:

array   $groupIds   — 
array   $newGroupIds   — 

[ Top ]

readUserRights   [line 133]

mixed readUserRights( int $permUserId)

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   $permUserId   — 

[ Top ]


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