PHP Class 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.
Author: Marko Djukic ([email protected])
Author: David Cummings ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
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).

Method Details

getUserMgrTabs() public static méthode

Creates tabs to navigate the user manager area.
public static getUserMgrTabs ( Horde_Variables $vars ) : Horde_Core_Ui_Tabs
$vars Horde_Variables
Résultat Horde_Core_Ui_Tabs

getUserMgrTypes() public static méthode

public static getUserMgrTypes ( )

hasPermission() public static méthode

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.
Résultat boolean True if the user has the requested permission.

setCurDomain() public static méthode

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

stripDomain() public static méthode

Strip the user name from an email address (leaving the domain).
public static stripDomain ( string $email ) : string
$email string Email address to strip.
Résultat string Domain portion of the email address.

stripUser() public static méthode

Strips the domain from an email address (leaving the user name).
public static stripUser ( string $email ) : string
$email string Email address to strip.
Résultat string User name portion of the email address.