class CAccess


Located at : UKNOWVA_ROOT/components/com_community/helpers/access.php

Methods

static boolean
check($userId, $action, $asset, $assetObject)

Method to check if a user is authorised to perform an action, optionally on an asset.

static string
getError()

Method to return authentication error msg

static 
setError(string $error)

Method to set authentication error msg

Details

at line 23
static boolean check($userId, $action, $asset, $assetObject)

Method to check if a user is authorised to perform an action, optionally on an asset.

Parameters

$userId
$action
$asset
$assetObject

Return Value

boolean True if authorised.

at line 85
static string getError()

Method to return authentication error msg

Return Value

string error message

at line 95
static setError(string $error)

Method to set authentication error msg

Parameters

string $error error message