Class AdminAccessController

Class AdminAccessController

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
AdminAccessController

Methods summary

public init( void )

Initialize Controller

public actionManageAdmins( void ) : AdminLayoutHttpControllerResponse

Renders the admin access to manage the admins.

public actionEditAdmin( void ) : AdminLayoutHttpControllerResponse

Renders the admin access to edit the admins.

public actionAssignRoles( void ) : RedirectHttpControllerResponse

Saves the assignment of the roles and redirects to the role assignment page.

public actionManageRoles( void ) : AdminLayoutHttpControllerResponse

Renders the admin access to manage the admins.

public actionManagePermissions( void ) : AdminLayoutHttpControllerResponse

Renders the admin access to edit the roles.

public actionSavePermissions( void ) : RedirectHttpControllerResponse

Saves the granted and revoked permissions and redirects to the permission management page.

protected _returnHttpResponse( string $title = '', string $template = 'overview.html', array $templateData = [], string $currentSection = '' ) : AdminLayoutHttpControllerResponse

Creates and returns an AdminLayoutHttpControllerResponse.

protected _getAssets( void ) : AssetCollection

Returns the assets for the admin access pages.

protected _getAdminById( integer $adminId ) : array

Returns the db data for an admin by its given id.

protected _getRoleById( integer $roleId ) : array

Returns the db data for an role by its given id.

protected _createContentNavigation( string $currentSection = '' ) : ContentNavigationCollection

Creates the content navigation object for the admin access pages.

protected _getAdminsOverviewsListItems( void ) : array

Returns the necessary information of all admins to generate the overview listing.

protected _getAdminsOverviewsListElementActions( void ) : array

Returns the necessary information to provide the elements actions for the admins overview listing.

protected _getAdminEditsListItems( $adminId ) : array

Returns the necessary information of the admin roles for the admin edit page.

protected _getAdminEditsListElementActions( void ) : array

Returns the necessary information to provide the elements actions for the admin edit page.

protected _getRolesOverviewsListItems( void ) : array

Returns the necessary information of all admin roles to generate the overview listing.

protected _getRolesOverviewsListAction( void ) : array

Returns the necessary information to provide the action for the roles overview listing.

protected _getPermissionsOverviewsListItems( integer $roleId ) : array

Returns the necessary information of all role permissions to generate the overview listing.

protected _getPermissionOverviewsGroupCollection( void ) : AdminAccessGroupCollection

Returns the necessary group collection with the right sorting to generate the permission overview listing.

protected _appendGroupChildrenToGroupsArray( array $children, array & $groupsArray, integer $parentId )

Appends group children to a given group array.

protected _grantAllPermissionsForRole( $type, $roleId )

Grants all permission to a given role.

protected _updateUnknownPermissionsForRole( $type, $roleId, $value )

Updates the permission for unknown groups of a role by a given value.

protected _updatePermissionsForRole( $type, $roleId, array $grantedGroups )

Updates the given permissions of an admin.

protected _updateAssignedRolesForAdmin( $adminId, array $assignedRoles )

Saves the the given role assignments of an admin.

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), getTemplateFile(), proceed()

Properties summary

protected $db : CI_DB_query_builder

		
protected $templatePath : string

		

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray