PHP Класс Software, glpi

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$dohistory From CommonDBTM
$rightname

Защищенные свойства (Protected)

Свойство Тип Описание
$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