PHP 클래스 Cartridge, glpi

또한 보기: CartridgeItem
저자: Julien Dombre
상속: extends CommonDBChild
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$dohistory
$items_id
$itemtype From CommonDBChild
$no_form_page

보호된 프로퍼티들

프로퍼티 타입 설명
$forward_entity_to From CommonDBTM

공개 메소드들

메소드 설명
backToStock ( array $input, $history = 1 ) send back to stock
countForCartridgeItem ( CartridgeItem $item )
countForPrinter ( Printer $item )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getCount ( $tID, $alarm_threshold, $nohtml ) : string Print the cartridge count HTML array for the cartridge item $tID
getCountForPrinter ( $pID, $nohtml ) : string Print the cartridge count HTML array for the printer $pID
getForbiddenStandardMassiveAction ( )
getNameField ( )
getNotificationParameters ( $entity ) Get notification parameters by entity
getOldNumber ( $tID ) : integer count how many old cartbridge for the cartridge item $tID
getOldNumberForPrinter ( $pID ) : integer count how many old cartbridge for theprinter $pID
getPreAdditionalInfosForName ( )
getRights ( $interface = 'central' )
getStatus ( $date_use, $date_out ) : string Get the dict value for the status of a cartridge
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTotalNumber ( $tID ) : integer count how many cartbridge for the cartridge item $tID
getTotalNumberForPrinter ( $pID ) : integer count how many cartbridge for the printer $pID
getTypeName ( $nb )
getUnusedNumber ( $tID ) : integer count how many cartbridge unused for the cartridge item $tID
getUsedNumber ( $tID ) : integer count how many cartridge used for the cartridge item $tID
getUsedNumberForPrinter ( $pID ) : integer count how many cartridge used for the printer $pID
install ( $pID, $tID ) : boolean Link a cartridge to a printer.
post_addItem ( )
post_updateItem ( $history = 1 )
prepareInputForAdd ( $input )
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
showAddForm ( CartridgeItem $cartitem ) : Nothing Print out a link to add directly a new cartridge from a cartridge item.
showForCartridgeItem ( CartridgeItem $cartitem, $show_old ) : Nothing Print out the cartridges of a defined type
showForPrinter ( Printer $printer, $old ) : nothing Show installed cartridges
showForm ( $ID, $options = [] ) form for Cartridge
showMassiveActionsSubForm ( MassiveAction $ma )
uninstall ( $ID ) : boolean UnLink a cartridge linked to a printer

메소드 상세

backToStock() 공개 메소드

send back to stock
public backToStock ( array $input, $history = 1 )
$input array

countForCartridgeItem() 정적인 공개 메소드

static public countForCartridgeItem ( CartridgeItem $item )
$item CartridgeItem

countForPrinter() 정적인 공개 메소드

static public countForPrinter ( Printer $item )
$item Printer Printer object

displayTabContentForItem() 정적인 공개 메소드

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

getCount() 정적인 공개 메소드

Print the cartridge count HTML array for the cartridge item $tID
static public getCount ( $tID, $alarm_threshold, $nohtml ) : string
$tID integer: cartridge item identifier.
$alarm_threshold integer: threshold alarm value.
$nohtml integer: Return value without HTML tags (default 0)
리턴 string to display

getCountForPrinter() 정적인 공개 메소드

Print the cartridge count HTML array for the printer $pID
static public getCountForPrinter ( $pID, $nohtml ) : string
$pID integer: printer identifier.
$nohtml integer: Return value without HTML tags (default 0)
리턴 string to display

getForbiddenStandardMassiveAction() 공개 메소드

getNameField() 정적인 공개 메소드

또한 보기: CommonDBTM::getNameField()
static public getNameField ( )

getNotificationParameters() 정적인 공개 메소드

Get notification parameters by entity
static public getNotificationParameters ( $entity )

getOldNumber() 정적인 공개 메소드

count how many old cartbridge for the cartridge item $tID
static public getOldNumber ( $tID ) : integer
$tID integer: cartridge item identifier.
리턴 integer : number of old cartridge counted.

