PHP Class Document_Item, glpi

Relation between Documents and Items
Inheritance: extends CommonDBRelation
Mostrar archivo Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$items_id_1
$items_id_2
$itemtype_1 From CommonDBRelation
$itemtype_2
$take_entity_1
$take_entity_2

Public Methods

Method Description
canCreateItem ( )
cloneItem ( $itemtype, $oldid, $newid, $newitemtype = '' ) Duplicate documents from an item template to its clone
countForDocument ( Document $item )
countForItem ( CommonDBTM $item )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getForbiddenStandardMassiveAction ( )
getRelationMassiveActionsPeerForSubForm ( MassiveAction $ma )
getRelationMassiveActionsSpecificities ( )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
post_addItem ( )
post_purgeItem ( )
pre_deleteItem ( )
prepareInputForAdd ( $input )
showAddFormForItem ( CommonDBTM $item, $withtemplate = '', $options = [] ) : boolean
showForDocument ( Document $doc ) : nothing Show items links to a document
showForItem ( CommonDBTM $item, $withtemplate = '' ) Show documents associated to an item
showListForItem ( CommonDBTM $item, $withtemplate = '', $options = [] )
showSimpleAddForItem ( CommonDBTM $item, $withtemplate = '', $colspan = 1 )

Method Details

canCreateItem() public method

See also: CommonDBRelation::canCreateItem()
public canCreateItem ( )

cloneItem() static public method

Duplicate documents from an item template to its clone
static public cloneItem ( $itemtype, $oldid, $newid, $newitemtype = '' )
$itemtype itemtype of the item
$oldid ID of the item to clone
$newid ID of the item cloned
$newitemtype itemtype of the new item (= $itemtype if empty) (default '')

countForDocument() static public method

static public countForDocument ( Document $item )
$item Document Document object

countForItem() static public method

static public countForItem ( CommonDBTM $item )
$item CommonDBTM CommonDBTM object

displayTabContentForItem() static public method

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

getForbiddenStandardMassiveAction() public method

getRelationMassiveActionsPeerForSubForm() static public method

See also: CommonDBRelation::getRelationMassiveActionsPeerForSubForm()
static public getRelationMassiveActionsPeerForSubForm ( MassiveAction $ma )
$ma MassiveAction

getRelationMassiveActionsSpecificities() static public method

See also: CommonDBRelation::getRelationMassiveActionsSpecificities()

getTabNameForItem() public method

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

post_addItem() public method

public post_addItem ( )

post_purgeItem() public method

See also: CommonDBTM::post_purgeItem()
public post_purgeItem ( )

pre_deleteItem() public method

See also: CommonDBTM::pre_deleteItem()
public pre_deleteItem ( )

prepareInputForAdd() public method

public prepareInputForAdd ( $input )

showAddFormForItem() static public method

static public showAddFormForItem ( CommonDBTM $item, $withtemplate = '', $options = [] ) : boolean
$item CommonDBTM
$withtemplate (default '')
$options array
return boolean

showForDocument() static public method

Show items links to a document
static public showForDocument ( Document $doc ) : nothing
$doc Document Document object
return nothing (HTML display)

showForItem() static public method

Show documents associated to an item
static public showForItem ( CommonDBTM $item, $withtemplate = '' )
$item CommonDBTM CommonDBTM object for which associated documents must be displayed
$withtemplate (default '')

showListForItem() static public method

static public showListForItem ( CommonDBTM $item, $withtemplate = '', $options = [] )
$item CommonDBTM
$withtemplate (default '')
$options array

showSimpleAddForItem() static public method

static public showSimpleAddForItem ( CommonDBTM $item, $withtemplate = '', $colspan = 1 )
$item CommonDBTM
$withtemplate (default '')
$colspan

Property Details

$items_id_1 public_oe static_oe property

public static $items_id_1

$items_id_2 public_oe static_oe property

public static $items_id_2

$itemtype_1 public_oe static_oe property

From CommonDBRelation
public static $itemtype_1

$itemtype_2 public_oe static_oe property

public static $itemtype_2

$take_entity_1 public_oe static_oe property

public static $take_entity_1

$take_entity_2 public_oe static_oe property

public static $take_entity_2