PHP 클래스 Computer_SoftwareVersion, glpi

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

공개 프로퍼티들

프로퍼티 타입 설명
$items_id_1
$items_id_2
$itemtype_1 From CommonDBRelation
$itemtype_2
$log_history_1_add
$log_history_1_delete
$log_history_2_add
$log_history_2_delete

공개 메소드들

메소드 설명
cloneComputer ( $oldid, $newid ) Duplicate all software from a computer template to its clone
countForSoftware ( $softwares_id ) : number Get number of installed versions of a software
countForVersion ( $softwareversions_id, $entity = '' ) : number Get number of installed licenses of a version
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
showForComputer ( Computer $comp, $withtemplate = '' ) : nothing Show software installed on a computer
showForSoftware ( Software $software ) : nothing Show installation of a Software
showForVersion ( SoftwareVersion $version ) : nothing Show installation of a Version
showForVersionByEntity ( SoftwareVersion $version ) : nothing Show number of installations per entity
showMassiveActionsSubForm ( MassiveAction $ma )
updateDatasForComputer ( $computers_id )
upgrade ( $instID, $softwareversions_id, $dohistory = 1 ) : nothing Update version installed on a computer

비공개 메소드들

메소드 설명
displaySoftsByLicense ( $data, $computers_id, $withtemplate, $canedit ) : nothing Display a software for a License (not installed)
showInstallations ( $searchID, $crit ) : nothing Show installations of a software
softsByCategory ( $data, $computers_id, $withtemplate, $canedit, $display ) : array Display a installed software for a category

메소드 상세

cloneComputer() 정적인 공개 메소드

Duplicate all software from a computer template to its clone
static public cloneComputer ( $oldid, $newid )
$oldid ID of the computer to clone
$newid ID of the computer cloned

countForSoftware() 정적인 공개 메소드

Get number of installed versions of a software
static public countForSoftware ( $softwares_id ) : number
$softwares_id software ID
리턴 number of installations

countForVersion() 정적인 공개 메소드

Get number of installed licenses of a version
static public countForVersion ( $softwareversions_id, $entity = '' ) : number
$softwareversions_id version ID
$entity to search for computer in (default '' = all active entities) (default '')
리턴 number of installations

displayTabContentForItem() 정적인 공개 메소드

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

getTabNameForItem() 공개 메소드

또한 보기: CommonGLPI::getTabNameForItem()
public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

prepareInputForAdd() 공개 메소드

public prepareInputForAdd ( $input )

prepareInputForUpdate() 공개 메소드

public prepareInputForUpdate ( $input )

processMassiveActionsForOneItemtype() 정적인 공개 메소드

또한 보기: CommonDBTM::processMassiveActionsForOneItemtype()
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
$ma MassiveAction
$item CommonDBTM
$ids array

showForComputer() 정적인 공개 메소드

Show software installed on a computer
static public showForComputer ( Computer $comp, $withtemplate = '' ) : nothing
$comp Computer Computer object
$withtemplate template case of the view process (default '')
리턴 nothing

showForSoftware() 정적인 공개 메소드

Show installation of a Software
static public showForSoftware ( Software $software ) : nothing
$software Software Software object
리턴 nothing

showForVersion() 정적인 공개 메소드

Show installation of a Version
static public showForVersion ( SoftwareVersion $version ) : nothing
$version SoftwareVersion SoftwareVersion object
리턴 nothing

showForVersionByEntity() 정적인 공개 메소드

Show number of installations per entity
static public showForVersionByEntity ( SoftwareVersion $version ) : nothing
$version SoftwareVersion SoftwareVersion object
리턴 nothing

showMassiveActionsSubForm() 정적인 공개 메소드

또한 보기: CommonDBTM::showMassiveActionsSubForm()
static public showMassiveActionsSubForm ( MassiveAction $ma )
$ma MassiveAction

updateDatasForComputer() 공개 메소드

public updateDatasForComputer ( $computers_id )
$computers_id

upgrade() 공개 메소드

Update version installed on a computer
public upgrade ( $instID, $softwareversions_id, $dohistory = 1 ) : nothing
$instID ID of the install software lienk
$softwareversions_id ID of the new version
$dohistory Do history ? (default 1)
리턴 nothing

프로퍼티 상세

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

public static $items_id_1

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

public static $items_id_2

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

From CommonDBRelation
public static $itemtype_1

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

public static $itemtype_2

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

public static $log_history_1_add

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

public static $log_history_1_delete

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

public static $log_history_2_add

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

public static $log_history_2_delete