getOldNumberForPrinter() 정적인 공개 메소드

count how many old cartbridge for theprinter $pID
static public getOldNumberForPrinter ( $pID ) : integer
$pID integer: printer identifier.
리턴 integer : number of old cartridge counted.

getPreAdditionalInfosForName() 공개 메소드

또한 보기: CommonDBTM::getPreAdditionalInfosForName

getRights() 공개 메소드

public getRights ( $interface = 'central' )

getStatus() 정적인 공개 메소드

Get the dict value for the status of a cartridge
static public getStatus ( $date_use, $date_out ) : string
$date_use date : date of use
$date_out date : date of delete
리턴 string : dict value for the cartridge status.

getTabNameForItem() 공개 메소드

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

getTotalNumber() 정적인 공개 메소드

count how many cartbridge for the cartridge item $tID
static public getTotalNumber ( $tID ) : integer
$tID integer: cartridge item identifier.
리턴 integer : number of cartridge counted.

getTotalNumberForPrinter() 정적인 공개 메소드

count how many cartbridge for the printer $pID
static public getTotalNumberForPrinter ( $pID ) : integer
$pID integer: printer identifier.
리턴 integer : number of cartridge counted.

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

getUnusedNumber() 정적인 공개 메소드

count how many cartbridge unused for the cartridge item $tID
static public getUnusedNumber ( $tID ) : integer
$tID integer: cartridge item identifier.
리턴 integer : number of cartridge unused counted.

getUsedNumber() 정적인 공개 메소드

count how many cartridge used for the cartridge item $tID
static public getUsedNumber ( $tID ) : integer
$tID integer: cartridge item identifier.
리턴 integer : number of cartridge used counted.

getUsedNumberForPrinter() 정적인 공개 메소드

count how many cartridge used for the printer $pID
static public getUsedNumberForPrinter ( $pID ) : integer
$pID integer: printer identifier.
리턴 integer : number of cartridge used counted.

install() 공개 메소드

Link the first unused cartridge of type $Tid to the printer $pID
public install ( $pID, $tID ) : boolean
$pID : printer identifier
$tID : cartridge type identifier
리턴 boolean : true for success

post_addItem() 공개 메소드

public post_addItem ( )

post_updateItem() 공개 메소드

public post_updateItem ( $history = 1 )

prepareInputForAdd() 공개 메소드

public prepareInputForAdd ( $input )

processMassiveActionsForOneItemtype() 정적인 공개 메소드

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

showAddForm() 정적인 공개 메소드

Print out a link to add directly a new cartridge from a cartridge item.
static public showAddForm ( CartridgeItem $cartitem ) : Nothing
$cartitem CartridgeItem CartridgeItem object
리턴 Nothing (displays)

showForCartridgeItem() 정적인 공개 메소드

Print out the cartridges of a defined type
static public showForCartridgeItem ( CartridgeItem $cartitem, $show_old ) : Nothing
$cartitem CartridgeItem object of CartridgeItem class
$show_old boolean show old cartridges or not (default 0)
리턴 Nothing (displays)

showForPrinter() 정적인 공개 메소드

Show installed cartridges
static public showForPrinter ( Printer $printer, $old ) : nothing
$printer Printer Printer object
$old boolean old cartridges or not ? (default 0)
리턴 nothing (display)

showForm() 공개 메소드

form for Cartridge
public showForm ( $ID, $options = [] )
$ID integer Id of the cartridge
$options array of possible options: - parent Object : the printers where the cartridge is used

showMassiveActionsSubForm() 정적인 공개 메소드

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

uninstall() 공개 메소드

UnLink the cartridge identified by $ID
public uninstall ( $ID ) : boolean
$ID : cartridge identifier
리턴 boolean

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

public $dohistory

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

From CommonDBTM
protected static $forward_entity_to

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

public static $items_id

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

From CommonDBChild
public static $itemtype

$no_form_page 공개적으로 프로퍼티

public $no_form_page