Documentation

GateKeeper extends Sand

Description of GateKeeper

Tags
version
0.1
author

vitex

Table of Contents

getCustomerCompany()  : int
Obtain customer company code
getDocumentCompany()  : string
Get Company code for document
isAccessibleBy()  : bool
Is document accessible by user ?

Methods

getCustomerCompany()

Obtain customer company code

public static getCustomerCompany(Customer $customer) : int
Parameters
$customer : Customer
Return values
int

getDocumentCompany()

Get Company code for document

public static getDocumentCompany(RO $document) : string
Parameters
$document : RO
Return values
string

documnent code

isAccessibleBy()

Is document accessible by user ?

public static isAccessibleBy(RO $document, Customer|User|Anonym $user) : bool
Parameters
$document : RO

AbraFlexi documnet

$user : Customer|User|Anonym

Current User

Return values
bool

Search results