PHP 클래스 Printer, glpi

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

공개 프로퍼티들

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

보호된 프로퍼티들

프로퍼티 타입 설명
$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