PHP 클래스 Software, glpi

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

공개 프로퍼티들

프로퍼티 타입 설명
$dohistory From CommonDBTM
$rightname

보호된 프로퍼티들

프로퍼티 타입 설명
$forward_entity_to
$usenotepad

공개 메소드들

메소드 설명
addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '', $is_recursive = false, $is_helpdesk_visible = NULL ) Add a software. If already exist in dustbin restore it
addSoftware ( $name, $manufacturer_id, $entity, $comment = '', $is_recursive = false, $is_helpdesk_visible = NULL ) : the Create a new software
cleanDBonPurge ( )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
dropdownLicenseToInstall ( $myname, $entity_restrict ) : nothing Make a select box for license software to associate
dropdownSoftwareToInstall ( $myname, $entity_restrict ) : nothing Make a select box for software to install
getEmpty ( )
getMenuShorcut ( )
getSearchOptions ( )
getSpecificMassiveActions ( $checkitem = NULL )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
merge ( $item ) : boolean Merge softwares with current
post_addItem ( )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
putInTrash ( $ID, $comment = '' ) : boolean Put software in dustbin because it's been removed by GLPI software dictionnary
removeFromTrash ( $ID ) : boolean Restore a software from dustbin
showForm ( $ID, $options = [] ) : boolean Print the Software form
showMergeCandidates ( ) : nothing Show softwares candidates to be merged with the current
updateValidityIndicator ( $ID ) : nothing Update validity indicator of a specific software

메소드 상세

addOrRestoreFromTrash() 공개 메소드

Add a software. If already exist in dustbin restore it
public addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '', $is_recursive = false, $is_helpdesk_visible = NULL )

addSoftware() 공개 메소드

Create a new software
public addSoftware ( $name, $manufacturer_id, $entity, $comment = '', $is_recursive = false, $is_helpdesk_visible = NULL ) : the
리턴 the software's ID

cleanDBonPurge() 공개 메소드

public cleanDBonPurge ( )

defineTabs() 공개 메소드

public defineTabs ( $options = [] )

displayTabContentForItem() 정적인 공개 메소드

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

dropdownLicenseToInstall() 정적인 공개 메소드

Make a select box for license software to associate
static public dropdownLicenseToInstall ( $myname, $entity_restrict ) : nothing
$myname select name
$entity_restrict restrict to a defined entity
리턴 nothing (print out an HTML select box)

dropdownSoftwareToInstall() 정적인 공개 메소드

Make a select box for software to install
static public dropdownSoftwareToInstall ( $myname, $entity_restrict ) : nothing
$myname select name
$entity_restrict restrict to a defined entity
리턴 nothing (print out an HTML select box)

getEmpty() 공개 메소드

public getEmpty ( )

getMenuShorcut() 정적인 공개 메소드

또한 보기: CommonGLPI::getMenuShorcut() @since version 0.85
static public getMenuShorcut ( )

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSpecificMassiveActions() 공개 메소드

또한 보기: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )

getTabNameForItem() 공개 메소드

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

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

merge() 공개 메소드

Merge softwares with current
public merge ( $item ) : boolean
$item array of software ID to be merged
리턴 boolean about success

post_addItem() 공개 메소드

public post_addItem ( )

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

putInTrash() 공개 메소드

Put software in dustbin because it's been removed by GLPI software dictionnary
public putInTrash ( $ID, $comment = '' ) : boolean
$ID the ID of the software to put in dustbin
$comment the comment to add to the already existing software's comment (default '')
리턴 boolean (success)

removeFromTrash() 공개 메소드

Restore a software from dustbin
public removeFromTrash ( $ID ) : boolean
$ID the ID of the software to put in dustbin
리턴 boolean (success)

showForm() 공개 메소드

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

showMergeCandidates() 공개 메소드

Show softwares candidates to be merged with the current
public showMergeCandidates ( ) : nothing
리턴 nothing

updateValidityIndicator() 정적인 공개 메소드

Update validity indicator of a specific software
static public updateValidityIndicator ( $ID ) : nothing
$ID ID of the licence
리턴 nothing

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

From CommonDBTM
public $dohistory

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

protected static $forward_entity_to

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

static public $rightname

$usenotepad 보호되어 있는 프로퍼티

protected $usenotepad