InterestsConflict
in package
Conflict of interest component class.
Table of Contents
- CHECK_STATUS_CONFIRMATION = 1
- CHECK_STATUS_CONFLICT = 3
- CHECK_STATUS_INACTIVE = 0
- CHECK_STATUS_NO_CONFLICT = 2
- CONF_STATUS_CANCELED = 2
- CONF_STATUS_CONFLICT_NO = 0
- CONF_STATUS_CONFLICT_YES = 1
- UNLOCK_STATUS_ACCEPTED = 1
- UNLOCK_STATUS_CANCELED = 3
- UNLOCK_STATUS_LABELS = [self::UNLOCK_STATUS_NEW => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_NEW', self::UNLOCK_STATUS_ACCEPTED => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_ACCEPTED', self::UNLOCK_STATUS_REJECTED => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_REJECTED', self::UNLOCK_STATUS_CANCELED => 'LBL_INTERESTS_CONFLICT_CONFIRM_CANCELED']
- UNLOCK_STATUS_NEW = 0
- UNLOCK_STATUS_REJECTED = 2
- check() : int
- Check the conflict status.
- confirmation() : void
- User confirmation.
- getByRecord() : array<string|int, mixed>
- Get confirmation by record.
- getLast() : array<string|int, mixed>|null
- Get the last conflict of interests information.
- getModules() : array<string|int, mixed>
- Get modules list.
- getParent() : array<string|int, mixed>|null
- Get parent record id.
- setCancel() : void
- Cancel user confirmation.
- unlock() : void
- Unlock access request.
- updateUnlockStatus() : void
- Update unlock status.
Constants
CHECK_STATUS_CONFIRMATION
public
int
CHECK_STATUS_CONFIRMATION
= 1
CHECK_STATUS_CONFLICT
public
int
CHECK_STATUS_CONFLICT
= 3
CHECK_STATUS_INACTIVE
public
int
CHECK_STATUS_INACTIVE
= 0
CHECK_STATUS_NO_CONFLICT
public
int
CHECK_STATUS_NO_CONFLICT
= 2
CONF_STATUS_CANCELED
public
int
CONF_STATUS_CANCELED
= 2
CONF_STATUS_CONFLICT_NO
public
int
CONF_STATUS_CONFLICT_NO
= 0
CONF_STATUS_CONFLICT_YES
public
int
CONF_STATUS_CONFLICT_YES
= 1
UNLOCK_STATUS_ACCEPTED
public
int
UNLOCK_STATUS_ACCEPTED
= 1
UNLOCK_STATUS_CANCELED
public
int
UNLOCK_STATUS_CANCELED
= 3
UNLOCK_STATUS_LABELS
public
array<string|int, string>
UNLOCK_STATUS_LABELS
= [self::UNLOCK_STATUS_NEW => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_NEW', self::UNLOCK_STATUS_ACCEPTED => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_ACCEPTED', self::UNLOCK_STATUS_REJECTED => 'LBL_INTERESTS_CONFLICT_UNLOCK_STATUS_REJECTED', self::UNLOCK_STATUS_CANCELED => 'LBL_INTERESTS_CONFLICT_CONFIRM_CANCELED']
UNLOCK_STATUS_NEW
public
int
UNLOCK_STATUS_NEW
= 0
UNLOCK_STATUS_REJECTED
public
int
UNLOCK_STATUS_REJECTED
= 2
Methods
check()
Check the conflict status.
public
static check(int $record, string $moduleName) : int
Parameters
- $record : int
- $moduleName : string
Return values
int —confirmation()
User confirmation.
public
static confirmation(int $baseRecord, int $sourceRecord, int $value) : void
Parameters
- $baseRecord : int
- $sourceRecord : int
- $value : int
Return values
void —getByRecord()
Get confirmation by record.
public
static getByRecord(int $record) : array<string|int, mixed>
Parameters
- $record : int
Return values
array<string|int, mixed> —getLast()
Get the last conflict of interests information.
public
static getLast(int $record[, int|null $userId = null ]) : array<string|int, mixed>|null
Parameters
- $record : int
- $userId : int|null = null
Return values
array<string|int, mixed>|null —getModules()
Get modules list.
public
static getModules() : array<string|int, mixed>
Return values
array<string|int, mixed> —getParent()
Get parent record id.
public
static getParent(int $record, string $moduleName) : array<string|int, mixed>|null
Parameters
- $record : int
- $moduleName : string
Return values
array<string|int, mixed>|null —setCancel()
Cancel user confirmation.
public
static setCancel(int $userId, int $record, string $comment) : void
Parameters
- $userId : int
- $record : int
- $comment : string
Return values
void —unlock()
Unlock access request.
public
static unlock(int $baseRecord, int $sourceRecord, string $comment) : void
Parameters
- $baseRecord : int
- $sourceRecord : int
- $comment : string
Return values
void —updateUnlockStatus()
Update unlock status.
public
static updateUnlockStatus(int $id, int $status) : void
Parameters
- $id : int
- $status : int