프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_changes | array | Array of changes to make to the ticket. | |
$_details | array | The current values of the ticket. | |
$_id | integer | The id of the ticket this object wraps. |
메소드 | 설명 | |
---|---|---|
__construct ( integer $id, array $details ) : Whups_Ticket | Constructor. | |
__toString ( ) | ||
addAttachment ( string &$attachment_name, string $attachment_file ) | Adds an attachment to this ticket. | |
addAttributes ( ) : array | Adds ticket attribute values to the ticket's details, and returns the list of attributes. | |
addCommentPerms ( integer $commentId, string $group ) : integer | Sets exclusive read permissions on a comment to a certain group. | |
addMessage ( string $message ) : integer | Adds a message to this ticket. | |
change ( string $detail, string $value ) | Tracks that a detail of the ticket should change, but does not actually make the change until commit() is called. | |
commit ( string $user = null, integer $transaction = null, boolean $notify = true ) | Goes through a list of built-up changes and commits them to the backend. | |
delete ( ) | Deletes this ticket. | |
deleteAttachment ( string $attachment_name ) | Removes an attachment from this ticket. | |
deleteMessage ( integer $message ) | Removes a message from this ticket. | |
feedLink ( ) : array | Returns data for this ticket's feed. | |
get ( string $detail ) : mixed | Returns a piece of information from this ticket. | |
getDetails ( ) : array | Returns all ticket information. | |
getId ( ) : integer | Returns the ticket id. | |
listAllAttachments ( string $filter = null ) : array | Returns a list of all files that have been attached to this ticket, whether they still exist or not. | |
makeTicket ( integer $id ) : Whups_Ticket | Returns a ticket object for an id. | |
newTicket ( array $info, $requester ) : Whups_Ticket | Creates a new ticket. | |
notify ( string $author, boolean $isNew, array $listeners = [] ) | Notifies all appropriate people of the creation/update of this ticket. | |
set ( string $detail, string $value ) | Changes a detail of the ticket to a new value. | |
setDetails ( Horde_Variables $vars, boolean $split_owners = false ) | Sets all properties of the ticket necessary to display the TicketDetailsForm. | |
show ( ) | Redirects the browser to this ticket's view. | |
toString ( ) | Returns a plain text representation of a ticket. |
메소드 | 설명 | |
---|---|---|
_getVfs ( ) : Horde_Vfs_Base | Returns a Horde_Vfs instance. |
public __construct ( integer $id, array $details ) : Whups_Ticket | ||
$id | integer | The ticket id. |
$details | array | The hash of ticket information. |
리턴 | Whups_Ticket |
protected _getVfs ( ) : Horde_Vfs_Base | ||
리턴 | Horde_Vfs_Base | A VFS instance. |
public addAttachment ( string &$attachment_name, string $attachment_file ) | ||
$attachment_name | string | The name of the attachment. |
$attachment_file | string | The temporary file containing the data to be stored. |
public addAttributes ( ) : array | ||
리턴 | array | List of ticket attribute hashes. |
public addMessage ( string $message ) : integer | ||
$message | string | The email message content. |
리턴 | integer | The message ID. |
public commit ( string $user = null, integer $transaction = null, boolean $notify = true ) | ||
$user | string | The Horde user of the changes to be made. Defaults to the current user. |
$transaction | integer | The transaction these changes are part of. Defaults to a new transaction. |
$notify | boolean | Send ticket notifications? |
public deleteAttachment ( string $attachment_name ) | ||
$attachment_name | string | The name of the attachment. |
public deleteMessage ( integer $message ) | ||
$message | integer | A message ID. |
public getDetails ( ) : array | ||
리턴 | array | The ticket information. |
public listAllAttachments ( string $filter = null ) : array | ||
$filter | string | If set, only return this property of the change commit that included the attachment. |
리턴 | array | The list of file attachments |
public static makeTicket ( integer $id ) : Whups_Ticket | ||
$id | integer | The ticket id. |
리턴 | Whups_Ticket | Whups_Ticket object |
public notify ( string $author, boolean $isNew, array $listeners = [] ) | ||
$author | string | Who created/changed the ticket? |
$isNew | boolean | Is this a new ticket or a change to an existing one? |
$listeners | array | 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. |
public setDetails ( Horde_Variables $vars, boolean $split_owners = false ) | ||
$vars | Horde_Variables | The form variables object to set info in. |
$split_owners | boolean | This has to be set if you want to use the $vars var for saving later or otherwise $form->validate() will fail |