canBeTranslated() static public méthode

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 the item to check
Résultat true if item can be translated, false otherwise
 /**
  * @param $item            CommonGLPI object
  * @param $tabnum          (default 1)
  * @param $withtemplate    (default 0)
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if (DropdownTranslation::canBeTranslated($item)) {
         DropdownTranslation::showTranslations($item);
     }
     return true;
 }
 function defineTabs($options = array())
 {
     $ong = array();
     $this->addDefaultFormTab($ong);
     $this->addStandardTab($this->getType(), $ong, $options);
     if ($this->dohistory) {
         $this->addStandardTab('Log', $ong, $options);
     }
     if (DropdownTranslation::canBeTranslated($this)) {
         $this->addStandardTab('DropdownTranslation', $ong, $options);
     }
     return $ong;
 }