WhupsThe Whups:: class provides functionality that all of Whups needs, or that should be encapsulated from other parts of the Whups system.
Located in /lib/Whups.php (line 26)
void
formatUser
([string|array $user = null], [boolean $showemail = true], [boolean $showname = true], [boolean $html = false])
boolean
hasPermission
(mixed $in, string $filter, string|integer $permission, [string $user = null])
array
permissionsFilter
(array $in, string $filter, [integer $permission = PERMS_READ], [string $user = null], [string $creator = null])
addInlineScript (line 905)
Add inline javascript to the output buffer.
attachmentUrl (line 822)
fieldTypeNames (line 988)
Returns the available field type names from the Horde_Form classes.
fieldTypeParams (line 1012)
Returns the parameters for a certain Horde_Form field type.
fieldTypes (line 952)
Retruns the available field types including all type information from the Horde_Form classes.
formatUser (line 610)
Returns a user string from the user's name and email address.
getAttachments (line 790)
getCAPTCHA (line 224)
Returns a new or the current CAPTCHA string.
getCurrentTicket (line 261)
Get the current ticket - use the 'id' request variable to determine what to look for. Will redirect to the default view if the ticket isn't found or if permissions checks fail.
getMenu (line 762)
Build Whups' list of menu items.
getOwnerCriteria (line 503)
getOwners (line 877)
getSearchResultColumns (line 667)
Returns the set of columns and their associated parameter from the backend that should be displayed to the user. The results can depend on the current user preferences and which search function was executed.
getTicketTabs (line 291)
Get the tabs for navigating between ticket actions.
getUserAttributes (line 517)
hasPermission (line 341)
Returns whether a user has a certain permission on a single resource.
listTemplates (line 242)
List all templates of a given type.
outputInlineScript (line 933)
Print inline javascript to the output buffer.
permissionsFilter (line 415)
Filters a list of resources based on whether a user use certain permissions on it.
sendReminders (line 698)
Send reminders. One email per user.
sortBy (line 132)
sortDir (line 143)
sortTickets (line 117)
urlFor (line 28)
_sort (line 154)
Documentation generated on Sun, 30 Jan 2011 05:41:45 +0000 by phpDocumentor 1.4.3