PHP Class Transfer, glpi

The followings are the available columns in table 'transfer':
Inheritance: extends HMSActiveRecord
Datei anzeigen Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$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

Public Methods

Method Description
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

Method Details

addNotToBeTransfer() public method

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

addToAlreadyTransfer() public method

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

addToBeTransfer() public method

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

cleanSoftwareVersions() public method

cleanSoftwares() public method

public cleanSoftwares ( )

copySingleSoftware() public method

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

copySingleVersion() public method

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

createSearchConditionUsingArray() public method

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

defineTabs() public method

See also: CommonGLPI::defineTabs()
public defineTabs ( $options = [] )

deleteDirectConnection() public method

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

getSearchOptions() public method

public getSearchOptions ( )

manageConnectionComputer() public method

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() public method

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

showForm() public method

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
return boolean item found

showTransferList() public method

Display items to transfers
public showTransferList ( )

simulateTransfer() public method

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

transferAffectedLicense() public method

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

transferCompatiblePrinters() public method

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() public method

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

transferComputerSoftwares() public method

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

transferContracts() public method

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() public method

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() public method

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() public method

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() public method

Transfer location
public transferDropdownLocation ( $locID ) : new
$locID location ID
return new location ID

transferDropdownNetpoint() public method

Transfer netpoint
public transferDropdownNetpoint ( $netpoints_id ) : new
$netpoints_id netpoint ID
return new netpoint ID

transferHelpdeskAdditionalInformations() public method

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

transferHistory() public method

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() public method

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() public method

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)
return nothing (diplays)

transferLinkedSuppliers() public method

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() public method

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

transferReservations() public method

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() public method

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

transferSoftwareLicensesAndVersions() public method

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

transferSupplierContacts() public method

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

transferTaskCategory() public method

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

transferTickets() public method

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

Property Details

$already_transfer public_oe property

Already transfer item
public $already_transfer

$inittype public_oe property

type of initial item transfered
public $inittype

$item_recurs public_oe property

Search in need to be exclude from transfer
public $item_recurs

$needtobe_transfer public_oe property

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

$noneedtobe_transfer public_oe property

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

$options public_oe property

Options used to transfer
public $options

$rightname static_oe public_oe property

static public $rightname

$to public_oe property

Destination entity id
public $to