The id field.
| Parameters: |
|
|---|---|
| Returns: | An integer containing the id of the new ticket. |
Creates a ticket.
| Parameters: |
|
|---|---|
| Returns: | A boolean representing whether or not the requester was successfully added to the provided ticket. |
Adds a requester to a ticket.
| Parameters: |
|
|---|---|
| Returns: | A boolean representing whether or not the requester was successfully added to the provided ticket. |
Deletes the specified requester from the specified ticket.
| Parameters: |
|
|---|
Retrieves a ticket.
| Parameters: |
|
|---|---|
| Returns: | An array of Model_Tickets. |
Retrieves the tickets for a specific object.
| Returns: | An array of fields and their human-friendly translations. |
|---|
Returns an array of all ticket fields.
| Parameters: |
|
|---|---|
| Returns: | An array of Model_Ticket objects. |
Retrieves the objects matching the criteria specified.
| Parameters: |
|
|---|---|
| Returns: | An integer containing the id of the matching ticket. |
Retrieves the ticket id for the supplied mask.
| Parameters: |
|
|---|---|
| Returns: | An instace of Model_Ticket containing the matching ticket. |
Retrieves the ticket for the supplied mask.
| Parameters: |
|
|---|---|
| Returns: | An array containing the ticket_id and message_id. |
Retrieves the ticket which contains the supplied message_id.
| Parameters: |
|
|---|---|
| Returns: | An integer containing the id of the ticket that the supplied tickets were merged into. |
Merges any number of tickets.
| Parameters: |
|
|---|---|
| Returns: | A boolean representing whether the ticket was successfully rebuilt or not. |
Updates the first_message_id, first_wrote_id, last_message_id and last_wrote_id of a ticket, or deletes it if there are no messages. This is useful if you’ve deleted messages on the ticket.
Returns a random ticket.
| Parameters: |
|
|---|---|
| Returns: | An array with the results, and the total number of records if $withCounts is true. |
Returns objects matching the given criteria.
| Parameters: |
|
|---|
Updates a ticket (or multiple tickets).
| Parameters: |
|
|---|
Updates a ticket (or multiple tickets) based on the provided $where parameter.
The id of the ticket.
The mask of the ticket.
The subject of the ticket.
A boolean indicating whether the ticket is waiting for a customer reply or not.
A boolean indicating whether the ticket is closed or not.
A boolean indicating whether the ticket is deleted or not.
The group the ticket is in.
The bucket the ticket is in.
The org the ticket belongs to.
The worker who owns the ticket.
The id of the first message on the ticket.
The id of the last message on the ticket.
The id of the address of the first person who wrote a message on the ticket.
The id of the address of the last person who wrote a message on the ticket.
The date the ticket was created.
The date the ticket was updated.
The date the ticket is due.
The spam score of the ticket.
The spam training of the ticket.
Interesting words that are part of the ticket (for spam purposes).
The last action code of the ticket.
| Returns: | An instance of Model_Message containing the message. |
|---|
Retrieves the first message on the ticket.
| Returns: | An instance of Model_Message containing the message. |
|---|
Retrieves the last message on the ticket.
| Returns: | An array of Model_Message objects. |
|---|
Retrieves all messages on the ticket.
| Returns: | An instance of Model_ContactOrg containing the organization. |
|---|
Retrieves the Organization set for the ticket.
| Returns: | An array of Model_Address objects. |
|---|
Retrieves all of the requesters set for a ticket.