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])
ファイルを表示 Open project: horde/horde Class Usage Examples

Public Methods

Method 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 method

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

getUserMgrTypes() public static method

public static getUserMgrTypes ( )

hasPermission() public static method

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

setCurDomain() public static method

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

stripDomain() public static method

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

stripUser() public static method

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