PHP 클래스 Transfer, glpi

The followings are the available columns in table 'transfer':
상속: extends HMSActiveRecord
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$already_transfer Already transfer item
$inittype type of initial item transfered
$item_recurs Search in need to be exclude from transfer
$item_search Search in need to be transfer items
$needtobe_transfer Items simulate to move - non recursive item or recursive item not visible in destination entity
$noneedtobe_transfer Items simulate to move - recursive item visible in destination entity
$options Options used to transfer
$rightname
$to Destination entity id

공개 메소드들

메소드 설명
addNotToBeTransfer ( $itemtype, $ID ) Add an item in the noneedtobe_transfer list
addToAlreadyTransfer ( $itemtype, $ID, $newID ) Add an item to already transfer array
addToBeTransfer ( $itemtype, $ID ) Add an item in the needtobe_transfer list
cleanSoftwareVersions ( )
cleanSoftwares ( )
copySingleSoftware ( $ID ) Copy (if needed) One software to the destination entity
copySingleVersion ( $ID ) Copy (if needed) One softwareversion to the Dest Entity
createSearchConditionUsingArray ( $array ) : string Create IN condition for SQL requests based on a array if ID
defineTabs ( $options = [] )
deleteDirectConnection ( $itemtype, $ID ) Delete direct connection for a linked item
getSearchOptions ( )
manageConnectionComputer ( $itemtype, $ID ) Delete direct connection beetween an item and a computer when transfering the item
moveItems ( $items, $to, $options ) Transfer items
showForm ( $ID, $options = [] ) : boolean Print the transfer form
showTransferList ( ) Display items to transfers
simulateTransfer ( $items ) simulate the transfer to know which items need to be transfer
transferAffectedLicense ( $ID ) Transfer affected licenses to a computer
transferCompatiblePrinters ( $ID, $newID ) Transfer compatible printers for a cartridge type
transferComputerDisks ( $ID ) Transfer disks of a computer
transferComputerSoftwares ( $ID ) Transfer softwares of a computer
transferContracts ( $itemtype, $ID, $newID ) Transfer contracts
transferDevices ( $itemtype, $ID, $newID ) Transfer devices of an item
transferDirectConnection ( $itemtype, $ID, $link_type ) Delete direct connection for a linked item
transferDocuments ( $itemtype, $ID, $newID ) Transfer documents
transferDropdownLocation ( $locID ) : new Transfer location
transferDropdownNetpoint ( $netpoints_id ) : new Transfer netpoint
transferHelpdeskAdditionalInformations ( $data ) Transfer ticket/problem infos
transferHistory ( $itemtype, $ID, $newID ) Transfer history
transferInfocoms ( $itemtype, $ID, $newID ) Transfer infocoms of an item
transferItem ( $itemtype, $ID, $newID ) : nothing transfer an item to another item (may be the same) in the new entity
transferLinkedSuppliers ( $itemtype, $ID, $newID ) Transfer suppliers for specified tickets or problems
transferNetworkLink ( $itemtype, $ID, $newID ) Transfer network links
transferPrinterCartridges ( $ID, $newID ) Transfer cartridges of a printer
transferReservations ( $itemtype, $ID, $newID ) Transfer reservations of an item
transferSingleSupplier ( $ID ) Transfer an enterprise
transferSoftwareLicensesAndVersions ( $ID ) Transfer License and Version of a Software
transferSupplierContacts ( $ID, $newID ) Transfer contacts of an enterprise
transferTaskCategory ( $itemtype, $ID, $newID ) Transfer task categories for specified tickets
transferTickets ( $itemtype, $ID, $newID ) Transfer tickets

메소드 상세

addNotToBeTransfer() 공개 메소드

Add an item in the noneedtobe_transfer list
public addNotToBeTransfer ( $itemtype, $ID )
$itemtype of the item
$ID of the item

addToAlreadyTransfer() 공개 메소드

Add an item to already transfer array
public addToAlreadyTransfer ( $itemtype, $ID, $newID )
$itemtype item type
$ID item original ID
$newID item new ID

addToBeTransfer() 공개 메소드

Add an item in the needtobe_transfer list
public addToBeTransfer ( $itemtype, $ID )
$itemtype of the item
$ID of the item

cleanSoftwareVersions() 공개 메소드

cleanSoftwares() 공개 메소드

public cleanSoftwares ( )

copySingleSoftware() 공개 메소드

Copy (if needed) One software to the destination entity
public copySingleSoftware ( $ID )
$ID of the software

copySingleVersion() 공개 메소드

Copy (if needed) One softwareversion to the Dest Entity
public copySingleVersion ( $ID )
$ID of the version

createSearchConditionUsingArray() 공개 메소드

Create IN condition for SQL requests based on a array if ID
public createSearchConditionUsingArray ( $array ) : string
$array array of ID
리턴 string of the IN condition

defineTabs() 공개 메소드

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

deleteDirectConnection() 공개 메소드

Delete direct connection for a linked item
public deleteDirectConnection ( $itemtype, $ID )
$itemtype item type
$ID ID of the item

getSearchOptions() 공개 메소드

public getSearchOptions ( )

manageConnectionComputer() 공개 메소드

Delete direct connection beetween an item and a computer when transfering the item
public manageConnectionComputer ( $itemtype, $ID )
$itemtype itemtype to tranfer
$ID ID of the item

moveItems() 공개 메소드

Transfer items
public moveItems ( $items, $to, $options )
$items items to transfer
$to entity destination ID
$options options used to transfer

showForm() 공개 메소드

