PHP 클래스 CommonITILValidation, glpi

상속: extends CommonDBChild
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$auto_message_on_action From CommonDBTM
$log_history_add
$log_history_delete
$log_history_update

공개 메소드들

메소드 설명
alertValidation ( CommonITILObject $item, $type )
alreadyExists ( $items_id, $users_id ) : boolean Check if validation already exists
canCreate ( )
canCreateItem ( ) : boolean Is the current user have right to delete the current validation ?
canDeleteItem ( ) : boolean Is the current user have right to delete the current validation ?
canUpdate ( )
canUpdateItem ( ) : boolean Is the current user have right to update the current validation ?
canValidate ( $items_id )
canView ( )
computeValidationStatus ( CommonITILObject $item ) : validation Compute the validation status
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
dropdownStatus ( $name, $options = [] ) : nothing Dropdown of validation status
dropdownValidator ( array $options = [] ) : nothing Dropdown of validator
getAllStatusArray ( $withmetaforsearch = false, $global = false ) : an get the Ticket validation status list
getAllValidationStatusArray ( ) : an Get the ITIL object all validation status list
getCanValidationStatusArray ( ) : an Get the ITIL object can validation status list
getCreateRights ( )
getForbiddenStandardMassiveAction ( )
getGroupUserHaveRights ( array $options = [] ) : array Get list of users from a group which have validation rights
getHistoryChangeWhenUpdateField ( $field )
getHistoryNameForItem ( CommonDBTM $item, $case )
getItilObjectItemType ( ) rejected
getNumberToValidate ( $users_id ) Get item validation demands count for a user
getNumberValidationForTicket ( $items_id ) Get item validation demands count
getPurgeRights ( )
getRights ( $interface = 'central' )
getSearchOptions ( )
getSearchOptionsToAdd ( )
getSpecificValueToDisplay ( $field, $values, array $options = [] )
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] )
getStatus ( $value ) Get Ticket validation status Name
getStatusColor ( $value ) Get Ticket validation status Color
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTicketStatusNumber ( $items_id, $status ) Get the number of validations attached to an item having a specified status
getTypeName ( $nb )
getValidateRights ( )
getValidationStats ( $tID ) : statistics Get the validation statistics
isAllValidationsHaveSameStatusForTicket ( $items_id ) All validations requests for an item have the same status ?
post_addItem ( )
post_getEmpty ( )
post_updateItem ( $history = 1 )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
showForm ( $ID, $options = [] ) Print the validation form
showFormMassiveAction ( ) Form for Followup on Massive action
showMassiveActionsSubForm ( MassiveAction $ma )
showSummary ( $item ) Print the validation list into item

메소드 상세

alertValidation() 정적인 공개 메소드

static public alertValidation ( CommonITILObject $item, $type )
$item CommonITILObject CommonITILObject
$type

alreadyExists() 정적인 공개 메소드

Check if validation already exists
static public alreadyExists ( $items_id, $users_id ) : boolean
$items_id integer item ID
$users_id integer user ID
리턴 boolean

canCreate() 정적인 공개 메소드

static public canCreate ( )

canCreateItem() 공개 메소드

Is the current user have right to delete the current validation ?
public canCreateItem ( ) : boolean
리턴 boolean

canDeleteItem() 공개 메소드

Is the current user have right to delete the current validation ?
public canDeleteItem ( ) : boolean
리턴 boolean

canUpdate() 정적인 공개 메소드

static public canUpdate ( )

canUpdateItem() 공개 메소드

Is the current user have right to update the current validation ?
public canUpdateItem ( ) : boolean
리턴 boolean

canValidate() 정적인 공개 메소드

static public canValidate ( $items_id )
$items_id ID of the item

canView() 정적인 공개 메소드

static public canView ( )

computeValidationStatus() 정적인 공개 메소드

Compute the validation status
static public computeValidationStatus ( CommonITILObject $item ) : validation
$item CommonITILObject CommonITILObject
리턴 validation status

displayTabContentForItem() 정적인 공개 메소드

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

dropdownStatus() 정적인 공개 메소드

Dropdown of validation status
static public dropdownStatus ( $name, $options = [] ) : nothing
$name select name
$options array of possible options: - value : default value (default waiting) - all : boolean display all (default false) - global : for global validation (default false) - display : boolean display or get string ? (default true)
리턴 nothing (display)

dropdownValidator() 정적인 공개 메소드

Dropdown of validator
static public dropdownValidator ( array $options = [] ) : nothing
$options array array of options - name : select name - id : ID of object > 0 Update, < 0 New - entity : ID of entity - right : validation rights - groups_id : ID of group validator - users_id_validate : ID of user validator - applyto
리턴 nothing (display)

getAllStatusArray() 정적인 공개 메소드

