FacturaScripts

ControllerPermissions

Description of ControllerPermissions

Table of Contents

$accessMode int
$allowAccess Have permission to access data. bool
$allowDelete Have permission to delete data. bool
$allowUpdate Have permission to update data. bool
$onlyOwnerData Permission for show all or only owner data. bool
__construct() ControllerPermissions constructor. mixed
set() mixed

Properties

$onlyOwnerData

Permission for show all or only owner data.

public bool $onlyOwnerData = false

Methods

__construct()

ControllerPermissions constructor.

public __construct( [ $user : User|bool = false ] [, $pageName : string|null = null ] ) : mixed
Parameters
$user : User|bool = false
$pageName : string|null = null
Return values
mixed

set()

public set( $access : bool , $accessMode : int , $delete : bool , $update : bool [, $onlyOwner : bool = false ] ) : mixed
Parameters
$access : bool
$accessMode : int
$delete : bool
$update : bool
$onlyOwner : bool = false
Return values
mixed

Search results