Adds a LiveUser Area and Area Admins.
mixed
addLiveUserArea
(string $applicationId, string $defineName, string $areaName, [array $areaAdmins = array()], [string $areaComment = null])
-
string
$applicationId: id of application
-
string
$defineName: name of area constant
-
string
$areaName: name of area
-
array
$areaAdmins: An array of user IDs that shall be admins of this area.
-
string
$areaComment: (optional) description of area
Adds an LiveUser area admin.
mixed
addLiveUserAreaAdmin
(int $userId, int $areaId)
-
int
$userId: The ID of the user that shall be the area of this admin.
-
int
$areaId: The ID of the area the user shall be the admin of.
Adds a LiveUser group and users to that group.
void
addLiveUserGroup
(string $groupName, [array $users = array()], [mixed $groupComment = null], [boolean $active = true], integer $ownerUser, integer $ownerGroup, string $defineName, boolean $groupComent)
-
string
$defineName: name of group constant
-
string
$groupName: name of group
-
array
$users: (optional) array of user IDs that should be added to this group.
-
boolean
$groupComent: (optional) description of group
-
boolean
$active: (optional) activate group?
-
integer
$ownerUser: (optional) owner_perm_user_id of group
-
integer
$ownerGroup: (optional) owner_group_id of group
Adds a LiveUser Right including users and groups that have this right.
This method combines the funtionality of the methods 'addRight', 'grantUserRight' and 'grantGroupRight' of the class LiveUser_Perm_Container_DB_Complex_Admin (by calling these methos over callLiveUserPermAdminMethod). Can be used in a defaultInert statement as follows: $this->app->addLiveUserRight($this->db->getOne("SELECT f_folderarea FROM t_folder WHERE f_folderid='" . $this->db->quote($inserts['f_folder_id']), 'EFX_DOCUMENT_LIVEUSER_SELECT_RIGHT', 'EFX_DOCUMENT_LIVEUSER_SELECT_RIGHT', array($this->app->liveUser->getUserId()), array($this->app->liveUser->getGroupIds))
mixed
addLiveUserRight
(integer $areaId, string $defineName, string $rightName, [array $users = array()], [array $groups = array()], [string $rightComment = null], [boolean $hasImplied = false], [boolean $hasLevel = false], [boolean $hasScope = false])
-
integer
$areaId: id of area
-
string
$defineName: name of right constant
-
string
$rightName: name of right
-
array
$users: An array of user IDs that shall have this right.
-
array
$groups: An array of group IDs that shall have this right.
-
string
$rightComment: (optional) description of right
-
boolean
$hasImplied: (optional) allow implied rights for this right?
-
boolean
$hasLevel: (optional) apply levels to this right?
-
boolean
$hasScope: (optional) apply scopes to this right?
Adds a new user in the auth and the perm container.
True
addLiveUserUser
(mixed $username, mixed $password, mixed $activated, [mixed $userTypeId = LIVEUSER_USER_TYPE_ID])
void
addLiveUserUserToGroup
(mixed $userId, mixed $groupId)
Calls a method of the LiveUser auth admin class with the specified arguments.
This method loads the LiveUser auth admin class on demand to save resouces. If $this->_liveUserAuthAdmin is not of the type Object it will be assigned the return value of setUpLiveUserAuthAdmin.
mixed
&callLiveUserAuthAdminMethod
(String $methodName, [Array $args = array()])
-
String
$methodName: The name of the method to call.
-
Array
$args: An array of arguments to pass to $methodName.
Calls a method of the LiveUser perm admin class with the specified arguments.
This method loads the LiveUser perm admin class on demand to save resouces. If $this->_liveUserPermAdmin is not of the type Object it will be assigned the return value of setUpLiveUserPermAdmin.
mixed
&callLiveUserPermAdminMethod
(String $methodName, [Array $args = array()])
-
String
$methodName: The name of the method to call.
-
Array
$args: An array of arguments to pass to $methodName.
Returns the number of users that are admin of a certain area.
void
countLiveUserAreaAdminsByAreaId
(mixed $areaId, [mixed $whereActive = true], [mixed $config = false], [mixed $fields = false])
Returns the number of users that have a certain right.
void
countLiveUserGroupsByRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false])
void
countLiveUserUsersByGroupId
(mixed $groupId, [mixed $whereActive = true], [mixed $config = false])
Returns the number of users that have a certain right.
void
countLiveUserUsersByRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false])
Returns all users that are admin of a certain area.
void
getLiveUserAreaAdminsByAreaId
(mixed $areaId, [mixed $whereActive = true], [mixed $config = false], [mixed $fields = false])
Returns all users that are not admin of a certain area.
void
getLiveUserAreaAdminsByNegativeAreaId
(mixed $areaId, [mixed $whereActive = true], [mixed $config = false])
void
getLiveUserAreaById
(mixed $areaId, [mixed $config = false])
void
getLiveUserGroupById
(mixed $groupId, [mixed $config = false])
Returns all groups that do not have a certain right.
void
getLiveUserGroupsByNegativeRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false])
Returns all groups that have a certain right.
void
getLiveUserGroupsByRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false], [mixed $fields = false])
Returns the property _liveUserOptions.
mixed
getLiveUserOptions
()
Returns all users that are member of a certain group.
void
getLiveUserUsersByGroupid
(mixed $groupId, [mixed $whereActive = true], [mixed $config = false], [mixed $fields = false])
Returns all users that are not admin of a certain area.
void
getLiveUserUsersByNegativeGroupId
(mixed $groupId, [mixed $whereActive = true], [mixed $config = false])
Returns all users that personally do not have a certain right.
void
getLiveUserUsersByNegativeRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false])
Returns all users that personally have a certain right.
void
getLiveUserUsersByRightId
(mixed $rightId, [mixed $whereActive = true], [mixed $config = false], [mixed $fields = false])
void
grantLiveUserGroupRight
(mixed $groupId, mixed $rightId, [mixed $levelId = 1])
void
grantLiveUserUserRight
(mixed $userId, mixed $rightId, [mixed $levelId = 1])
void
isInGroup
(mixed $groupId)
Whether the current user is admin of the given area.
void
isLiveUserAreaAdmin
(int $areaId, [mixed $config = false])
-
int
$areaId: The ID of the area.
Removes an LiveUser area admin.
mixed
removeLiveUserAreaAdmin
(int $userId, int $areaId, [mixed $preventAdminSucide = true])
-
int
$userId: The ID of the user that shall be removed of the list of admins for a certain area.
-
int
$areaId: The ID of the area the user shall removed from.
Removes a user from the auth and the perm container.
True
removeLiveUserUser
(mixed $permId)
void
removeLiveUserUserFromGroup
(mixed $userId, mixed $groupId, [mixed $preventAdminSucide = true])
void
revokeLiveUserGroupRight
(mixed $groupId, mixed $rightId, [mixed $preventAdminSucide = true])
void
revokeLiveUserUserRight
(mixed $userId, mixed $rightId, [mixed $preventAdminSucide = true])
Sets the property _liveUserOptions.
void
setLiveUserOptions
(Array $options)
-
Array
$options: An multidimensional array of configuration options.
void
userIsInGroup
(mixed $userId, mixed $groupId, [mixed $config = false])
Inherited Methods
Inherited From RSDApplication
RSDApplication::RSDApplication()
RSDApplication::addTable()
RSDApplication::getTable()