SoftwareLicense::getTypeName PHP Method

getTypeName() static public method

static public getTypeName ( $nb )
    static function getTypeName($nb = 0)
    {
        return _n('License', 'Licenses', $nb);
    }

Usage Example

 /**
  * @see CommonGLPI::getTabNameForItem()
  **/
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case 'User':
             if (!$withtemplate) {
                 $nb = 0;
                 if ($_SESSION['glpishow_count_on_tabs']) {
                     $nb = self::countForUserLicense($item->getID());
                 }
                 return array(1 => self::createTabEntry(SoftwareLicense::getTypeName(2), $nb));
             }
             break;
     }
     return '';
 }
All Usage Examples Of SoftwareLicense::getTypeName