Overview

Packages

  • Horde
    • Form
    • MIME
      • Viewer
    • Scheduler
  • None
  • Whups
    • UnitTests

Classes

  • Horde_Core_Ui_VarRenderer_whups
  • Whups
  • Whups_Ajax_Imple_ContactAutoCompleter
  • Whups_Api
  • Whups_Driver
  • Whups_Driver_Sql
  • Whups_Form_AddComment
  • Whups_Form_Admin_AddAttribute
  • Whups_Form_Admin_AddPriority
  • Whups_Form_Admin_AddQueue
  • Whups_Form_Admin_AddReply
  • Whups_Form_Admin_AddState
  • Whups_Form_Admin_AddType
  • Whups_Form_Admin_AddUser
  • Whups_Form_Admin_AddVersion
  • Whups_Form_Admin_CloneType
  • Whups_Form_Admin_DefaultPriority
  • Whups_Form_Admin_DefaultState
  • Whups_Form_Admin_DeleteAttribute
  • Whups_Form_Admin_DeletePriority
  • Whups_Form_Admin_DeleteQueue
  • Whups_Form_Admin_DeleteReply
  • Whups_Form_Admin_DeleteState
  • Whups_Form_Admin_DeleteType
  • Whups_Form_Admin_DeleteVersion
  • Whups_Form_Admin_EditAttributeStepOne
  • Whups_Form_Admin_EditAttributeStepTwo
  • Whups_Form_Admin_EditPriorityStepOne
  • Whups_Form_Admin_EditPriorityStepTwo
  • Whups_Form_Admin_EditQueueStepOne
  • Whups_Form_Admin_EditQueueStepTwo
  • Whups_Form_Admin_EditReplyStepOne
  • Whups_Form_Admin_EditReplyStepTwo
  • Whups_Form_Admin_EditStateStepOne
  • Whups_Form_Admin_EditStateStepTwo
  • Whups_Form_Admin_EditTypeStepOne
  • Whups_Form_Admin_EditTypeStepTwo
  • Whups_Form_Admin_EditUser
  • Whups_Form_Admin_EditVersionStepOne
  • Whups_Form_Admin_EditVersionStepTwo
  • Whups_Form_InsertBranch
  • Whups_Form_Query_AttributeCriterion
  • Whups_Form_Query_ChooseNameForLoad
  • Whups_Form_Query_ChooseNameForSave
  • Whups_Form_Query_DateCriterion
  • Whups_Form_Query_Delete
  • Whups_Form_Query_GroupCriterion
  • Whups_Form_Query_Parameter
  • Whups_Form_Query_PropertyCriterion
  • Whups_Form_Query_TextCriterion
  • Whups_Form_Query_UserCriterion
  • Whups_Form_Renderer_Comment
  • Whups_Form_Search
  • Whups_Form_SendReminder
  • Whups_Form_Ticket_CreateStepFour
  • Whups_Form_Ticket_CreateStepOne
  • Whups_Form_Ticket_CreateStepThree
  • Whups_Form_Ticket_CreateStepTwo
  • Whups_Form_Ticket_Edit
  • Whups_Form_TicketDetails
  • Whups_LoginTasks_SystemTask_Upgrade
  • Whups_Mail
  • Whups_Query
  • Whups_Query_Manager
  • Whups_Reports
  • Whups_Ticket
  • Whups_View_Base
  • Whups_View_Results
  • Whups_View_SavedQueries
  • Overview
  • Package
  • Class
  • Tree

Class Whups_Api

Whups external API interface.

This file defines Whups' external API interface. Other applications can interact with Whups through this API.

Horde_Registry_Api
Extended by Whups_Api
Package: Whups
Located at Api.php
Methods summary
public array
# browse( string $path = '' )

Browse through Whups' object tree.

Browse through Whups' object tree.

Parameters

$path
The level of the tree to browse.

Returns

array
The contents of $path
public integer
# addQueue( string $name )

Create a new queue.

Create a new queue.

Parameters

$name
The queue's name.

Returns

integer
The new queue id.
public array
# getAssignedTicketIds( )

