PHP Class Entity, glpi

Inheritance: extends CommonTreeDropdown
Afficher le fichier Open project: glpi-project/glpi Class Usage Examples

Méthodes publiques

Свойство Type Description
$dohistory
$first_level_menu
$must_be_replace
$rightname
$second_level_menu

Protected Properties

Свойство Type Description
$usenotepad

Méthodes publiques

Méthode Description
canCreateItem ( )
canUpdate ( )
canUpdateItem ( )
canViewItem ( )
cleanDBonPurge ( )
defineTabs ( $options = [] )
displayHeader ( )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
dropdownAutoAssignMode ( array $options )
executeAddRule ( $input )
generateLinkSatisfaction ( $ticket ) : url Generate link for ticket satisfaction
getAutoAssignMode ( $val = NULL ) : array get value for auto_assign_mode
getEntitiesToNotify ( $field ) : Array get all entities with a notification option set manage CONFIG_PARENT (or NULL) value
getEntityID ( ) : ID Get the ID of entity assigned to the object
getEntityIDByCompletename ( $value )
getEntityIDByDN ( $value )
getEntityIDByDomain ( $value )
getEntityIDByTag ( $value )
getForbiddenStandardMassiveAction ( )
getRights ( $interface = 'central' )
getSearchOptions ( )
getSpecificValueToDisplay ( $field, $values, array $options = [] )
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
getUsedConfig ( $fieldref, $entities_id, $fieldval = '', $default_value ) Retrieve data of current entity or parent entity
isEntityAssign ( )
isEntityDirectoryConfigured ( $entities_id )
isNewID ( $ID )
isRecursive ( ) : integer Is the object recursive
maybeRecursive ( )
post_addItem ( )
pre_deleteItem ( )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
showAdvancedOptions ( Entity $entity )
showHelpdeskOptions ( Entity $entity )
showInventoryOptions ( Entity $entity )
showNotificationOptions ( Entity $entity )
showSelector ( $target, $myname ) Display entities of the loaded profile
showStandardOptions ( Entity $entity )
title ( ) : nothing Print a good title for entity pages

Private Methods

Méthode Description
checkRightDatas ( $input ) : array Check right on each field before add / update
getEntityIDByField ( $field, $value )

Method Details

canCreateItem() public méthode

public canCreateItem ( )

canUpdate() static public méthode

static public canUpdate ( )

canUpdateItem() public méthode

public canUpdateItem ( )

canViewItem() public méthode

See also: CommonDBTM::canViewItem()
public canViewItem ( )

cleanDBonPurge() public méthode

public cleanDBonPurge ( )

defineTabs() public méthode

See also: CommonTreeDropdown::defineTabs()
public defineTabs ( $options = [] )

displayHeader() public méthode

public displayHeader ( )

displayTabContentForItem() static public méthode

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

dropdownAutoAssignMode() static public méthode

static public dropdownAutoAssignMode ( array $options )
$options array array

executeAddRule() public méthode

public executeAddRule ( $input )
$input array of values

generateLinkSatisfaction() static public méthode

Generate link for ticket satisfaction
static public generateLinkSatisfaction ( $ticket ) : url
$ticket ticket object
Résultat url contents

getAutoAssignMode() static public méthode

get value for auto_assign_mode
static public getAutoAssignMode ( $val = NULL ) : array
$val if not set, ask for all values, else for 1 value (default NULL)
Résultat array or string

getEntitiesToNotify() static public méthode

get all entities with a notification option set manage CONFIG_PARENT (or NULL) value
static public getEntitiesToNotify ( $field ) : Array
$field String name of the field to search (>0)
Résultat Array of id => value

getEntityID() public méthode

simply return ID
public getEntityID ( ) : ID
Résultat ID of the entity

getEntityIDByCompletename() static public méthode

static public getEntityIDByCompletename ( $value )
$value

getEntityIDByDN() static public méthode

static public getEntityIDByDN ( $value )
$value

getEntityIDByDomain() static public méthode

static public getEntityIDByDomain ( $value )
$value

getEntityIDByTag() static public méthode

static public getEntityIDByTag ( $value )
$value

getForbiddenStandardMassiveAction() public méthode

getRights() public méthode

See also: commonDBTM::getRights()
public getRights ( $interface = 'central' )

getSearchOptions() public méthode

public getSearchOptions ( )

getSpecificValueToDisplay() static public méthode

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

getSpecificValueToSelect() static public méthode

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

getTabNameForItem() public méthode

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

getTypeName() static public méthode

static public getTypeName ( $nb )

getUsedConfig() static public méthode

Retrieve data of current entity or parent entity
static public getUsedConfig ( $fieldref, $entities_id, $fieldval = '', $default_value )
$fieldref string name of the referent field to know if we look at parent entity
$entities_id
$fieldval string name of the field that we want value (default '')
$default_value value to return (default -2)

isEntityAssign() public méthode

public isEntityAssign ( )

isEntityDirectoryConfigured() static public méthode

static public isEntityDirectoryConfigured ( $entities_id )
$entities_id

isNewID() static public méthode

See also: CommonDBTM::isNewID()
static public isNewID ( $ID )

isRecursive() public méthode

Entity are always recursive
public isRecursive ( ) : integer
Résultat integer (0/1)

maybeRecursive() public méthode

public maybeRecursive ( )

post_addItem() public méthode

public post_addItem ( )

pre_deleteItem() public méthode

public pre_deleteItem ( )

prepareInputForAdd() public méthode

public prepareInputForAdd ( $input )

prepareInputForUpdate() public méthode

public prepareInputForUpdate ( $input )

showAdvancedOptions() static public méthode

static public showAdvancedOptions ( Entity $entity )
$entity Entity Entity object

showHelpdeskOptions() static public méthode

static public showHelpdeskOptions ( Entity $entity )
$entity Entity Entity object

showInventoryOptions() static public méthode

static public showInventoryOptions ( Entity $entity )
$entity Entity Entity object

showNotificationOptions() static public méthode

static public showNotificationOptions ( Entity $entity )
$entity Entity Entity object

showSelector() static public méthode

Display entities of the loaded profile
static public showSelector ( $target, $myname )
$target target for entity change action
$myname select name

showStandardOptions() static public méthode

static public showStandardOptions ( Entity $entity )
$entity Entity Entity object

title() public méthode

Print a good title for entity pages
public title ( ) : nothing
Résultat nothing (display)

Property Details

$dohistory public_oe property

public $dohistory

$first_level_menu public_oe property

public $first_level_menu

$must_be_replace public_oe property

public $must_be_replace

$rightname static_oe public_oe property

static public $rightname

$second_level_menu public_oe property

public $second_level_menu

$usenotepad protected_oe property

protected $usenotepad