$_id
$_id : integer
The id of the ticket this object wraps.
The Whups_Ticket class encapsulates some logic relating to tickets, sending updates, etc.
Copyright 2004-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
makeTicket(integer $id) : \Whups_Ticket
Returns a ticket object for an id.
integer | $id | The ticket id. |
Whups_Ticket object
newTicket(array $info, $requester) : \Whups_Ticket
Creates a new ticket.
Pretty bare wrapper around Whups_Driver::addTicket().
array | $info | A hash with ticket information. |
$requester |
Whups_Ticket object.
__construct(integer $id, array $details) : \Whups_Ticket
Constructor.
integer | $id | The ticket id. |
array | $details | The hash of ticket information. |
commit(string $user = null, integer $transaction = null, boolean $notify = true)
Goes through a list of built-up changes and commits them to the backend.
This will send email updates by default, update the ticket log, etc.
string | $user | The Horde user of the changes to be made. Defaults to the current user. |
integer | $transaction | The transaction these changes are part of. Defaults to a new transaction. |
boolean | $notify | Send ticket notifications? |
listAllAttachments(string $filter = null) : array
Returns a list of all files that have been attached to this ticket, whether they still exist or not.
string | $filter | If set, only return this property of the change commit that included the attachment. |
The list of file attachments
setDetails(\Horde_Variables $vars, boolean $split_owners = false)
Sets all properties of the ticket necessary to display the TicketDetailsForm.
\Horde_Variables | $vars | The form variables object to set info in. |
boolean | $split_owners | This has to be set if you want to use the $vars var for saving later or otherwise $form->validate() will fail |
notify(string $author, boolean $isNew, array $listeners = array())
Notifies all appropriate people of the creation/update of this ticket.
string | $author | Who created/changed the ticket? |
boolean | $isNew | Is this a new ticket or a change to an existing one? |
array | $listeners | The list of listener that should receive the notification, with user names as keys and user roles as values. If empty, the list will be created automatically. |