PHP Класс Printer, glpi

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

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

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

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

Свойство Тип Описание
$forward_entity_to
$usenotepad

Открытые методы

Метод Описание
addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '' ) Add a printer. If already exist in dustbin restore it
addPrinter ( $name, $manufacturer, $entity, $comment = '' ) : the Create a new printer
canUnrecurs ( ) : booleen Can I change recusvive flag to false check if there is "linked" object in another entity
cleanDBonPurge ( )
defineTabs ( $options = [] )
getLinkedItems ( ) : an Return the linked items (in computers_items)
getSearchOptions ( )
getSpecificMassiveActions ( $checkitem = NULL )
getTypeName ( $nb ) Name of the type
post_addItem ( )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
removeFromTrash ( $ID ) : boolean Restore a software from dustbin
showForm ( $ID, $options = [] ) : boolean Print the printer form
useDeletedToLockIfDynamic ( )

Описание методов

addOrRestoreFromTrash() публичный Метод

Add a printer. If already exist in dustbin restore it
public addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '' )
$name the printer's name (need to be addslashes)
$manufacturer the software's manufacturer (need to be addslashes)
$entity the entity in which the software must be added
$comment comment (default '')

addPrinter() публичный Метод

Create a new printer
public addPrinter ( $name, $manufacturer, $entity, $comment = '' ) : the
$name the printer's name (need to be addslashes)
$manufacturer the printer's manufacturer (need to be addslashes)
$entity the entity in which the printer must be added
$comment (default '')
Результат the printer's ID

canUnrecurs() публичный Метод

Overloaded from CommonDBTM
public canUnrecurs ( ) : booleen
Результат booleen

cleanDBonPurge() публичный Метод

public cleanDBonPurge ( )

defineTabs() публичный Метод

public defineTabs ( $options = [] )

getLinkedItems() публичный Метод

Return the linked items (in computers_items)
public getLinkedItems ( ) : an
Результат an array of linked items like array('Computer' => array(1,2), 'Printer' => array(5,6))

getSearchOptions() публичный Метод

public getSearchOptions ( )

getSpecificMassiveActions() публичный Метод

См. также: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )

getTypeName() статический публичный Метод

Name of the type
static public getTypeName ( $nb )
$nb : number of item in the type

post_addItem() публичный Метод

public post_addItem ( )

prepareInputForAdd() публичный Метод

public prepareInputForAdd ( $input )

prepareInputForUpdate() публичный Метод

public prepareInputForUpdate ( $input )

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 printer 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

useDeletedToLockIfDynamic() публичный Метод

См. также: CommonDBTM::useDeletedToLockIfDynamic()

Описание свойств

$dohistory публичное свойство

From CommonDBTM
public $dohistory

$forward_entity_to защищенное статическое свойство

protected static $forward_entity_to

$rightname статическое публичное свойство

static public $rightname

$usenotepad защищенное свойство

protected $usenotepad