static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $self = new self(); if ($item->getType() == 'PluginSimcardSimcard') { $self->showtotal($item->getField('id')); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { // switch (get_class($item)) { // case 'Profile': // $profile = new PluginSimcardProfile(); // if (!$profile->getFromDBByProfile($item->getField('id'))) { // $profile->createAccess($item->getField('id')); //} //$profile->showForm($item->getField('id')); //break; //default: // PluginSimcardSimcard_Item::showForItem($item); //break; $self = new self(); if ($item->getType() == 'PluginSimcardSimcard') { $self->showtotal($item->getField('id')); } return true; }