PHP 클래스 NetworkName, glpi

represent the internet name of an element. It is compose of the name itself, its domain and one or several IP addresses (IPv4 and/or IPv6). An address can be affected to an item, or can be "free" to be reuse by another item (for instance, in case of maintenance, when you change the network card of a computer, but not its network information)
상속: extends FQDNLabel
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$canDeleteOnItemClean
$checkParentRights
$dohistory
$items_id
$itemtype From CommonDBChild
$mustBeAttached
$rightname

보호된 프로퍼티들

프로퍼티 타입 설명
$forward_entity_to

공개 메소드들

메소드 설명
affectAddress ( $networkNameID, $items_id, $itemtype )
cleanDBonPurge ( )
countForItem ( CommonDBTM $item )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getHTMLTableCellsForItem ( HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = [] )
getHTMLTableHeader ( $itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = [] )
getInternetNameFromID ( $ID ) : its Get the full name (internet name) of a NetworkName
getSearchOptions ( )
getSearchOptionsToAdd ( array &$tab, array $joinparams, $itemtype )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
post_addItem ( )
post_updateItem ( $history = 1 )
post_workOnItem ( ) \brief Update IPAddress database Update IPAddress database to remove old IPs and add new ones.
showForItem ( CommonDBTM $item, $withtemplate ) \brief Show names for an item from its form Beware that the rendering can be different if readden from direct item form (ie : add new NetworkName, remove, .
showForm ( $ID, $options = [] ) : Nothing Print the network name form
showFormForNetworkPort ( $networkPortID )
unaffectAddressByID ( $networkNameID ) \brief dettach an address from an item
unaffectAddressesOfItem ( $items_id, $itemtype ) \brief dettach an address from an item

메소드 상세

affectAddress() 정적인 공개 메소드

static public affectAddress ( $networkNameID, $items_id, $itemtype )
$networkNameID
$items_id
$itemtype

cleanDBonPurge() 공개 메소드

public cleanDBonPurge ( )

countForItem() 정적인 공개 메소드

static public countForItem ( CommonDBTM $item )
$item CommonDBTM CommonDBTM object

defineTabs() 공개 메소드

public defineTabs ( $options = [] )

displayTabContentForItem() 정적인 공개 메소드

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

getHTMLTableCellsForItem() 정적인 공개 메소드

static public getHTMLTableCellsForItem ( HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = [] )
$row HTMLTableRow HTMLTableRow object (default NULL)
$item CommonDBTM CommonDBTM object (default NULL)
$father HTMLTableCell HTMLTableCell object (default NULL)
$options array array

getHTMLTableHeader() 정적인 공개 메소드

static public getHTMLTableHeader ( $itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = [] )
$itemtype
$base HTMLTableBase HTMLTableBase object
$super HTMLTableSuperHeader HTMLTableSuperHeader object (default NULL
$father HTMLTableHeader HTMLTableHeader object (default NULL)
$options array array

getInternetNameFromID() 정적인 공개 메소드

Get the full name (internet name) of a NetworkName
static public getInternetNameFromID ( $ID ) : its
$ID ID of the NetworkName
리턴 its internet name, or empty string if invalid NetworkName

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSearchOptionsToAdd() 정적인 공개 메소드

static public getSearchOptionsToAdd ( array &$tab, array $joinparams, $itemtype )
$tab array array the array to fill
$joinparams array array
$itemtype

getTabNameForItem() 공개 메소드

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

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

post_addItem() 공개 메소드

public post_addItem ( )

post_updateItem() 공개 메소드

public post_updateItem ( $history = 1 )

post_workOnItem() 공개 메소드

\brief Update IPAddress database Update IPAddress database to remove old IPs and add new ones.
public post_workOnItem ( )

showForItem() 정적인 공개 메소드

..) or if readden from item of the item (for instance from the computer form through NetworkPort::ShowForItem).
static public showForItem ( CommonDBTM $item, $withtemplate )
$item CommonDBTM CommonGLPI object
$withtemplate integer withtemplate param (default 0)

showForm() 공개 메소드

Print the network name form
public showForm ( $ID, $options = [] ) : Nothing
$ID integer ID of the item
$options array - target for the Form - withtemplate template or basic computer
리턴 Nothing (display)

showFormForNetworkPort() 정적인 공개 메소드

static public showFormForNetworkPort ( $networkPortID )
$networkPortID

unaffectAddressByID() 정적인 공개 메소드

The address can be unaffected, and remain "free"
static public unaffectAddressByID ( $networkNameID )
$networkNameID the id of the NetworkName

unaffectAddressesOfItem() 정적인 공개 메소드

The address can be unaffected, and remain "free"
static public unaffectAddressesOfItem ( $items_id, $itemtype )
$items_id the id of the item
$itemtype the type of the item

프로퍼티 상세

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

public static $canDeleteOnItemClean

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

public static $checkParentRights

$dohistory 공개적으로 프로퍼티

public $dohistory

$forward_entity_to 보호되어 있는 정적으로 프로퍼티

protected static $forward_entity_to

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

public static $items_id

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

From CommonDBChild
public static $itemtype

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

public static $mustBeAttached

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

static public $rightname