Returns the string identifier of the Role

@return string
163223
public function getRoleId()
    {
        if ( null === $this->aclRoleId )
        {
            $this->aclRoleId = ( (int) $this->groupId )
                . '.' . ( (int) $this->id );
        }

        return $this->aclRoleId;
    }
872257
public function getHtmlId()
    {
        $id = '';
        if (is_object($this->parent)) {
            $id = $this->parent->getHtmlId();
        }
        
        if ($this->key !== '') {
            $id .= '-' . $this->key;
        }
        
        return $id;
    }
1147321
public function getRoles()
    {
        return \is_string($value = $this->getContentValue('roles', null))
            ? array_filter(explode(',', (string) $value))
            : null;
    }
1228772
private function get_role_name($rid) {
        global $DB, $PAGE;
        $rec = $DB->get_record('role', array('id' => $rid));

        if ($rec) {
            return role_get_name($rec, $PAGE->context, ROLENAME_ALIAS);
        } else {
            return null;
        }
    }
1230534
protected function assembleIdentification() {
		if ($this->username === null) {
			return '';
		}
		
		if ($this->password === null) {
			return $this->username . '@';
		}
		
		return $this->username . ':' . $this->password . '@';
	}
854583
public function getRoleName ()
		{
			$auth = Yii::$app->getAuthManager();
			$roles = $auth->getRolesByUser($this->id);
			$role = current($roles);

			return $role ? $role->name : null;
		}
535396
public static function get_role_ids() {
        $cache = cache::make('tool_uploadcourse', 'helper');
        if (($roles = $cache->get('roles')) === false) {
            $roles = array();
            $rolesraw = get_all_roles();
            foreach ($rolesraw as $role) {
                $roles[$role->shortname] = $role->id;
            }
            $cache->set('roles', $roles);
        }
        return $roles;
    }
1250728
public function getIdentifier()
    {
        if (is_array($this->callback)) {
            $class = $this->callback[0];

            if (is_object($class)) {
                $class = get_class($class);
            }

            return $class . '::' . $this->callback[1];
        }
        else if (is_object($this->callback)) {
            return spl_object_hash((object) $this->callback);
        }

        return (string) $this->callback;
    }
164444
public function getIdentityString() {
		if (!is_array($this->throwableArray)) {
			$renderer = new \n2n\log4php\renderer\RendererException();
			
			$this->throwableArray = explode("\n", $renderer->render($this->throwable));
		}
		
		return $this->throwableArray;
	}
268145
public static function formatName($role): string
    {
        if ($role instanceof RoleInterface) {
            return $role->getName();
        }

        return $role instanceof Role ? $role->getRole() : (string) $role;
    }
1191624
protected function _getRoleIds()
    {
        $ids = [];
        if (!$this->has('roles')) {
            return $ids;
        }
        foreach ($this->roles as $k => $role) {
            $ids[] = $role->id;
        }

        return $ids;
    }
400501
public function getResourceId()
    {
        if ( null === $this->aclResourceId )
        {
            $this->aclResourceId = 'user.group.' . ( (int) $this->groupId )
                . '.identity.' . ( (int) $this->id );
        }

        return $this->aclResourceId;
    }
760767
public function clientId()
	{
		if (isset($this->client_id)) {
			return $this->client_id ? $this->client_id : null;
		}
		
		if (!$this->check()) {
			return null;
		}
		
		if (Request::input('client_id')) {
			$this->client_id = Request::input('client_id');
		}
		else if ($id = Authorizer::getClientId()) {
			$this->client_id = $id;
		}
		else {
			$this->client_id = false;
		}
		
		return $this->client_id ? $this->client_id : null;
	}
80249
public function IdentificationVariable()
    {
        $this->match(Lexer::T_IDENTIFIER);

        $identVariable = $this->lexer->token['value'];

        $this->deferredIdentificationVariables[] = array(
            'expression'   => $identVariable,
            'nestingLevel' => $this->nestingLevel,
            'token'        => $this->lexer->token,
        );

        return $identVariable;
    }
878454
private function getRoleIds()
    {
        $assign_to_roles = $this->option('assign-to-roles');

        if ($assign_to_roles) {
            $role_ids = explode(',', $assign_to_roles);

            return array_map('intval', $role_ids);
        }

        return [];
    }
941888
public function getIdRoleByName(string $name): string
    {
        if (isset($this->role[$name])) {
            return (string) $this->role[$name]['id'];
        }
        return '';
    }
605473
public function getTab()
    {
        $username = 'Not Authed';
        $role = 'Unknown Role';

        if (!$this->_auth->hasIdentity()) {
            return 'Not authorized';
        }
        $identity = $this->_auth->getIdentity();
        if (is_object($identity)) {
            $username = $this->_auth->getIdentity()->{$this->_user};
            $role = $this->_auth->getIdentity()->{$this->_role};
        } else {
            $username = $this->_auth->getIdentity();
            $role = '';
        }
        return $username . ' (' . $role . ')';
    }