PHP Класс Sam, horde

Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Chris Bowlby ([email protected])
Автор: Max Kalika ([email protected])
Автор: Jan Schneider ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getAttributes ( ) : array Find a list of configured attributes.
getPreferredBackend ( ) : array Determines the backend to use.
infoAttribute ( $type = '' ) : boolean Find out whether the given attribute type is informational only.
mapUser ( string | boolean $hordeauth ) : string Converts the current user's name, optionally removing the domain part or applying any configured hooks.

Описание методов

getAttributes() публичный статический Метод

Load the attributes configuration file or uses an already-loaded cached copy. If loading for the first time, cache it for later use.
public static getAttributes ( ) : array
Результат array The attributes list.

getPreferredBackend() публичный статический Метод

This decision is based on the global 'SERVER_NAME' and 'HTTP_HOST' server variables and the contents of the 'preferred' either field in the backend's definition. The 'preferred' field may take a single value or an array of multiple values.
public static getPreferredBackend ( ) : array
Результат array The backend entry.

infoAttribute() публичный статический Метод

Find out whether the given attribute type is informational only.
public static infoAttribute ( $type = '' ) : boolean
Результат boolean Returns true if the given type is known to be informational only.

mapUser() публичный статический Метод

Converts the current user's name, optionally removing the domain part or applying any configured hooks.
public static mapUser ( string | boolean $hordeauth ) : string
$hordeauth string | boolean Defines how to use the authenticated Horde username. If set to 'full', will initialize the username to contain the @realm part. Otherwise, the username will initialize as a simple login.
Результат string The converted username.