PHP Class CommonITILTask, glpi

Inheritance: extends CommonDBTM
显示文件 Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$auto_message_on_action From CommonDBTM

Public Methods

Method Description
canEditAll ( )
canReadITILItem ( ) : boolean can read the parent ITIL Object ?
canUpdateITILItem ( ) : boolean can update the parent ITIL Object ?
canViewPrivates ( )
cleanDBonPurge ( )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
genericDisplayPlanningItem ( $itemtype, array $val, $who, $type = "", $complete ) : Nothing Display a Planning Item
genericGetAlreadyPlannedInformation ( $itemtype, array $val ) : Already Display a Planning Item
genericPopulatePlanning ( $itemtype, $options = [] ) : array Populate the planning with planned tasks
getItem ( ) : object Get the item associated with the current object.
getItilObjectItemType ( )
getRawName ( )
getSearchOptions ( )
getSearchOptionsToAdd ( )
getSpecificValueToDisplay ( $field, $values, array $options = [] )
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb ) Name of the type
post_addItem ( )
post_deleteFromDB ( )
post_getEmpty ( )
post_updateItem ( $history = 1 )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
showForm ( $ID, $options = [] ) form for Task
showFormMassiveAction ( ) Form for Ticket or Problem Task on Massive action
showInObjectSumnary ( CommonITILObject $item, $rand, $showprivate = false )
showSummary ( CommonITILObject $item ) Show the current task sumnary
test_valid_date ( $input ) : boolean Current dates are valid ? begin before end

Method Details

canEditAll() public method

public canEditAll ( )

canReadITILItem() public method

can read the parent ITIL Object ?
public canReadITILItem ( ) : boolean
return boolean

canUpdateITILItem() public method

can update the parent ITIL Object ?
public canUpdateITILItem ( ) : boolean
return boolean

canViewPrivates() public method

public canViewPrivates ( )

cleanDBonPurge() public method

See also: CommonDBTM::cleanDBonPurge()
public cleanDBonPurge ( )

displayTabContentForItem() static public method

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

genericDisplayPlanningItem() static public method

Display a Planning Item
static public genericDisplayPlanningItem ( $itemtype, array $val, $who, $type = "", $complete ) : Nothing
$itemtype itemtype
$val array Array of the item to display
$who ID of the user (0 if all)
$type position of the item in the time block (in, through, begin or end) (default '')
$complete complete display (more details) (default 0)
return Nothing (display function)

genericGetAlreadyPlannedInformation() static public method

Display a Planning Item
static public genericGetAlreadyPlannedInformation ( $itemtype, array $val ) : Already
$itemtype itemtype
$val array Array of the item to display
return Already planned information

genericPopulatePlanning() static public method

Populate the planning with planned tasks
static public genericPopulatePlanning ( $itemtype, $options = [] ) : array
$itemtype itemtype
$options array of options must contains : - who ID of the user (0 = undefined) - who_group ID of the group of users (0 = undefined) - begin Date - end Date - color - event_type_color - display_done_events (boolean)
return array of planning item

getItem() public method

Get the item associated with the current object.
public getItem ( ) : object
return object of the concerned item or false on error

getItilObjectItemType() public method

getRawName() public method

See also: CommonDBTM::getRawName()
public getRawName ( )

getSearchOptions() public method

public getSearchOptions ( )

getSearchOptionsToAdd() static public method

static public getSearchOptionsToAdd ( )

getSpecificValueToDisplay() static public method

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

getSpecificValueToSelect() static public method

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

getTabNameForItem() public method

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

getTypeName() static public method

Name of the type
static public getTypeName ( $nb )
$nb : number of item in the type (default 0)

post_addItem() public method

public post_addItem ( )

post_deleteFromDB() public method

public post_deleteFromDB ( )

post_getEmpty() public method

public post_getEmpty ( )

post_updateItem() public method

public post_updateItem ( $history = 1 )

prepareInputForAdd() public method

public prepareInputForAdd ( $input )

prepareInputForUpdate() public method

public prepareInputForUpdate ( $input )

showForm() public method

form for Task
public showForm ( $ID, $options = [] )
$ID Integer : Id of the task
$options array - parent Object : the object

showFormMassiveAction() public method

Form for Ticket or Problem Task on Massive action

showInObjectSumnary() public method

public showInObjectSumnary ( CommonITILObject $item, $rand, $showprivate = false )
$item CommonITILObject CommonITILObject
$rand
$showprivate (false by default)

showSummary() public method

Show the current task sumnary
public showSummary ( CommonITILObject $item )
$item CommonITILObject CommonITILObject

test_valid_date() public method

Current dates are valid ? begin before end
public test_valid_date ( $input ) : boolean
$input
return boolean

Property Details

$auto_message_on_action public_oe property

From CommonDBTM
public $auto_message_on_action