AdsUser::GetAuthVarValue PHP Метод

GetAuthVarValue() защищенный Метод

Gets the authenticaiton value for the $authVar supplied. If the $authVar is set, it is is used. Otherwise, the supplied $authenticationIni is queried for the variable. If none is found null is returned.
protected GetAuthVarValue ( string | null $authVar, string $authVarName, array $authIni ) : string
$authVar string | null the default value for the authentication variable
$authVarName string the name of the authentication variable
$authIni array the array of authentication variables from an INI file
Результат string the authentication variable value
    protected function GetAuthVarValue($authVar, $authVarName, array $authIni)
    {
        if (isset($authVar)) {
            return $authVar;
        } else {
            if (array_key_exists($authVarName, $authIni)) {
                return $authIni[$authVarName];
            } else {
                return null;
            }
        }
    }