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

Class: LiveUser_Perm_Storage

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

Class Overview


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


Author(s):

Version:

  • $Id: Storage.php,v 1.2 2004/12/13 19:16:39 lsmith Exp $

Methods


Child classes:

LiveUser_Perm_Storage_XML
This is a XML backend driver for the LiveUser class.
LiveUser_Perm_Storage_SQL
This is a PEAR::MDB2 backend driver for the LiveUser class.
LiveUser_Perm_Storage_Cache
This is a Cache backend driver for the LiveUser class.

Inherited Variables

Inherited Methods


Class Details

[line 45]
This is a PEAR::MDB2 backend driver for the LiveUser class.

A PEAR::MDB2 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::MDB2 connection object must be passed to the constructor. Example: array('dsn' => 'mysql://user:pass@host/db_name') OR &$conn (PEAR::MDB2 connection object)



[ Top ]


Method Detail

LiveUser_Perm_Storage (Constructor)   [line 54]

void LiveUser_Perm_Storage( mixed &$confArray, &$storageConf)

Constructor
  • Access: protected

Parameters:

mixed   &$confArray   —  configuration array
   &$storageConf   — 

[ Top ]

disconnect   [line 139]

void disconnect( )

properly disconnect from resources
  • Access: public

Overridden in child classes as:

LiveUser_Perm_Storage_XML::disconnect()
properly disconnect from resources
LiveUser_Perm_Storage_Cache::disconnect()
properly disconnect from resources

[ Top ]

freeze   [line 116]

array freeze( $sessionName, $propertyValues)

store all properties in an array
  • Return: containing the property values
  • Access: public

Parameters:

   $sessionName   — 
   $propertyValues   — 

[ Top ]

mapUser   [line 66]

void mapUser( $authUserId, $containerName)


Overridden in child classes as:

LiveUser_Perm_Storage_XML::mapUser()
LiveUser_Perm_Storage_MDB2::mapUser()
LiveUser_Perm_Storage_MDB::mapUser()
LiveUser_Perm_Storage_DB::mapUser()
LiveUser_Perm_Storage_Cache::mapUser()

Parameters:

   $authUserId   — 
   $containerName   — 

[ Top ]

readAreaAdminAreas   [line 81]


readGroupRights   [line 106]

mixed readGroupRights( $groupIds)

Reads the group rights and put them in the array

right => 1

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

Overridden in child classes as:

LiveUser_Perm_Storage_MDB2::readGroupRights()
Reads the group rights and put them in the array
LiveUser_Perm_Storage_MDB::readGroupRights()
Reads the group rights and put them in the array
LiveUser_Perm_Storage_DB::readGroupRights()
Reads the group rights and put them in the array
LiveUser_Perm_Storage_Cache::readGroupRights()
Reads the group rights and put them in the array

Parameters:

   $groupIds   — 

[ Top ]

readUserRights   [line 77]

void readUserRights( $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.


Overridden in child classes as:

LiveUser_Perm_Storage_XML::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_MDB2::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_MDB::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_DB::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_Cache::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:

   $permUserId   — 

[ Top ]

unfreeze   [line 128]

void unfreeze( $sessionName, array $propertyValues)

Reinitializes properties
  • Access: public

Parameters:

array   $propertyValues   — 
   $sessionName   — 

[ Top ]


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