PHP 클래스 KnowbaseItemTranslation, glpi

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

공개 프로퍼티들

프로퍼티 타입 설명
$dohistory
$items_id
$itemtype
$rightname

공개 메소드들

메소드 설명
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

메소드 상세

canBeTranslated() 정적인 공개 메소드

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
static public canBeTranslated ( CommonGLPI $item ) : true
$item CommonGLPI
리턴 true if item can be translated, false otherwise

displayTabContentForItem() 정적인 공개 메소드

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

getAlreadyTranslatedForItem() 정적인 공개 메소드

Get already translated languages for item
static public getAlreadyTranslatedForItem ( $item ) : array
리턴 array of already translated languages

getForbiddenStandardMassiveAction() 공개 메소드

getNumberOfTranslationsForItem() 정적인 공개 메소드

Return the number of translations for an item
static public getNumberOfTranslationsForItem ( $item ) : the
리턴 the number of translations for this item

getTabNameForItem() 공개 메소드

또한 보기: CommonGLPI::getTabNameForItem()
public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTranslatedValue() 정적인 공개 메소드

Get a translation for a value
static public getTranslatedValue ( KnowbaseItem $item, $field = "name" ) : the
$item KnowbaseItem item to translate
$field field to return (default 'name')
리턴 the field translated if a translation is available, or the original field if not

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

isKbTranslationActive() 정적인 공개 메소드

Is kb item translation functionnality active
static public isKbTranslationActive ( ) : true
리턴 true if active, false if not

showForm() 공개 메소드

Display translation form
public showForm ( $ID, $options = [] )
$ID field (default -1)
$options array

showTranslations() 정적인 공개 메소드

Display all translated field for an KnowbaseItem
static public showTranslations ( KnowbaseItem $item ) : true;
$item KnowbaseItem a KnowbaseItem item
리턴 true;

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

public $dohistory

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

public static $items_id

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

public static $itemtype

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

static public $rightname