Return the ids of all open tickets assigned to the current user.

Return the ids of all open tickets assigned to the current user.

Returns

array
Array of ticket ids.
public array
# getRequestedTicketIds( )

Return the ids of all open tickets that the current user created.

Return the ids of all open tickets that the current user created.

Returns

array
Array of ticket ids.
public integer
# addTicket( array $ticket_info )

Create a new ticket.

Create a new ticket.

Parameters

$ticket_info
<p>An array of form variables representing all of the data collected by CreateStep1Form, CreateStep2Form, CreateStep3Form, and optionally CreateStep4Form.</p>

Returns

integer
The new ticket id.
public boolean
# updateTicket( integer $ticket_id, array $ticket_info )

Update a ticket's properties.

Update a ticket's properties.

Parameters

$ticket_id
The id of the id to changes.
$ticket_info
The attributes to set, from the EditTicketForm.

Returns

boolean
True
public boolean
# addComment( integer $ticket_id, string $comment, string $group = null )

Add a comment to a ticket.

Add a comment to a ticket.

Parameters

$ticket_id
The id of the ticket to comment on.
$comment
The comment text to add.
$group
(optional) Restrict this comment to a specific group.

Returns

boolean
True
public
# addAttachment( integer $ticket_id, string $name, string $data )

Adds an attachment to a ticket.

Adds an attachment to a ticket.

Parameters

$ticket_id
The ticket number.
$name
The name of the attachment.
$data
The attachment data.

Throws

Whups_Exception
public
# setTicketAttributes( mixed $info )

Set attributes for a ticket

Set attributes for a ticket

public array
# getListTypes( )

Get the types that Whups items can be listed as.

Get the types that Whups items can be listed as.

Returns

array
Array of list types.
public array
# listAs( string $type )

Get a list of items from whups as type $type.

Get a list of items from whups as type $type.

Parameters

$type
The list type to use (@see getListTypes). Currently supported: 'taskHash'

Returns

array
An array of tickets.
public array
# listQueues( )

Return a list of queues that the current user has read permissions for

Return a list of queues that the current user has read permissions for

Returns

array
Array of queue details
public array
# listSlugs( )

Return a list of slugs that the current user has read permissions for

Return a list of slugs that the current user has read permissions for

Returns

array
Array of queue details
public array
# getQueueDetails( array $queue )

Get details for a queue

Get details for a queue

Parameters

$queue
integer $queue Either an array of queue ids or a single queue id.

Returns

array
An array of queue information (or an array of arrays, if multiple queues were passed).
public array
# listVersions( integer $queue )

List the versions associated with a queue

List the versions associated with a queue

Parameters

$queue
The queue id to get versions for.

Returns

array
Array of queue versions
public
# addVersion( integer $queue, string $name, string $description, boolean $active = true )

Add a version to a queue

Add a version to a queue

Parameters

$queue
The queue id to add the version to.
$name
The name of the new version.
$description
The descriptive text for the new version.
$active
Whether the version is still active.
public array
# getVersionDetails( integer $version_id )

Return the details for a queue version

Return the details for a queue version

Parameters

$version_id
The version to fetch

Returns

array
Array of version details
public array
# getTicketDetails( integer $queue_id, string $state = null )

Get the all tickets for a queue, optionally with a specific state.

Get the all tickets for a queue, optionally with a specific state.

Parameters

$queue_id
The queue to get tickets for
$state
The state filter, if any.

Returns

array
Array of tickets
public array
# listCostObjects( array $criteria )

List cost objects

List cost objects

Parameters

$criteria
The list criteria

Returns

array
Tickets (as cost objects) matching $criteria
public array
# listTimeObjectCategories( )

List the ways that tickets can be treated as time objects

List the ways that tickets can be treated as time objects

Returns

array
Array of time object types
public
# listTimeObjects( array $categories, mixed $start, mixed $end )

Lists tickets with due dates as time objects.

Lists tickets with due dates as time objects.

Parameters

$categories
The time categories (from listTimeObjectCategories) to list.
$start
The start date of the period.
$end
The end date of the period.
API documentation generated by ApiGen