PHP 클래스 Item_Devices, glpi

..
상속: extends CommonDBRelation
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$items_id_1
$itemtype_1
$log_history_1_add
$log_history_1_delete
$log_history_1_lock
$log_history_1_unlock
$log_history_1_update
$logs_for_item_2
$mustBeAttached_1
$no_form_page ..
$take_entity_1
$take_entity_2

보호된 프로퍼티들

프로퍼티 타입 설명
$forward_entity_to
$notable static public $checkItem_1_Rights = self::DONT_CHECK_ITEM_RIGHTS;

공개 메소드들

메소드 설명
addDevices ( $numberToAdd, $itemtype, $items_id, $devices_id, $input = [] )
addDevicesFromPOST ( $input ) Add one or several device(s) from front/item_devices.form.php.
affectItem_Device ( $item_devices_id, $items_id, $itemtype ) : boolean
canView ( )
cleanItemDeviceDBOnItemDelete ( $itemtype, $items_id, $unaffect )
cloneItem ( $itemtype, $oldid, $newid )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getConcernedItems ( ) : array Get all kind of items that can be used by Item_Device*
getConnexityMassiveActionsSpecificities ( )
getDeviceForeignKey ( )
getDeviceType ( ) : string Get associated device to the current item_device
getDeviceTypes ( ) : array Get all the kind of devices available inside the system.
getForbiddenStandardMassiveAction ( )
getItemAffinities ( $itemtype ) : array Get the Item_Device* a given item type can have
getRights ( $interface = 'central' )
getSearchOptions ( )
getSpecificities ( $specif = '' ) : array Get the specificities of the given device. For instance, the serial number, the size of the memory, the frequency of the CPUs .
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTableGroup ( CommonDBTM $item, HTMLTableMain $table, array $options, HTMLTableSuperHeader $delete_all_column = NULL, HTMLTableSuperHeader $common_column, HTMLTableSuperHeader $specific_column, HTMLTableSuperHeader $delete_column = NULL, $dynamic_column ) Get the group of elements regarding given item.
getTypeName ( $nb )
itemAffinity ( ) : array Get the items on which this Item_Device can be attached. For instance, a computer can have any kind of device. Conversely, a soundcard does not concern a NetworkEquipment
showForItem ( CommonGLPI $item, $withtemplate )
showForm ( $ID, $options = [] )
updateAll ( $input )

메소드 상세

addDevices() 공개 메소드

public addDevices ( $numberToAdd, $itemtype, $items_id, $devices_id, $input = [] )
$numberToAdd
$itemtype
$items_id
$devices_id
$input array to complete (permit to define values)

addDevicesFromPOST() 정적인 공개 메소드

Add one or several device(s) from front/item_devices.form.php.
static public addDevicesFromPOST ( $input )
$input array of input: should be $_POST

affectItem_Device() 정적인 공개 메소드

static public affectItem_Device ( $item_devices_id, $items_id, $itemtype ) : boolean
$item_devices_id
$items_id
$itemtype
리턴 boolean

canView() 정적인 공개 메소드

static public canView ( )

cleanItemDeviceDBOnItemDelete() 정적인 공개 메소드

static public cleanItemDeviceDBOnItemDelete ( $itemtype, $items_id, $unaffect )
$itemtype
$items_id
$unaffect

cloneItem() 정적인 공개 메소드

static public cloneItem ( $itemtype, $oldid, $newid )

defineTabs() 공개 메소드

또한 보기: CommonGLPI::defineTabs()
public defineTabs ( $options = [] )

displayTabContentForItem() 정적인 공개 메소드

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

getConcernedItems() 정적인 공개 메소드

Get all kind of items that can be used by Item_Device*
static public getConcernedItems ( ) : array
리턴 array of the available items

getConnexityMassiveActionsSpecificities() 정적인 공개 메소드

또한 보기: CommonDBConnexity::getConnexityMassiveActionsSpecificities()

getDeviceForeignKey() 정적인 공개 메소드

static public getDeviceForeignKey ( )

getDeviceType() 정적인 공개 메소드

Get associated device to the current item_device
static public getDeviceType ( ) : string
리턴 string containing the device

getDeviceTypes() 정적인 공개 메소드

This method is equivalent to getItemAffinities('')
static public getDeviceTypes ( ) : array
리턴 array of the types of Item_Device* available

getForbiddenStandardMassiveAction() 공개 메소드

또한 보기: CommonDBTM::getForbiddenStandardMassiveAction()

getItemAffinities() 정적인 공개 메소드

Get the Item_Device* a given item type can have
static public getItemAffinities ( $itemtype ) : array
$itemtype the type of the item that we want to know its devices
리턴 array of Item_Device*

getRights() 공개 메소드

또한 보기: commonDBTM::getRights()
public getRights ( $interface = 'central' )

getSearchOptions() 공개 메소드

또한 보기: CommonDBRelation::getSearchOptions()
public getSearchOptions ( )

getSpecificities() 정적인 공개 메소드

..
static public getSpecificities ( $specif = '' ) : array
$specif string specificity to display Should be overloaded by Item_Device*
리턴 array of the specificities: index is the field name and the values are the attributs of the specificity (long name, short name, size)

getTabNameForItem() 공개 메소드

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

getTableGroup() 공개 메소드

Two kind of item : - Device* feed by a link to the attached item (Computer, Printer ...) - Computer, Printer ...: feed by the "global" properties of the CommonDevice Then feed with the specificities of the Item_Device elements In cas of $item is an instance, then $options contains the type of the item (Computer, Printer ...).
public getTableGroup ( CommonDBTM $item, HTMLTableMain $table, array $options, HTMLTableSuperHeader $delete_all_column = NULL, HTMLTableSuperHeader $common_column, HTMLTableSuperHeader $specific_column, HTMLTableSuperHeader $delete_column = NULL, $dynamic_column )
$item CommonDBTM
$table HTMLTableMain
$options array array
$delete_all_column HTMLTableSuperHeader (default NULL)
$common_column HTMLTableSuperHeader
$specific_column HTMLTableSuperHeader
$delete_column HTMLTableSuperHeader (default NULL)
$dynamic_column

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

itemAffinity() 정적인 공개 메소드

Should be overloaded by Item_Device*
static public itemAffinity ( ) : array
리턴 array of the itemtype that can have this Item_Device

showForItem() 정적인 공개 메소드

static public showForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

showForm() 공개 메소드

public showForm ( $ID, $options = [] )

updateAll() 정적인 공개 메소드

static public updateAll ( $input )
$input array of input: should be $_POST

프로퍼티 상세

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

protected static $forward_entity_to

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

public static $items_id_1

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

public static $itemtype_1

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

public static $log_history_1_add

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

public static $log_history_1_delete

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

public static $log_history_1_lock

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

public static $log_history_1_unlock

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

public static $log_history_1_update

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

public static $logs_for_item_2

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

public static $mustBeAttached_1

$no_form_page 공개적으로 프로퍼티

..
public $no_form_page

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

static public $checkItem_1_Rights = self::DONT_CHECK_ITEM_RIGHTS;
protected static $notable

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

public static $take_entity_1

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

public static $take_entity_2