phpDocumentor

AdminAccessGroupManager
in package
implements AdminAccessGroupManagerInterface

Class AdminAccessGroupManager

Tags
category

System

subpackage

Managers

Interfaces, Classes and Traits

AdminAccessGroupManagerInterface
Interface AdminAccessGroupManagerInterface

Table of Contents

$groupFactory  : AdminAccessGroupFactoryInterface
$groupReader  : AdminAccessGroupReaderInterface
__construct()  : mixed
AdminAccessGroupManager constructor.
addItemToGroup()  : AdminAccessGroupInterface
Adds a group item to an existing group.
createNewGroup()  : AdminAccessGroupInterface
Creates a new group.
deleteGroupById()  : AdminAccessGroupManager
Deletes a group by a given group ID.
getAllGroups()  : AdminAccessGroupCollection
Returns all groups as a collection.
getGroupByAjaxHandler()  : AdminAccessGroupInterface
Returns a group by a given ajax handler identifier.
getGroupByController()  : AdminAccessGroupInterface
Returns a group by a given controller identifier.
getGroupById()  : AdminAccessGroupInterface
Returns a group by a given group id.
getGroupByPage()  : AdminAccessGroupInterface
Returns a group by a given page identifier.
removeItemFromGroup()  : AdminAccessGroupInterface
Removes a group item from an existing group.
updateGroup()  : AdminAccessGroupManager
Updates a group by a given group ID.

Properties

Methods

createNewGroup()

Creates a new group.

public createNewGroup(KeyValueCollection $name, KeyValueCollection $description, IdType $parentId, IntType $sortOrder) : AdminAccessGroupInterface
Parameters
$name : KeyValueCollection

Collection with the group names. Index of a group name must be his language code.

$description : KeyValueCollection

Collection with the group descriptions. Index of a group name must be his language code.

$parentId : IdType

Id of the parent group.

$sortOrder : IntType

Group sorts order.

Tags
throws
GroupNotFoundException
Return values
AdminAccessGroupInterface

Returns the create role.

removeItemFromGroup()

Removes a group item from an existing group.

public removeItemFromGroup(IdType $groupId, NonEmptyStringType $identifier, NonEmptyStringType $type) : AdminAccessGroupInterface
Parameters
$groupId : IdType

Id of the group.

$identifier : NonEmptyStringType

Identifier for this item.

$type : NonEmptyStringType

Type of this item.

Tags
throws
GroupNotFoundException
throws
GroupItemNotFoundInCollectionException
Return values
AdminAccessGroupInterface

Group object.

updateGroup()

Updates a group by a given group ID.

public updateGroup(IdType $id, KeyValueCollection $newName, KeyValueCollection $newDescription, IdType $newParentId, IntType $newSortOrder) : AdminAccessGroupManager
Parameters
$id : IdType
$newName : KeyValueCollection

Collection with the group names. Index of a group name must be his language code.

$newDescription : KeyValueCollection

Collection with the group descriptions. Index of a group name must be his language code.

$newParentId : IdType

New id of the parent group.

$newSortOrder : IntType

New group sorts order.

Tags
throws
GroupNotFoundException
Return values
AdminAccessGroupManager

Returns same instance for chained method calls.

Search results