List of all members.

Public Member Functions

 getForbiddenStandardMassiveAction ()
 prepareInputForAdd ($input)
 post_addItem ()
 Actions done after the ADD of the item in the database.
 post_purgeItem ()
 Actions done after the PURGE of the item in the database.
 getTabNameForItem (CommonGLPI $item, $withtemplate=0)
 Get Tab Name used for itemtype.

Static Public Member Functions

static countForItem (CommonDBTM $item)
static countForDocument (Document $item)
static displayTabContentForItem (CommonGLPI $item, $tabnum=1, $withtemplate=0)
 show Tab content
static cloneItem ($itemtype, $oldid, $newid, $newitemtype='')
 Duplicate documents from an item template to its clone.
static showForDocument (Document $doc)
 Show items links to a document.
static showForItem (CommonDBTM $item, $withtemplate='')
 Show documents associated to an item.

Static Public Attributes

static $itemtype_1 = 'Document'
static $items_id_1 = 'documents_id'
static $take_entity_1 = false
static $itemtype_2 = 'itemtype'
static $items_id_2 = 'items_id'
static $take_entity_2 = true

Detailed Description

Definition at line 39 of file document_item.class.php.


Member Function Documentation

static cloneItem ( itemtype,
oldid,
newid,
newitemtype = '' 
) [static]

Duplicate documents from an item template to its clone.

Since:
version 0.84
Parameters:
$itemtypeitemtype of the item
$oldidID of the item to clone
$newidID of the item cloned
$newitemtypeitemtype of the new item (= $itemtype if empty) (default '')

Definition at line 232 of file document_item.class.php.

References $DB, $itemtype, and $query.

Referenced by Phone\post_addItem(), Peripheral\post_addItem(), Monitor\post_addItem(), NetworkEquipment\post_addItem(), Software\post_addItem(), Budget\post_addItem(), Printer\post_addItem(), and Computer\post_addItem().

static countForDocument ( Document item) [static]
Parameters:
$itemDocument object

Definition at line 157 of file document_item.class.php.

References countElementsInTable(), and CommonGLPI\getType().

static countForItem ( CommonDBTM item) [static]
static displayTabContentForItem ( CommonGLPI item,
tabnum = 1,
withtemplate = 0 
) [static]

show Tab content

Since:
version 0.83
Parameters:
$itemCommonGLPI object for which the tab need to be displayed
$tabnuminteger tab number (default 1)
$withtemplateboolean is a template object ? (default 0)
Returns:
true

Reimplemented from CommonGLPI.

Definition at line 201 of file document_item.class.php.

References CommonGLPI\getType(), showForDocument(), and showForItem().

Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 55 of file document_item.class.php.

getTabNameForItem ( CommonGLPI item,
withtemplate = 0 
)

Get Tab Name used for itemtype.

NB : Only called for existing object Must check right on what will be displayed + template

Since:
version 0.83
Parameters:
$itemCommonDBTM object for which the tab need to be displayed
$withtemplateboolean is a template object ? (default 0)
Returns:
string tab name

Reimplemented from CommonGLPI.

Definition at line 166 of file document_item.class.php.

References $_SESSION, _n(), CommonGLPI\createTabEntry(), CommonGLPI\getType(), Document\getTypeName(), CommonGLPI\getTypeName(), and Session\haveRight().

Actions done after the ADD of the item in the database.

Returns:
nothing

Reimplemented from CommonDBRelation.

Definition at line 88 of file document_item.class.php.

References $_SESSION, $input, and $ticket.

Actions done after the PURGE of the item in the database.

Returns:
nothing

Reimplemented from CommonDBTM.

Definition at line 104 of file document_item.class.php.

References $_SESSION, $input, and $ticket.

prepareInputForAdd ( input)
Since:
version 0.84
Parameters:
$input

Reimplemented from CommonDBRelation.

Definition at line 63 of file document_item.class.php.

References $input, countElementsInTable(), and CommonDBTM\getTable().


Member Data Documentation

$items_id_1 = 'documents_id' [static]

Reimplemented from CommonDBRelation.

Definition at line 44 of file document_item.class.php.

$items_id_2 = 'items_id' [static]

Reimplemented from CommonDBRelation.

Definition at line 48 of file document_item.class.php.

$itemtype_1 = 'Document' [static]

Reimplemented from CommonDBRelation.

Definition at line 43 of file document_item.class.php.

$itemtype_2 = 'itemtype' [static]

Reimplemented from CommonDBRelation.

Definition at line 47 of file document_item.class.php.

$take_entity_1 = false [static]

Reimplemented from CommonDBRelation.

Definition at line 45 of file document_item.class.php.

$take_entity_2 = true [static]

Reimplemented from CommonDBRelation.

Definition at line 49 of file document_item.class.php.


The documentation for this class was generated from the following file: