Property | Type | Description | |
---|---|---|---|
$_params | array |
Method | Description | |
---|---|---|
__construct ( array $params ) : Whups_Driver_Base | Constructor | |
deleteQueue ( integer $queueId ) | Deletes a queue. | |
deleteReply ( integer $reply ) | Deletes a form reply. | |
filterTicketsByState ( $tickets, $state_category = [] ) | ||
formatComments ( array $comments, integer $ticket ) : string | Converts a changeset array to a plain text comment snippet. | |
getAllTicketAttributesWithNames ( $ticket_id ) : array | Returns the attributes for a specific ticket. | |
getAttributesForType ( $type = null ) : array | Returns the attributes for a ticket type. | |
getCategories ( ) | ||
getHistory ( integer $ticket_id, Horde_Form $form = null ) : array | Fetch ticket history | |
getQueue ( $queueId ) | ||
getQueues ( ) | ||
getVersion ( $version ) | ||
getVersionInfo ( $queue ) | ||
getVersions ( $queue, $all = false ) | Returns a hash of versions suitable for select lists. | |
mail ( array $opts ) | Sends email notifications to a list of recipients. | |
setAttributes ( array $info, Whups_Ticket &$ticket ) | Set ticket attributes |
Method | Description | |
---|---|---|
_json_decode ( $value ) : mixed | Helper to decode attribute value, which may be a bare scalar value, or a json encoded structure that may contain large numeric strings that should not be taken as integers. | |
_serializeAttribute ( $value ) : string | Returns a serialized value, if necessary. |
public __construct ( array $params ) : Whups_Driver_Base | ||
$params | array | Parameter array. |
return | Whups_Driver_Base |
protected _json_decode ( $value ) : mixed | ||
return | mixed | The decoded value. |
protected _serializeAttribute ( $value ) : string | ||
return | string | The JSON encoded value if not already a string. |
public deleteQueue ( integer $queueId ) | ||
$queueId | integer | The id of the queue being deleted. |
public deleteReply ( integer $reply ) | ||
$reply | integer | The id of the form reply being deleted. |
public getAllTicketAttributesWithNames ( $ticket_id ) : array | ||
return | array | List of attributes. |
public getAttributesForType ( $type = null ) : array | ||
return | array | A list of attributes. |
public getHistory ( integer $ticket_id, Horde_Form $form = null ) : array | ||
$ticket_id | integer | The ticket to fetch history for. |
$form | Horde_Form | |
return | array |
public getVersions ( $queue, $all = false ) |
public mail ( array $opts ) | ||
$opts | array | Option hash with notification information. Possible values: - ticket: (Whups_Ticket) A ticket. If not set, this is assumed to be a reminder message. - recipients: (array|string) The list of recipients, with user names as keys and user roles as values. - subject: (string) The email subject. - view: (Horde_View) The view object for the message text. - template: (string) The template file for the message text. - from: (string) The email sender. - new: (boolean, optional) Whether the passed ticket was just created. |
public setAttributes ( array $info, Whups_Ticket &$ticket ) | ||
$info | array | Attributes to set |
$ticket | Whups_Ticket | The ticket which attributes to set. |