Class: LiveUser_Admin_Perm_Container_DB_Simple
Source Location: /LiveUser-0.11.0/Admin/Perm/Container/DB_Simple.php
LiveUser_Admin_Perm_Common
|
--LiveUser_Admin_Perm_Container_DB_Simple
Container for simple rights managements.
Author(s):
Version:
- $Id: DB_Simple.php,v 1.24 2004/04/27 00:39:23 mscifo Exp $
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
LiveUser_Admin_Perm_Container_DB_Simple (Constructor) [line 48]
void LiveUser_Admin_Perm_Container_DB_Simple(
array
&$connectOptions)
|
|
Constructor
Parameters:
addApplication [line 541]
mixed addApplication(
string
$define_name, string
$application_name, [string
$application_description = null])
|
|
Add an application
Parameters:
addArea [line 591]
mixed addArea(
string
$application_id, string
$define_name, string
$area_name, [string
$area_description = null])
|
|
Add an area
Parameters:
addLanguage [line 377]
mixed addLanguage(
string
$two_letter_code, string
$native_name, string
$language_name, [string
$language_description = null])
|
|
Add a new language
Parameters:
addRight [line 858]
mixed addRight(
integer
$area_id, string
$define_name, string
$right_name, [string
$right_description = null])
|
|
Add a right in special area
Parameters:
addTranslation [line 215]
mixed addTranslation(
integer
$section_id, integer
$section_type, string
$language, string
$name, [string
$description = null])
|
|
Assigns name (and description) in specified language to a section
Parameters:
addUser [line 1008]
mixed addUser(
string
$authId, [
$authName = null], [int
$type = LIVEUSER_USER_TYPE_ID], [mixed
$permId = null], string
$authname)
|
|
Add a user
Overrides LiveUser_Admin_Perm_Common::addUser() (Adds a new user to Perm.)
Parameters:
addUserAreaAdmin [line 1596]
mixed addUserAreaAdmin(
mixed
$permId, int
$area_id)
|
|
Make a user an admin of a given area.
Parameters:
getApplications [line 1254]
mixed getApplications(
[array
$options = null])
|
|
Get list of all applications This method accepts the following options... 'where_application_id' = [APPLICATION_ID]
Parameters:
getAreas [line 1305]
mixed getAreas(
[array
$options = null])
|
|
Get list of all areas within a given application This method accepts the following options... 'where_area_id' = [AREA_ID], 'where_application_id' = [APPLICATION_ID], 'with_applications' = [BOOLEAN]
Parameters:
getAuthUserId [line 107]
getCurrentApplication [line 199]
string getCurrentApplication(
)
|
|
Get current application
getCurrentLanguage [line 174]
string getCurrentLanguage(
)
|
|
Get current language
getLanguages [line 1371]
mixed getLanguages(
[array
$options = null])
|
|
Get list of all languages This method accepts the following options... 'where_language_id' = [LANGUAGE_ID], 'with_translations' = [BOOLEAN]
Parameters:
getPermUserId [line 84]
getRights [line 1453]
mixed getRights(
[array
$options = null])
|
|
Get list of all rights This method accepts the following options... 'where_user_id' = [AUTH_USER_ID], 'where_group_id' = [GROUP_ID], 'where_right_id' = [RIGHT_ID], 'where_area_id' = [AREA_ID], 'where_application_id' = [APPLICATION_ID], 'with_areas' = [BOOLEAN], 'with_applications' = [BOOLEAN]
Overridden in child classes as:
- LiveUser_Admin_Perm_Container_DB_Complex::getRights()
- Get list of all rights
Parameters:
getTranslation [line 344]
mixed getTranslation(
integer
$section_id, integer
$section_type)
|
|
Get name (and description) of the [section] in specified language
Parameters:
getUsers [line 1671]
mixed getUsers(
[array
$filters = array()], [boolean
$options = array()], [boolean
$rekey = false])
|
|
Fetch users from the database. The only supported filter is perm_user_id => 'value' The array will look like this: $userData[0]['perm_user_id'] = 1;
['type'] = 1;
['container'] = '';
['rights'] = array(); // the array returned by getRights()
Overrides LiveUser_Admin_Perm_Common::getUsers() (Gets all perm_user_id, type, container and rights)
Parameters:
grantUserRight [line 1149]
removeApplication [line 640]
mixed removeApplication(
integer
$application_id)
|
|
Delete an application
Parameters:
removeArea [line 700]
mixed removeArea(
integer
$area_id)
|
|
Delete an area
Parameters:
removeLanguage [line 439]
mixed removeLanguage(
integer
$language)
|
|
Remove a language
Parameters:
removeRight [line 908]
removeTranslation [line 304]
mixed removeTranslation(
integer
$section_id, integer
$section_type, string
$language, [boolean
$recursive = false])
|
|
Remove name (and description) of the [section] in specified language
Parameters:
removeUser [line 1088]
removeUserAreaAdmin [line 1627]
mixed removeUserAreaAdmin(
mixed
$permId, [int
$area_id = null])
|
|
Remove the privilege of being an admin. If no area_id is provided the user will be removed asan admin from all areas he was an admin for.
Parameters:
revokeUserRight [line 1223]
mixed revokeUserRight(
string
$permId, [integer
$right_id = null])
|
|
Revoke right from user
Parameters:
setCurrentApplication [line 186]
boolean setCurrentApplication(
integer
$application_id)
|
|
Set current application
Parameters:
setCurrentLanguage [line 151]
mixed setCurrentLanguage(
string
$language)
|
|
Set current language Returns false if the language is not known
Parameters:
updateApplication [line 772]
mixed updateApplication(
integer
$application_id, string
$define_name, string
$application_name, [string
$application_description = null])
|
|
Update an application
Parameters:
updateArea [line 813]
mixed updateArea(
integer
$area_id, int
$application_id, string
$define_name, string
$area_name, [string
$area_description = null])
|
|
Update an area
Parameters:
updateAuthUserId [line 1054]
mixed updateAuthUserId(
int
$permId, mixed
$authId, [mixed
$authName = false])
|
|
Updates auth_user_id in the mapping table.
Parameters:
updateLanguage [line 487]
mixed updateLanguage(
integer
$language, string
$native_name, string
$language_name, [string
$language_description = null])
|
|
Update language
Parameters:
updateRight [line 965]
mixed updateRight(
integer
$right_id, integer
$area_id, string
$define_name, string
$right_name, [string
$right_description = null])
|
|
Update a right
Parameters:
updateTranslation [line 261]
mixed updateTranslation(
integer
$section_id, integer
$section_type, string
$language, string
$name, [string
$description = null])
|
|
Updates name (and description) of [section] in specified language
Parameters:
updateUserRight [line 1195]
mixed updateUserRight(
string
$permId, integer
$right_id, integer
$right_level)
|
|
Update right level of userRight
Parameters:
Documentation generated on Mon, 11 Mar 2019 10:16:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|