PHP Класс Vilma, horde

See the enclosed file LICENSE for license information (BSD). If you did did not receive this file, see http://www.horde.org/licenses/bsd.
Автор: Marko Djukic ([email protected])
Автор: David Cummings ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getUserMgrTabs ( Horde_Variables $vars ) : Horde_Core_Ui_Tabs Creates tabs to navigate the user manager area.
getUserMgrTypes ( )
hasPermission ( string $domain = null, integer $permmask = null ) : boolean Checks whether the current user has administrative permissions over the requested domain at the given permissions level.
setCurDomain ( $domain = null ) Set the current domain.
stripDomain ( string $email ) : string Strip the user name from an email address (leaving the domain).
stripUser ( string $email ) : string Strips the domain from an email address (leaving the user name).

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

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

Creates tabs to navigate the user manager area.
public static getUserMgrTabs ( Horde_Variables $vars ) : Horde_Core_Ui_Tabs
$vars Horde_Variables
Результат Horde_Core_Ui_Tabs

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

public static getUserMgrTypes ( )

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

Also checks to see if the user is a Vilma superadmin. If the user is a Horde admin they automatically have permission.
public static hasPermission ( string $domain = null, integer $permmask = null ) : boolean
$domain string Domain for which to check permissions.
$permmask integer Permissions that must be set for the user.
Результат boolean True if the user has the requested permission.

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

Set the current domain.
public static setCurDomain ( $domain = null )

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

Strip the user name from an email address (leaving the domain).
public static stripDomain ( string $email ) : string
$email string Email address to strip.
Результат string Domain portion of the email address.

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

Strips the domain from an email address (leaving the user name).
public static stripUser ( string $email ) : string
$email string Email address to strip.
Результат string User name portion of the email address.