프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$forward_entity_to | |||
$userentity_oncreate |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | nothing |
public canAddFollowups ( ) : boolean | ||
리턴 | boolean |
public canAddItem ( $type ) : rights | ||
$type | itemtype of object to add | |
리턴 | rights |
public canApprove ( ) : boolean | ||
리턴 | boolean |
public canCreateItem ( ) : boolean | ||
리턴 | boolean |
public canDeleteItem ( ) : boolean | ||
리턴 | boolean |
public canUpdateItem ( ) : boolean | ||
리턴 | boolean |
public canViewItem ( ) : boolean | ||
리턴 | boolean |
public cleanTagOrImage ( $content, $tags ) : htlm | ||
$content | html content of input | |
$tags | ||
리턴 | htlm | content |
public computeTakeIntoAccountDelayStat ( ) |
static public computeTco ( CommonDBTM $item ) : float | ||
$item | CommonDBTM | CommonDBTM object of the item |
리턴 | float |
public convertContentForNotification ( $content, $item ) : htlm | ||
$content | : html content of input | |
$item | : item to store filenames and tags found for each image in $content | |
리턴 | 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 | |
리턴 | 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 | |
리턴 | 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 | |
리턴 | nothing |
public countActiveTicketsForItem ( $itemtype, $items_id ) : integer | ||
$itemtype | string Item type | |
$items_id | integer ID of the Item | |
리턴 | integer |
public countSolvedTicketsForItemLastDays ( $itemtype, $items_id, $days ) : integer | ||
$itemtype | string Item type | |
$items_id | integer ID of the Item | |
$days | integer day number | |
리턴 | integer |
static public cronAlertNotClosed ( $task ) : integer | ||
$task | : crontask object | |
리턴 | integer | (0 : nothing done - 1 : done) |
static public cronCloseTicket ( $task ) : integer | ||
$task | : crontask object | |
리턴 | integer | (0 : nothing done - 1 : done) |
static public cronCreateInquest ( $task ) : integer | ||
$task | : crontask object | |
리턴 | integer | (0 : nothing done - 1 : done) |
static public cronInfo ( $name ) : arrray | ||
$name | : task's name | |
리턴 | arrray | of information |
public deleteSLT ( $id, $type, $delete_date ) : type | ||
$id | ||
$type | ||
$delete_date | (default 0) | |
리턴 | 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) | |
리턴 | 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 | |
리턴 | integer |
public getAdditionalDatas ( ) : nothing | ||
리턴 | nothing | : set computerfound to 1 if founded |
static public getAllStatusArray ( $withmetaforsearch = false ) : an | ||
$withmetaforsearch | boolean (false by default) | |
리턴 | an | array |
static public getClosedStatusArray ( ) : an | ||
리턴 | 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 | |
리턴 | 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 | ||
리턴 | an | array |
static public getProcessStatusArray ( ) : an | ||
리턴 | an | array |
static public getReopenableStatusArray ( ) : an | ||
리턴 | an | array |
static public getSolvedStatusArray ( ) : an | ||
리턴 | 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 |
리턴 | 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) | |
리턴 | 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 manageValidationAdd ( $input ) : nothing | ||
$input | array : input array | |
리턴 | nothing |
public numberOfFollowups ( $with_private = 1 ) : followup | ||
$with_private | boolean : true : all followups / false : only public ones (default 1) | |
리턴 | followup | count |
public numberOfTasks ( $with_private = 1 ) : followup | ||
$with_private | boolean : true : all ticket / false : only public ones (default 1) | |
리턴 | 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) | |
리턴 | nothing | (print the helpdesk) |
static public showFormHelpdeskObserver ( $options = [] ) |
static public showListForItem ( CommonDBTM $item ) : nothing | ||
$item | CommonDBTM | CommonDBTM object |
리턴 | nothing | (display a table) |
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 |