Example #1
0
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     if ($item->getType() == 'PluginAccountsHash') {
         $key = self::checkIfAesKeyExists($item->getID());
         if ($key) {
             $self->showAesKey($item->getID());
         }
         if (!$key) {
             $self->showForm("", array('plugin_accounts_hashes_id' => $item->getID()));
         }
     }
     return true;
 }
Example #2
0
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     switch ($item->getType()) {
         case 'PluginAccountsHash':
             $key = self::checkIfAesKeyExists($item->getID());
             if ($key) {
                 $self->showAesKey($item->getID());
             }
             if (!$key) {
                 $self->showForm("", array('plugin_accounts_hashes_id' => $item->getID()));
             }
             break;
         case __CLASS__:
             $item->showForm($item->getID(), $item->fields);
     }
     return true;
 }