void
addAttributeDesc
( $type_id, $name, $desc, $type, $params, $required)
-
$type_id
-
$name
-
$desc
-
$type
-
$params
-
$required
void
addComment
( $ticket_id, $comment, $creator, [ $creator_email = null])
-
$ticket_id
-
$comment
-
$creator
-
$creator_email
void
addListener
( $ticket, $user)
void
addPriority
( $typeId, $name, $description)
-
$typeId
-
$name
-
$description
Adds a new queue to the backend.
mixed
addQueue
( $name, $description, [ $slug = ''], [ $email = ''])
-
$name
-
$description
-
$slug
-
$email
void
addQueueUser
( $queueId, $userId)
Adds a form reply to the backend.
integer
addReply
(integer $type, string $name, string $text)
-
integer
$type: The ticket type id for which to add the new reply.
-
string
$name: The reply name.
-
string
$text: The reply text.
void
addState
( $typeId, $name, $description, $category)
-
$typeId
-
$name
-
$description
-
$category
void
addTicket
( &$info, $requester)
void
addTicketOwner
( $ticketId, $owner)
void
addType
( $name, $description)
Adds a new version to the specified queue.
mixed
addVersion
(integer $queueId, string $name, string $description, boolean $active)
-
integer
$queueId: The queueId to add the version to.
-
string
$name: The name of the new version.
-
string
$description: The descriptive text for the new version.
-
boolean
$active: Whether the version is still active.
void
deleteAttributeDesc
( $attribute_id)
Deletes all changes of a transaction.
void
deleteHistory
(integer $transaction)
-
integer
$transaction: A transaction id.
void
deleteListener
( $ticket, $user)
void
deletePriority
( $priorityId)
Delete query details.
void
deleteQuery
(integer $queryId)
Deletes a form reply from the backend.
void
deleteReply
(integer $reply)
-
integer
$reply: A reply id.
Redefinition of:
- Whups_Driver::deleteReply()
- Deletes a form reply.
void
deleteState
( $state_id)
void
deleteTicket
( $info)
void
deleteTicketOwner
( $ticketId, $owner)
void
deleteType
( $typeId)
void
deleteVersion
( $versionId)
void
executeQuery
( $query, $vars, [ $get_details = true], [ $munge = true])
-
$query
-
$vars
-
$get_details
-
$munge
void
getAllPriorityInfo
( $type)
void
getAllStateInfo
( $type)
void
getAttributeDesc
( $attribute_id)
void
getAttributeInfoForType
( $type_id)
void
getAttributeName
( $attribute_id)
void
getAttributeNamesForType
( $type_id)
Return the db object we're using.
return DB Database object.
void
getDb
()
void
getDefaultPriority
( $type)
void
getDefaultState
( $type)
void
getDefaultType
( $queue)
void
getGuestEmail
( $guest_id)
void
getListeners
( $ticket, [ $withowners = true], [ $withrequester = true], [ $withresponsible = false])
-
$ticket
-
$withowners
-
$withrequester
-
$withresponsible
void
getOwners
( $ticketId)
void
getPriorities
([ $type = null])
void
getPriority
( $priorityId)
Retrieve query details.
array
getQuery
(integer $queryId)
void
getQueueBySlugInternal
( $slug)
void
getQueueInternal
( $queueId)
void
getQueuesInternal
()
Return a list of queues with open tickets, and the number of open tickets in each.
void
getQueueSummary
( $queue_ids, array $queues)
-
array
$queues: Array of queue ids to summarize.
-
$queue_ids
void
getQueueUsers
( $queueId)
Returns all available form replies for a ticket type.
array
getReplies
(integer $type)
-
integer
$type: A type id.
Returns a form reply information hash.
array
getReply
(integer $reply_id)
-
integer
$reply_id: A form reply id.
void
getState
( $stateId)
void
getStates
([ $type = null], [ $category = ''], [ $notcategory = ''])
-
$type
-
$category
-
$notcategory
void
getTicketAttributes
( $ticket_id)
void
getTicketAttributesWithNames
( $ticket_id)
void
getTicketDetails
( $ticket, [ $checkPerms = true])
void
getTicketsByProperties
( $info, [ $munge = true], [ $perowner = false])
void
getTicketState
( $ticket_id)
void
getTypeIds
( $queueId)
void
getTypeName
( $type)
void
getTypes
( $queueId)
void
getVersionInfoInternal
( $queue)
void
getVersionInternal
( $versionId)
void
isCategory
( $category, $state_id)
Create a new transaction id for associating related entries in the whups_logs table.
integer
newTransaction
( $creator, [ $creator_email = null])
void
removeQueueUser
( $queueId, $userId)
Save query details, inserting a new query row if necessary.
void
setDefaultPriority
( $type, $priority)
void
setDefaultState
( $type, $state)
void
updateAttributeDesc
( $attribute_id, $newname, $newdesc, $newtype, $newparams, $newrequired)
-
$attribute_id
-
$newname
-
$newdesc
-
$newtype
-
$newparams
-
$newrequired
void
updateLog
( $ticket_id, $user, [ $changes = array()], [ $transactionId = null])
-
$ticket_id
-
$user
-
$changes
-
$transactionId
void
updatePriority
( $priorityId, $name, $description)
-
$priorityId
-
$name
-
$description
void
updateQueue
( $queueId, $name, $description, $types, $versioned, [ $slug = ''], [ $email = ''], [ $default = null])
-
$queueId
-
$name
-
$description
-
$types
-
$versioned
-
$slug
-
$email
-
$default
void
updateQueueUsers
( $queueId, $users)
Updates a form reply in the backend.
void
updateReply
(integer $reply, string $name, string $text)
-
integer
$reply: A reply id.
-
string
$name: The new reply name.
-
string
$text: The new reply text.
void
updateState
( $stateId, $name, $description, $category)
-
$stateId
-
$name
-
$description
-
$category
Update any details of a ticket that are stored in the main
whups_tickets table. Does not update the ticket log (so that it can be used for things low-level enough to not show up there. In general, you should *always* update the log; Whups_Ticket::commit() will take care of this in most cases).
boolean|PEAR_Error
updateTicket
(integer $ticketId, array $attributes)
-
integer
$ticketId: The id of the ticket to update.
-
array
$attributes: The array of attributes (key => value) to change.
void
updateType
( $typeId, $name, $description)
-
$typeId
-
$name
-
$description
void
updateTypesQueues
( $tmPairs)
void
updateVersion
( $versionId, $name, $description, $active)
-
$versionId
-
$name
-
$description
-
$active
void
_addDateWhere
( $where, $data, $type)
void
_addWhere
( $where, $condition, $clause, [ $conjunction = 'AND'])
-
$where
-
$condition
-
$clause
-
$conjunction
void
_clauseFromQuery
( $args, $type, $criterion, $cvalue, $operator, $value)
-
$args
-
$type
-
$criterion
-
$cvalue
-
$operator
-
$value
void
_concatClauses
( $args, $conjunction)
void
_criterionClause
( $criterion, $cvalue, $operator, $value)
-
$criterion
-
$cvalue
-
$operator
-
$value
void
_generateWhere
( $table, $fields, &$info, $type)
-
$table
-
$fields
-
&$info
-
$type
void
_getAllTicketAttributesWithNames
( $ticket_id)
void
_getAttributesForType
([ $type = null], [ $raw = false])
void
_getHistory
( $ticket_id)
void
_mapFields
( &$info)
void
_prefixTableToColumns
( $table, $columns)
void
_setAttributeValue
( $ticket_id, $attribute_id, $attribute_value)
-
$ticket_id
-
$attribute_id
-
$attribute_value
Inherited Methods
Inherited From Whups_Driver
Whups_Driver::Whups_Driver()
Whups_Driver::deleteQueue()
Whups_Driver::deleteReply()
Whups_Driver::factory()
Whups_Driver::filterTicketsByState()
Whups_Driver::formatComments()
Whups_Driver::getAllTicketAttributesWithNames()
Whups_Driver::getAttributesForType()
Whups_Driver::getCategories()
Whups_Driver::getHistory()
Whups_Driver::getQueue()
Whups_Driver::getQueues()
Whups_Driver::getVersion()
Whups_Driver::getVersionInfo()
Whups_Driver::getVersions()
Whups_Driver::mail()
Whups_Driver::setAttributes()