Свойство | Тип | Описание | |
---|---|---|---|
$checkParentRights | |||
$dohistory | |||
$items_id | |||
$itemtype | From CommonDBChild | ||
$rightname |
Свойство | Тип | Описание | |
---|---|---|---|
$forward_entity_to |
Метод | Описание | |
---|---|---|
cleanDBonPurge ( ) | ||
cloneItem ( $itemtype, $old_items_id, $new_items_id ) | Clone the current NetworkPort when the item is clone | |
countForItem ( CommonDBTM $item ) | ||
defineTabs ( $options = [] ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getAvailableDisplayOptions ( ) : all | Get available display options array | |
getConnexityMassiveActionsSpecificities ( ) | ||
getContact ( $ID ) : ID | Get port opposite port ID if linked item | |
getForbiddenStandardMassiveAction ( ) | ||
getInstantiation ( ) : the | \brief get the instantiation of the current NetworkPort The instantiation rely on the instantiation_type field and the id of the NetworkPort. If the network port exists, but not its instantiation, then, the instantiation will be empty. | |
getNetworkPortInstantiations ( ) : array | \brief get the list of available network port type. | |
getNetworkPortInstantiationsWithNames ( ) | ||
getPreAdditionalInfosForName ( ) | ||
getSearchOptions ( ) | ||
getSearchOptionsToAdd ( $itemtype ) | ||
getSpecificMassiveActions ( $checkitem = NULL ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
post_addItem ( ) | ||
post_updateItem ( $history = 1 ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
resetConnections ( $ID ) : true | Delete All connection of the given network port | |
showForItem ( CommonDBTM $item, $withtemplate = '' ) | Show ports for an item | |
showForm ( $ID, $options = [] ) | ||
splitInputForElements ( $input ) | \brief split input fields when validating a port | |
switchInstantiationType ( $new_instantiation_type ) : false | Change the instantion type of a NetworkPort : check validity of the new type of instantiation and that it is not equal to current ones. Update the NetworkPort and delete the previous instantiation. It is up to the caller to create the new instantiation ! | |
updateDependencies ( $history = true ) | \brief update all related elements after adding or updating an element |
static public cloneItem ( $itemtype, $old_items_id, $new_items_id ) | ||
$itemtype | the type of the item that was clone | |
$old_items_id | the id of the item that was clone | |
$new_items_id | the id of the item after beeing cloned |
static public countForItem ( CommonDBTM $item ) | ||
$item | CommonDBTM |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public getAvailableDisplayOptions ( ) : all | ||
Результат | all | the options |
static public getConnexityMassiveActionsSpecificities ( ) |
public getContact ( $ID ) : ID | ||
$ID | networking port ID | |
Результат | ID | of the NetworkPort found, false if not found |
public getInstantiation ( ) : the | ||
Результат | the | instantiation object or false if the type of instantiation is not known |
static public getNetworkPortInstantiations ( ) : array | ||
Результат | array | of available type of network ports |
static public getNetworkPortInstantiationsWithNames ( ) |
static public getSearchOptionsToAdd ( $itemtype ) | ||
$itemtype |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public resetConnections ( $ID ) : true | ||
$ID | ID of the port | |
Результат | true | on success |
static public showForItem ( CommonDBTM $item, $withtemplate = '' ) | ||
$item | CommonDBTM | CommonDBTM object |
$withtemplate | integer withtemplate param (default '') |
public splitInputForElements ( $input ) | ||
$input |
public switchInstantiationType ( $new_instantiation_type ) : false | ||
$new_instantiation_type | the name of the new instaniation type | |
Результат | false | on error, true if the previous instantiation is not available (ie.: invalid instantiation type) or the object of the previous instantiation. |
public updateDependencies ( $history = true ) | ||
$history | (default 1) |