Update the name.

@param string $authTypeName
439973
public function setAuthenticationTypeName($authTypeName)
    {
        $db = Loader::db();
        $db->Execute(
           'UPDATE AuthenticationTypes SET authTypeName=? WHERE authTypeID=?',
           [$authTypeName, $this->getAuthenticationTypeID()]);
    }
820204
public function setUsername($username)
    {
      if(!is_string($username) && strlen(trim($username)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid username, must be a non empty string');

      $this->username = $username;
    }
570803
function setAuthorization($username,$password){
		settype($username,"string");
		settype($password,"string");

		$this->_Username = $username;
		$this->_Password = $password;
		$this->_AuthType = "basic";
	}
705516
public function updateAuthServiceProviderClass()
    {
        $modelName = $this->modelNames['model_name'];
        $fullModelName = $this->modelNames['full_model_name'];
        $authSPPath = $this->makeAuthServiceProvilderFile(app_path('Providers'), 'AuthServiceProvider.php');

        $authSPContent = $this->files->get($authSPPath);

        if (!is_null($parentName = $this->command->option('parent'))) {
            $modelName = $parentName.'\\'.$modelName;
        }

        $appNamespace = rtrim($this->getAppNamespace(), '\\');

        $authSPContent = str_replace(
            "    protected \$policies = [\n",
            "    protected \$policies = [\n        '{$fullModelName}' => '{$appNamespace}\Policies\\{$modelName}Policy',\n",
            $authSPContent
        );

        $this->generateFile($authSPPath, $authSPContent);

        $this->command->info('AuthServiceProvider class has been updated.');
    }
914432
public function setUserName($userName)
    {
        $user = posix_getpwnam($userName);
        if (! isset($user['uid'])) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid user name', $userName));
        }

        $this->setUserId($user['uid']);
    }
384861
protected function setUsername($name) {
        if (!is_string($name)) throw new IllegalTypeException('Illegal type of parameter $name: '.gettype($name));
        if (!strlen($name))    throw new InvalidArgumentException('Invalid parameter $name: "'.$name.'" (empty)');

        $this->username = $name;
        return $this;
    }
350816
public function setPhpName($phpName = null)
    {
        if (null === $phpName) {
            $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
        } else {
            $this->phpName = $phpName;
        }
    }
1192659
function init_plugin($authtype) {
        $this->pluginconfig = 'auth_'.$authtype;
        $this->config = get_config($this->pluginconfig);
        if (empty($this->config->ldapencoding)) {
            $this->config->ldapencoding = 'utf-8';
        }
        if (empty($this->config->user_type)) {
            $this->config->user_type = 'default';
        }

        $ldap_usertypes = ldap_supported_usertypes();
        $this->config->user_type_name = $ldap_usertypes[$this->config->user_type];
        unset($ldap_usertypes);

        $default = ldap_getdefaults();

        // Use defaults if values not given
        foreach ($default as $key => $value) {
            // watch out - 0, false are correct values too
            if (!isset($this->config->{$key}) or $this->config->{$key} == '') {
                $this->config->{$key} = $value[$this->config->user_type];
            }
        }

        // Hack prefix to objectclass
        $this->config->objectclass = ldap_normalise_objectclass($this->config->objectclass);
    }
1275449
public function setName( $name )
	{
		if ( $name == $this->getName() ) { return; }

		$this->_values['name'] = (string) $name;
		$this->setModified();
	}
734715
public function setLastName($lname)
    {
        if (!is_string($lname)) {
            $lname = strval($lname);
        }

        $this->lname = $lname;
    }
119535
public function activate($username)
    {
        $user = $this->findUserByUsernameOrThrowException($username);
        $user->setEnabled(true);
        $this->userManager->updateUser($user);

        $event = new UserEvent($user, $this->getRequest());
        $this->dispatcher->dispatch(Events::USER_ACTIVATED, $event);
    }
256923
public function set_name($name) {
        if ($this->state < self::STATE_BUILDING_DYNAMIC) {
            $this->update_user_visible();
        }
        $this->name = $name;
    }
983361
public function setName($name): void
    {
        if ($this->sessionExists()) {
            throw new SessionException(
                'Cannot set session name after a session has already started'
            );
        }

        if (!preg_match('/^[a-zA-Z0-9]+$/', $name)) {
            throw new SessionException(
                'Name provided contains invalid characters; must be alphanumeric only'
            );
        }

        $this->name = $name;
        session_name($name);
    }
1042797
public function setProxyAuth($username, $password, $authType = CURLAUTH_BASIC)
    {
        if (!empty($username) && !empty($password)) {
            $this->proxyUsername = stripslashes(trim($username));
            $this->proxyPassword = stripslashes(trim($password));
            $this->proxyAuthType = intval($authType);
        }
    }
481825
public function setName(string $name) : void
    {
        if ($name === "" || preg_match("/^([a-zA-Z0-9_])+$/", $name) !== 1) {
            throw new \InvalidArgumentException("Invalid cookie name. Use only a-zA-Z0-9 characters.");
        }

        $this->name = $name;
    }
904848
public function setMigrationName($migrationName)
    {
        $this->migrationName = $migrationName;
        $migrationNameAsUnderscoreSrtring = S::underscored($migrationName);
        $items = explode('_', $migrationNameAsUnderscoreSrtring);
        if (count($items) >= 3) {
            $this->action = in_array($items[0], $this->validActions)
                ? $items[0]
                : null;
            $this->actionObject = in_array($items[1], $this->validActionObjects)
                ? $items[1]
                : null;
            $this->model = str_replace($items[0] . '_' . $items[1] . '_', '', $migrationNameAsUnderscoreSrtring);
        }
    }
116023
public function update($indexName)
	{
		$index = $this->getRegistered($indexName);

		foreach ($index->getTypes() as $type => $typeBody) {
			$params = [
				'index' => $index->getInternalName(),
				'type'  => $type,
				'body'  => [$type => $typeBody]
			];

			$this->elasticSearcher->getClient()->indices()->putMapping($params);
		}
	}