Свойство | Type | Description | |
---|---|---|---|
$dohistory | |||
$items_id | |||
$itemtype | |||
$rightname |
Méthode | Description | |
---|---|---|
canBeTranslated ( CommonGLPI $item ) : true | Check if an item can be translated It be translated if translation if globally on and item is an instance of CommonDropdown or CommonTreeDropdown and if translation is enabled for this class | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getAlreadyTranslatedForItem ( $item ) : array | Get already translated languages for item | |
getForbiddenStandardMassiveAction ( ) | ||
getNumberOfTranslationsForItem ( $item ) : the | Return the number of translations for an item | |
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTranslatedValue ( KnowbaseItem $item, $field = "name" ) : the | Get a translation for a value | |
getTypeName ( $nb ) | ||
isKbTranslationActive ( ) : true | Is kb item translation functionnality active | |
showForm ( $ID, $options = [] ) | Display translation form | |
showTranslations ( KnowbaseItem $item ) : true; | Display all translated field for an KnowbaseItem |
static public canBeTranslated ( CommonGLPI $item ) : true | ||
$item | CommonGLPI | |
Résultat | true | if item can be translated, false otherwise |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
static public getAlreadyTranslatedForItem ( $item ) : array | ||
Résultat | array | of already translated languages |
static public getNumberOfTranslationsForItem ( $item ) : the | ||
Résultat | the | number of translations for this item |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public getTranslatedValue ( KnowbaseItem $item, $field = "name" ) : the | ||
$item | KnowbaseItem | item to translate |
$field | field to return (default 'name') | |
Résultat | the | field translated if a translation is available, or the original field if not |
static public isKbTranslationActive ( ) : true | ||
Résultat | true | if active, false if not |
public showForm ( $ID, $options = [] ) | ||
$ID | field (default -1) | |
$options | array |
static public showTranslations ( KnowbaseItem $item ) : true; | ||
$item | KnowbaseItem | a KnowbaseItem item |
Résultat | true; |