get the Ticket validation status list
static public getAllStatusArray ( $withmetaforsearch = false, $global = false ) : an
$withmetaforsearch boolean (false by default)
$global boolean (true for global status, with "no validation" option) (false by default)
리턴 an array

getAllValidationStatusArray() 정적인 공개 메소드

Get the ITIL object all validation status list
static public getAllValidationStatusArray ( ) : an
리턴 an array

getCanValidationStatusArray() 정적인 공개 메소드

Get the ITIL object can validation status list
static public getCanValidationStatusArray ( ) : an
리턴 an array

getCreateRights() 정적인 공개 메소드

static public getCreateRights ( )

getForbiddenStandardMassiveAction() 공개 메소드

getGroupUserHaveRights() 정적인 공개 메소드

Get list of users from a group which have validation rights
static public getGroupUserHaveRights ( array $options = [] ) : array
$options array array possible: groups_id right entity
리턴 array

getHistoryChangeWhenUpdateField() 공개 메소드

또한 보기: CommonDBConnexity::getHistoryChangeWhenUpdateField

getHistoryNameForItem() 공개 메소드

또한 보기: CommonDBChild::getHistoryNameForItem
public getHistoryNameForItem ( CommonDBTM $item, $case )
$item CommonDBTM

getItilObjectItemType() 공개 메소드

rejected

getNumberToValidate() 정적인 공개 메소드

Get item validation demands count for a user
static public getNumberToValidate ( $users_id )
$users_id integer User ID

getNumberValidationForTicket() 정적인 공개 메소드

Get item validation demands count
static public getNumberValidationForTicket ( $items_id )
$items_id integer item ID

getPurgeRights() 정적인 공개 메소드

static public getPurgeRights ( )

getRights() 공개 메소드

또한 보기: commonDBTM::getRights()
public getRights ( $interface = 'central' )

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSearchOptionsToAdd() 정적인 공개 메소드

static public getSearchOptionsToAdd ( )

getSpecificValueToDisplay() 정적인 공개 메소드

static public getSpecificValueToDisplay ( $field, $values, array $options = [] )
$field
$values
$options array array

getSpecificValueToSelect() 정적인 공개 메소드

static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] )
$field
$name (default '')
$values (default '')
$options array array

getStatus() 정적인 공개 메소드

Get Ticket validation status Name
static public getStatus ( $value )
$value status ID

getStatusColor() 정적인 공개 메소드

Get Ticket validation status Color
static public getStatusColor ( $value )
$value status ID

getTabNameForItem() 공개 메소드

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTicketStatusNumber() 정적인 공개 메소드

Get the number of validations attached to an item having a specified status
static public getTicketStatusNumber ( $items_id, $status )
$items_id integer item ID
$status status

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

getValidateRights() 정적인 공개 메소드

static public getValidateRights ( )

getValidationStats() 정적인 공개 메소드

Get the validation statistics
static public getValidationStats ( $tID ) : statistics
$tID tickets id
리턴 statistics array

isAllValidationsHaveSameStatusForTicket() 정적인 공개 메소드

All validations requests for an item have the same status ?
static public isAllValidationsHaveSameStatusForTicket ( $items_id )
$items_id integer item ID

post_addItem() 공개 메소드

public post_addItem ( )

post_getEmpty() 공개 메소드

public post_getEmpty ( )

post_updateItem() 공개 메소드

public post_updateItem ( $history = 1 )

prepareInputForAdd() 공개 메소드

public prepareInputForAdd ( $input )

prepareInputForUpdate() 공개 메소드

public prepareInputForUpdate ( $input )

processMassiveActionsForOneItemtype() 정적인 공개 메소드

또한 보기: CommonDBTM::processMassiveActionsForOneItemtype()
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
$ma MassiveAction
$item CommonDBTM
$ids array

showForm() 공개 메소드

Print the validation form
public showForm ( $ID, $options = [] )
$ID integer ID of the item
$options array options used

showFormMassiveAction() 정적인 공개 메소드

Form for Followup on Massive action
static public showFormMassiveAction ( )

showMassiveActionsSubForm() 정적인 공개 메소드

또한 보기: CommonDBTM::showMassiveActionsSubForm()
static public showMassiveActionsSubForm ( MassiveAction $ma )
$ma MassiveAction

showSummary() 공개 메소드

Print the validation list into item
public showSummary ( $item )
$item class

프로퍼티 상세

$auto_message_on_action 공개적으로 프로퍼티

From CommonDBTM
public $auto_message_on_action

$log_history_add 공개적으로 정적으로 프로퍼티

public static $log_history_add

$log_history_delete 공개적으로 정적으로 프로퍼티

public static $log_history_delete

$log_history_update 공개적으로 정적으로 프로퍼티

public static $log_history_update