Contents

Backend\Controllers\UserRoles

Overview

UserRoles controller

Extends
Implements
  • Larajax\Contracts\AjaxControllerInterface

Public Properties

public array $implement

Extensions implemented by this controller.

public array $formConfig

FormController configuration.

public array $listConfig

ListController configuration.

public array $requiredPermissions

Permissions required to view this page.

public string $settingsItemCode

settingsItemCode determines the settings code

Show inherited public properties

Inherited Public Properties

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public allowPeerManagement()

public allowPeerManagement(): bool 

allowPeerManagement returns true if users can manage other peers

public duplicate()

public duplicate($recordId = null): void

duplicate action opens the create form pre-filled from an existing role.

public duplicate_onSave()

public duplicate_onSave($recordId = null): void

duplicate_onSave creates the new role from the duplicate form.

public formExtendModel()

public formExtendModel($model): void

formExtendModel replaces the new model with a copy of the source role when duplicating.

public formExtendQuery()

public formExtendQuery($query): void

public listBeforeReorder()

public listBeforeReorder($record): void

listBeforeReorder blocks reorder posts that reference roles the caller is not authorized to manage

public listExtendQuery()

public listExtendQuery($query): void

public onImpersonateRole()

public onImpersonateRole($roleId = null): void

Show inherited public methods

Inherited Public Methods

Protected Methods

protected applyRankPermissionsToQuery()

protected applyRankPermissionsToQuery($query): void

Show inherited protected methods

Inherited Protected Methods