\Vilma

Copyright 2003-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (BSD). If you did did not receive this file, see http://www.horde.org/licenses/bsd.

Summary

Methods
Properties
Constants
hasPermission()
getUserMgrTypes()
getUserMgrTabs()
setCurDomain()
stripUser()
stripDomain()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

hasPermission()

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.

Also checks to see if the user is a Vilma superadmin. If the user is a Horde admin they automatically have permission.

Parameters

string $domain

Domain for which to check permissions.

integer $permmask

Permissions that must be set for the user.

Returns

boolean —

True if the user has the requested permission.

getUserMgrTypes()

getUserMgrTypes() 

getUserMgrTabs()

getUserMgrTabs(\Horde_Variables  $vars) : \Horde_Core_Ui_Tabs

Creates tabs to navigate the user manager area.

Parameters

\Horde_Variables $vars

Returns

\Horde_Core_Ui_Tabs

setCurDomain()

setCurDomain(  $domain = null) 

Set the current domain.

Parameters

$domain

stripUser()

stripUser(string  $email) : string

Strips the domain from an email address (leaving the user name).

Parameters

string $email

Email address to strip.

Returns

string —

User name portion of the email address.

stripDomain()

stripDomain(string  $email) : string

Strip the user name from an email address (leaving the domain).

Parameters

string $email

Email address to strip.

Returns

string —

Domain portion of the email address.