eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRoles PHP Method

loadRoles() public method

Loads all roles.
public loadRoles ( integer $status = Role::STATUS_DEFINED ) : array
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
return array
    public function loadRoles($status = Role::STATUS_DEFINED)
    {
        try {
            return $this->innerGateway->loadRoles();
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }