Property | Type | Description | |
---|---|---|---|
$computerfound | Is a hardware found in getHardwareData / getFromDBwithData : hardware link to the job | ||
$dohistory | From CommonDBTM | ||
$grouplinkclass | |||
$hardwaredatas | Hardware datas used by getFromDBwithData | ||
$rightname | |||
$supplierlinkclass | |||
$userlinkclass | From CommonITIL |
Property | Type | Description | |
---|---|---|---|
$forward_entity_to | |||
$userentity_oncreate |
Method | Description | |
---|---|---|
addImagePaste ( ) : nothing | Add image pasted to GLPI doc after ADD and before UPDATE of the item in the database | |
canAddFollowups ( ) : boolean | Is the current user have right to add followups to the current ticket ? | |
canAddItem ( $type ) : rights | Overloaded from commonDBTM | |
canAdminActors ( ) | ||
canApprove ( ) : boolean | Is the current user have right to approve solution of the current ticket ? | |
canAssign ( ) | ||
canAssignToMe ( ) | ||
canCreateItem ( ) : boolean | Is the current user have right to create the current ticket ? | |
canDelete ( ) | ||
canDeleteItem ( ) : boolean | Is the current user have right to delete the current ticket ? | |
canMassiveAction ( $action, $field, $value ) | ||
canSolve ( ) : boolean | Is the current user have right to solve the current ticket ? | |
canUpdate ( ) | ||
canUpdateItem ( ) : boolean | Is the current user have right to update the current ticket ? | |
canView ( ) | ||
canViewItem ( ) : boolean | Is the current user have right to show the current ticket ? | |
cleanDBonPurge ( ) | ||
cleanTagOrImage ( $content, $tags ) : htlm | Delete tag or image from ticket content | |
computeTakeIntoAccountDelayStat ( ) | Compute take into account stat of the current ticket | |
computeTco ( CommonDBTM $item ) : float | Calculate Ticket TCO for an item | |
convertContentForNotification ( $content, $item ) : htlm | Convert img or tag of ticket for notification mails | |
convertContentForTicket ( $content_html, $files, $tags ) : htlm | Convert img of the collector for ticket | |
convertImageToTag ( $content_html, $force_update = false ) : htlm | Convert image to tag | |
convertTagToImage ( $content_text, $force_update = false, $doc_data = [] ) : nothing | Convert tag to image | |
countActiveTicketsForItem ( $itemtype, $items_id ) : integer | Count active tickets for an hardware | |
countSolvedTicketsForItemLastDays ( $itemtype, $items_id, $days ) : integer | Count solved tickets for an hardware last X days | |
cronAlertNotClosed ( $task ) : integer | Cron for alert old tickets which are not solved | |
cronCloseTicket ( $task ) : integer | Cron for ticket's automatic close | |
cronCreateInquest ( $task ) : integer | Cron for ticketsatisfaction's automatic generated | |
cronInfo ( $name ) : arrray | Give cron information | |
defineTabs ( $options = [] ) | ||
deleteSLT ( $id, $type, $delete_date ) : type | Delete SLT for the ticket | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
dropdownType ( $name, $options = [] ) : string | Dropdown of ticket type | |
filterTimeline ( ) | ||
getActiveOrSolvedLastDaysTicketsForItem ( $itemtype, $items_id, $days ) : integer | Get active or solved tickets for an hardware last X days | |
getAdditionalDatas ( ) : nothing | Retrieve data of the hardware linked to the ticket if exists | |
getAdditionalMenuContent ( ) | ||
getAdditionalMenuLinks ( ) | ||
getAdditionalMenuOptions ( ) | ||
getAllStatusArray ( $withmetaforsearch = false ) : an | get the Ticket status list | |
getCalendar ( ) | Get correct Calendar: Entity or Sla | |
getClosedStatusArray ( ) : an | Get the ITIL object closed status list | |
getCommonLeftJoin ( ) | ||
getCommonSelect ( ) | ||
getDatasToAddSLT ( $slts_id, $entities_id, $date, $type ) : array | Get Datas to be added for SLT add | |
getDefaultActor ( $type ) | ||
getDefaultActorRightSearch ( $type ) | ||
getDefaultSearchRequest ( ) | Get default values to search engine to override | |
getDefaultValues ( $entity ) | ||
getForbiddenStandardMassiveAction ( ) | ||
getMenuShorcut ( ) | ||
getNewStatusArray ( ) : an | Get the ITIL object new status list | |
getProcessStatusArray ( ) : an | Get the ITIL object assign or plan status list | |
getReopenableStatusArray ( ) : an | Get the ITIL object closed, solved or waiting status list | |
getRights ( $interface = 'central' ) | ||
getSearchOptions ( ) | ||
getSolvedStatusArray ( ) : an | Get the ITIL object solved status list | |
getSpecificMassiveActions ( $checkitem = NULL ) | ||
getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string | ||
getSplittedSubmitButtonHtml ( $tickets_id, $action = "add" ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTicketActors ( ) | ||
getTicketTemplateToUse ( $force_template, $type, $itilcategories_id, $entities_id ) : ticket | Get ticket template to use Use force_template first, then try on template define for type and category then use default template of active profile of connected user and then use default entity one | |
getTicketTypeName ( $value ) | Get ticket type Name | |
getTimelineItems ( ) | ||
getTypeName ( $nb ) | Name of the type | |
getTypes ( ) : array | Get ticket types | |
getValueToSelect ( $field_id_or_search_options, $name = '', $values = '', $options = [] ) | Select a field using standard system | |
manageSltLevel ( $slts_id ) | Manage SLT level escalation | |
manageValidationAdd ( $input ) : nothing | Manage Validation add from input | |
numberOfFollowups ( $with_private = 1 ) : followup | Number of followups of the ticket | |
numberOfTasks ( $with_private = 1 ) : followup | Number of tasks of the ticket | |
post_addItem ( ) | ||
post_updateItem ( $history = 1 ) | ||
pre_deleteItem ( ) | ||
pre_updateInDB ( ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
setRichTextContent ( $name, $content, $rand ) | Convert simple text content to rich text content, init html editor | |
setSimpleTextContent ( $content ) | Convert rich text content to simple text content | |
showCentralCount ( $foruser = false ) | Get tickets count | |
showCentralList ( $start, $status = "process", $showgrouptickets = true ) | ||
showCentralNewList ( ) | ||
showDebug ( ) | Display debug information for current object | |
showDocumentAddButton ( $size = 25 ) | ||
showForm ( $ID, $options = [] ) | ||
showFormHelpdesk ( $ID, $ticket_template = false ) : nothing | Print the helpdesk form | |
showFormHelpdeskObserver ( $options = [] ) | Display a single oberver selector | |
showListForItem ( CommonDBTM $item ) : nothing | Display tickets for an item | |
showPreviewAssignAction ( $output ) | ||
showSubForm ( CommonDBTM $item, $id, $params ) | ||
showTimeline ( $rand ) | ||
showTimelineForm ( $rand ) | ||
showTimelineHeader ( ) | ||
showVeryShort ( $ID, $forcetab = '' ) | ||
sltAffect ( $type, &$input, $manual_slts_id ) | SLT affect by rules : reset due_date and time_to_own Manual SLT defined : reset due date and time_to_own No manual SLT and due date defined : reset auto SLT | |
updateDateMod ( $ID, $no_stat_computation = false, $users_id_lastupdater ) | Update date mod of the ticket |
public addImagePaste ( ) : nothing | ||
return | nothing |
public canAddFollowups ( ) : boolean | ||
return | boolean |
public canAddItem ( $type ) : rights | ||
$type | itemtype of object to add | |
return | rights |
public canApprove ( ) : boolean | ||
return | boolean |
public canCreateItem ( ) : boolean | ||
return | boolean |
public canDeleteItem ( ) : boolean | ||
return | boolean |
public canUpdateItem ( ) : boolean | ||
return | boolean |
public canViewItem ( ) : boolean | ||
return | boolean |
public cleanTagOrImage ( $content, $tags ) : htlm | ||
$content | html content of input | |
$tags | ||
return | htlm | content |
public computeTakeIntoAccountDelayStat ( ) |
static public computeTco ( CommonDBTM $item ) : float | ||
$item | CommonDBTM | CommonDBTM object of the item |
return | float |
public convertContentForNotification ( $content, $item ) : htlm | ||
$content | : html content of input | |
$item | : item to store filenames and tags found for each image in $content | |
return | htlm | content |
static public convertContentForTicket ( $content_html, $files, $tags ) : htlm | ||
$content_html | html content of input | |
$files | array of filename | |
$tags | array of image tag | |
return | htlm | content |
public convertImageToTag ( $content_html, $force_update = false ) : htlm | ||
$content_html | html content of input | |
$force_update | force update of content in item (false by default | |
return | htlm | content |
public convertTagToImage ( $content_text, $force_update = false, $doc_data = [] ) : nothing | ||
$content_text | text content of input | |
$force_update | force update of content in item (false by default | |
$doc_data | array of filenames and tags | |
return | nothing |
public countActiveTicketsForItem ( $itemtype, $items_id ) : integer | ||
$itemtype | string Item type | |
$items_id | integer ID of the Item | |
return | integer |
public countSolvedTicketsForItemLastDays ( $itemtype, $items_id, $days ) : integer | ||
$itemtype | string Item type | |
$items_id | integer ID of the Item | |
$days | integer day number | |
return | integer |
static public cronAlertNotClosed ( $task ) : integer | ||
$task | : crontask object | |
return | integer | (0 : nothing done - 1 : done) |
static public cronCloseTicket ( $task ) : integer | ||
$task | : crontask object | |
return | integer | (0 : nothing done - 1 : done) |
static public cronCreateInquest ( $task ) : integer | ||
$task | : crontask object | |
return | integer | (0 : nothing done - 1 : done) |
static public cronInfo ( $name ) : arrray | ||
$name | : task's name | |
return | arrray | of information |
public deleteSLT ( $id, $type, $delete_date ) : type | ||
$id | ||
$type | ||
$delete_date | (default 0) | |
return | type |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public dropdownType ( $name, $options = [] ) : string | ||
$name | select name | |
$options | array of options: - value : integer / preselected value (default 0) - toadd : array / array of specific values to add at the begining - on_change : string / value to transmit to "onChange" - display : boolean / display or get string (default true) | |
return | string | id of the select |
public getActiveOrSolvedLastDaysTicketsForItem ( $itemtype, $items_id, $days ) : integer | ||
$itemtype | string Item type | |
$items_id | integer ID of the Item | |
$days | integer day number | |
return | integer |
public getAdditionalDatas ( ) : nothing | ||
return | nothing | : set computerfound to 1 if founded |
static public getAllStatusArray ( $withmetaforsearch = false ) : an | ||
$withmetaforsearch | boolean (false by default) | |
return | an | array |
static public getClosedStatusArray ( ) : an | ||
return | an | array |
public getDatasToAddSLT ( $slts_id, $entities_id, $date, $type ) : array | ||
$slts_id | SLT id | |
$entities_id | entity ID of the ticket | |
$date | begin date of the ticket | |
$type | type of SLT | |
return | array | of datas to add in ticket |
static public getDefaultSearchRequest ( ) |
static public getDefaultValues ( $entity ) | ||
$entity | integer entities_id usefull is function called by cron (default 0) |
static public getNewStatusArray ( ) : an | ||
return | an | array |
static public getProcessStatusArray ( ) : an | ||
return | an | array |
static public getReopenableStatusArray ( ) : an | ||
return | an | array |
static public getSolvedStatusArray ( ) : an | ||
return | an | array |
static public getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
$field | ||
$values | ||
$options | array | array |
static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string | ||
$field | ||
$name | (default '') | |
$values | (default '') | |
$options | array | array |
return | string |
static public getSplittedSubmitButtonHtml ( $tickets_id, $action = "add" ) | ||
$tickets_id | ||
$action | (default 'add') |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public getTicketTemplateToUse ( $force_template, $type, $itilcategories_id, $entities_id ) : ticket | ||
$force_template | integer tickettemplate_id to used (case of preview for example) (default 0) | |
$type | integer type of the ticket (default 0) | |
$itilcategories_id | integer ticket category (default 0) | |
$entities_id | integer (default -1) | |
return | ticket | template object |
static public getTicketTypeName ( $value ) | ||
$value | type ID |
static public getTypeName ( $nb ) | ||
$nb | : number of item in the type (default 0) |
public getValueToSelect ( $field_id_or_search_options, $name = '', $values = '', $options = [] ) |
public manageSltLevel ( $slts_id ) | ||
$slts_id |
public manageValidationAdd ( $input ) : nothing | ||
$input | array : input array | |
return | nothing |
public numberOfFollowups ( $with_private = 1 ) : followup | ||
$with_private | boolean : true : all followups / false : only public ones (default 1) | |
return | followup | count |
public numberOfTasks ( $with_private = 1 ) : followup | ||
$with_private | boolean : true : all ticket / false : only public ones (default 1) | |
return | followup | count |
public setRichTextContent ( $name, $content, $rand ) | ||
$name | name of textarea | |
$content | content to convert in html | |
$rand |
public setSimpleTextContent ( $content ) | ||
$content | : content to convert in html |
static public showCentralCount ( $foruser = false ) | ||
$foruser | boolean : only for current login user as requester (false by default) |
static public showCentralList ( $start, $status = "process", $showgrouptickets = true ) | ||
$start | ||
$status | (default ''process) | |
$showgrouptickets | (true by default) |
static public showDocumentAddButton ( $size = 25 ) | ||
$size | (default 25) |
public showFormHelpdesk ( $ID, $ticket_template = false ) : nothing | ||
$ID | integer ID of the user who want to display the Helpdesk | |
$ticket_template | boolean ticket template for preview : false if not used for preview (false by default) | |
return | nothing | (print the helpdesk) |
static public showFormHelpdeskObserver ( $options = [] ) |
static public showListForItem ( CommonDBTM $item ) : nothing | ||
$item | CommonDBTM | CommonDBTM object |
return | nothing | (display a table) |
static public showPreviewAssignAction ( $output ) | ||
$output |
static public showSubForm ( CommonDBTM $item, $id, $params ) | ||
$item | CommonDBTM | |
$id | ||
$params |
static public showVeryShort ( $ID, $forcetab = '' ) | ||
$ID | ||
$forcetab | string name of the tab to force at the display (default '') |
public sltAffect ( $type, &$input, $manual_slts_id ) | ||
$type | ||
$input | ||
$manual_slts_id |
public updateDateMod ( $ID, $no_stat_computation = false, $users_id_lastupdater ) | ||
$ID | ID of the ticket | |
$no_stat_computation | boolean do not cumpute take into account stat (false by default) | |
$users_id_lastupdater | integer to force last_update id (default 0 = not used) |
public $computerfound |