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

Class: LiveUser_Perm_Complex

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

Class Overview

LiveUser_Perm_Simple
   |
   --LiveUser_Perm_Medium
      |
      --LiveUser_Perm_Complex

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


Author(s):

Version:

  • $Id: Complex.php,v 1.4 2004/12/18 21:52:35 lsmith Exp $

Methods


Inherited Variables

Inherited Methods

Class: LiveUser_Perm_Medium

LiveUser_Perm_Medium::LiveUser_Perm_Medium()
Constructor
LiveUser_Perm_Medium::checkGroup()
Checks if the current user is a member of a certain group If $this->ondemand and $ondemand is true, the groups will be loaded on the fly.
LiveUser_Perm_Medium::readAreaAdminAreas()
LiveUser_Perm_Medium::readGroupRights()
LiveUser_Perm_Medium::readGroups()

Class: LiveUser_Perm_Simple

LiveUser_Perm_Simple::LiveUser_Perm_Simple()
Class constructor. Feel free to override in backend subclasses.
LiveUser_Perm_Simple::checkRight()
Checks if the current user has a certain right in a given area.
LiveUser_Perm_Simple::disconnect()
properly disconnect from resources
LiveUser_Perm_Simple::freeze()
store all properties in an array
LiveUser_Perm_Simple::getProperty()
Function returns the inquired value if it exists in the class.
LiveUser_Perm_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_Simple::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_Simple::readUserRights()
LiveUser_Perm_Simple::unfreeze()
Reinitializes properties

Class Details

[line 50]
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_Complex (Constructor)   [line 59]

void LiveUser_Perm_Complex( mixed &$confArray)

Constructor
  • Access: protected

Parameters:

mixed   &$confArray   —  configuration array

[ Top ]

readSubGroups   [line 164]

mixed readSubGroups( array $groupIds, array $newGroupIds)

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

Parameters:

array   $groupIds   — 
array   $newGroupIds   — 

[ Top ]


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