CommonDBTM::canGlobal PHP Method

canGlobal() public method

Get global right on an object
public canGlobal ( $right ) : nothing
$right Right to check : c / r / w / d / READ / UPDATE / CREATE / DELETE
return nothing
    function canGlobal($right)
    {
        switch ($right) {
            case READ:
                return static::canView();
            case UPDATE:
                return static::canUpdate();
            case CREATE:
                return static::canCreate();
            case DELETE:
                return static::canDelete();
            case PURGE:
                return static::canPurge();
        }
        return false;
    }
CommonDBTM