Print the transfer form
public showForm ( $ID, $options = [] ) : boolean
$ID integer : Id of the contact to print
$options array - target filename : where to go when done. - withtemplate boolean : template or basic item
리턴 boolean item found

showTransferList() 공개 메소드

Display items to transfers
public showTransferList ( )

simulateTransfer() 공개 메소드

simulate the transfer to know which items need to be transfer
public simulateTransfer ( $items )
$items Array of the items to transfer

transferAffectedLicense() 공개 메소드

Transfer affected licenses to a computer
public transferAffectedLicense ( $ID )
$ID ID of the License

transferCompatiblePrinters() 공개 메소드

Transfer compatible printers for a cartridge type
public transferCompatiblePrinters ( $ID, $newID )
$ID original ID of the cartridge type
$newID new ID of the cartridge type

transferComputerDisks() 공개 메소드

Transfer disks of a computer
public transferComputerDisks ( $ID )
$ID ID of the computer

transferComputerSoftwares() 공개 메소드

Transfer softwares of a computer
public transferComputerSoftwares ( $ID )
$ID ID of the computer

transferContracts() 공개 메소드

Transfer contracts
public transferContracts ( $itemtype, $ID, $newID )
$itemtype original type of transfered item
$ID original ID of the contract
$newID new ID of the contract

transferDevices() 공개 메소드

Transfer devices of an item
public transferDevices ( $itemtype, $ID, $newID )
$itemtype original type of transfered item
$ID ID of the item
$newID new ID of the item

transferDirectConnection() 공개 메소드

Delete direct connection for a linked item
public transferDirectConnection ( $itemtype, $ID, $link_type )
$itemtype original type of transfered item
$ID ID of the item
$link_type type of the linked items to transfer

transferDocuments() 공개 메소드

Transfer documents
public transferDocuments ( $itemtype, $ID, $newID )
$itemtype original type of transfered item
$ID original ID of the document
$newID new ID of the document

transferDropdownLocation() 공개 메소드

Transfer location
public transferDropdownLocation ( $locID ) : new
$locID location ID
리턴 new location ID

transferDropdownNetpoint() 공개 메소드

Transfer netpoint
public transferDropdownNetpoint ( $netpoints_id ) : new
$netpoints_id netpoint ID
리턴 new netpoint ID

transferHelpdeskAdditionalInformations() 공개 메소드

Transfer ticket/problem infos
public transferHelpdeskAdditionalInformations ( $data )
$data ticket data fields

transferHistory() 공개 메소드

Transfer history
public transferHistory ( $itemtype, $ID, $newID )
$itemtype original type of transfered item
$ID original ID of the history
$newID new ID of the history

transferInfocoms() 공개 메소드

Transfer infocoms of an item
public transferInfocoms ( $itemtype, $ID, $newID )
$itemtype type of the item to transfer
$ID original ID of the item
$newID new ID of the item

transferItem() 공개 메소드

transfer an item to another item (may be the same) in the new entity
public transferItem ( $itemtype, $ID, $newID ) : nothing
$itemtype item type to transfer
$ID ID of the item to transfer
$newID new ID of the ite Transfer item to a new Item if $ID==$newID : only update entities_id field : $ID!=$new ID -> copy datas (like template system)
리턴 nothing (diplays)

transferLinkedSuppliers() 공개 메소드

Transfer suppliers for specified tickets or problems
public transferLinkedSuppliers ( $itemtype, $ID, $newID )
$itemtype itemtype : Problem / Ticket
$ID original ticket ID
$newID new ticket ID

transferPrinterCartridges() 공개 메소드

Transfer cartridges of a printer
public transferPrinterCartridges ( $ID, $newID )
$ID original ID of the printer
$newID new ID of the printer

transferReservations() 공개 메소드

Transfer reservations of an item
public transferReservations ( $itemtype, $ID, $newID )
$itemtype original type of transfered item
$ID original ID of the item
$newID new ID of the item

transferSingleSupplier() 공개 메소드

Transfer an enterprise
public transferSingleSupplier ( $ID )
$ID ID of the enterprise

transferSoftwareLicensesAndVersions() 공개 메소드

Transfer License and Version of a Software
public transferSoftwareLicensesAndVersions ( $ID )
$ID ID of the Software

transferSupplierContacts() 공개 메소드

Transfer contacts of an enterprise
public transferSupplierContacts ( $ID, $newID )
$ID original ID of the enterprise
$newID new ID of the enterprise

transferTaskCategory() 공개 메소드

Transfer task categories for specified tickets
public transferTaskCategory ( $itemtype, $ID, $newID )
$itemtype itemtype : Problem / Ticket
$ID original ticket ID
$newID new ticket ID

transferTickets() 공개 메소드

Transfer tickets
public transferTickets ( $itemtype, $ID, $newID )
$itemtype type of transfered item
$ID original ID of the ticket
$newID new ID of the ticket

프로퍼티 상세

$already_transfer 공개적으로 프로퍼티

Already transfer item
public $already_transfer

$inittype 공개적으로 프로퍼티

type of initial item transfered
public $inittype

$item_recurs 공개적으로 프로퍼티

Search in need to be exclude from transfer
public $item_recurs

$needtobe_transfer 공개적으로 프로퍼티

Items simulate to move - non recursive item or recursive item not visible in destination entity
public $needtobe_transfer

$noneedtobe_transfer 공개적으로 프로퍼티

Items simulate to move - recursive item visible in destination entity
public $noneedtobe_transfer

$options 공개적으로 프로퍼티

Options used to transfer
public $options

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

static public $rightname

$to 공개적으로 프로퍼티

Destination entity id
public $to