List of all members.

Public Member Functions

 getForbiddenStandardMassiveAction ()
 getSearchOptions ()
 Get search function for the class.
 unassignVlan ($portID, $vlanID)
 assignVlan ($port, $vlan, $tagged)
 getTabNameForItem (CommonGLPI $item, $withtemplate=0)
 Get Tab Name used for itemtype.

Static Public Member Functions

static showForNetworkPort (NetworkPort $port)
static getVlansForNetworkPort ($portID)
static displayTabContentForItem (CommonGLPI $item, $tabnum=1, $withtemplate=0)
 show Tab content

Static Public Attributes

static $itemtype_1 = 'NetworkPort'
static $items_id_1 = 'networkports_id'
static $itemtype_2 = 'Vlan'
static $items_id_2 = 'vlans_id'
static $checkItem_2_Rights = self::HAVE_VIEW_RIGHT_ON_ITEM

Detailed Description

Definition at line 39 of file networkport_vlan.class.php.


Member Function Documentation

assignVlan ( port,
vlan,
tagged 
)
Parameters:
$port
$vlan
$tagged

Definition at line 91 of file networkport_vlan.class.php.

References $input, and CommonDBTM\add().

static displayTabContentForItem ( CommonGLPI item,
tabnum = 1,
withtemplate = 0 
) [static]

show Tab content

Since:
version 0.83
Parameters:
$itemCommonGLPI object for which the tab need to be displayed
$tabnuminteger tab number (default 1)
$withtemplateboolean is a template object ? (default 0)
Returns:
true

Reimplemented from CommonGLPI.

Definition at line 239 of file networkport_vlan.class.php.

References CommonGLPI\getType(), and showForNetworkPort().

Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 53 of file networkport_vlan.class.php.

Get search function for the class.

Returns:
array of search option

Reimplemented from CommonDBRelation.

Definition at line 66 of file networkport_vlan.class.php.

getTabNameForItem ( CommonGLPI item,
withtemplate = 0 
)

Get Tab Name used for itemtype.

NB : Only called for existing object Must check right on what will be displayed + template

Since:
version 0.83
Parameters:
$itemCommonDBTM object for which the tab need to be displayed
$withtemplateboolean is a template object ? (default 0)
Returns:
string tab name

Reimplemented from CommonGLPI.

Definition at line 221 of file networkport_vlan.class.php.

References $_SESSION, countElementsInTable(), CommonGLPI\createTabEntry(), CommonDBTM\getTable(), CommonGLPI\getType(), Vlan\getTypeName(), and CommonGLPI\getTypeName().

static getVlansForNetworkPort ( portID) [static]
Parameters:
$portID

Definition at line 206 of file networkport_vlan.class.php.

References $DB, and $query.

unassignVlan ( portID,
vlanID 
)
Parameters:
$portID
$vlanID

Definition at line 77 of file networkport_vlan.class.php.

References CommonDBTM\getFromDBByQuery().


Member Data Documentation

$checkItem_2_Rights = self::HAVE_VIEW_RIGHT_ON_ITEM [static]

Reimplemented from CommonDBRelation.

Definition at line 47 of file networkport_vlan.class.php.

$items_id_1 = 'networkports_id' [static]

Reimplemented from CommonDBRelation.

Definition at line 43 of file networkport_vlan.class.php.

$items_id_2 = 'vlans_id' [static]

Reimplemented from CommonDBRelation.

Definition at line 46 of file networkport_vlan.class.php.

$itemtype_1 = 'NetworkPort' [static]

Reimplemented from CommonDBRelation.

Definition at line 42 of file networkport_vlan.class.php.

$itemtype_2 = 'Vlan' [static]

Reimplemented from CommonDBRelation.

Definition at line 45 of file networkport_vlan.class.php.


The documentation for this class was generated from the following file: