当前位置: 首页>>代码示例>>PHP>>正文


PHP CommonGLPI::registerStandardTab方法代码示例

本文整理汇总了PHP中CommonGLPI::registerStandardTab方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonGLPI::registerStandardTab方法的具体用法?PHP CommonGLPI::registerStandardTab怎么用?PHP CommonGLPI::registerStandardTab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonGLPI的用法示例。


在下文中一共展示了CommonGLPI::registerStandardTab方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: plugin_pdf_postinit

function plugin_pdf_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    foreach ($PLUGIN_HOOKS['plugin_pdf'] as $type => $typepdf) {
        CommonGLPI::registerStandardTab($type, $typepdf);
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:7,代码来源:hook.php

示例2: plugin_uninstall_postinit

function plugin_uninstall_postinit()
{
    global $UNINSTALL_TYPES;
    foreach ($UNINSTALL_TYPES as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginUninstallUninstall');
    }
}
开发者ID:pluginsGLPI,项目名称:uninstall,代码行数:7,代码来源:hook.php

示例3: plugin_formcreator_postinit

function plugin_formcreator_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    foreach (PluginFormcreatorForm::getTypes(true) as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginFormcreatorForm');
    }
}
开发者ID:OscarLoayzaB,项目名称:formcreator,代码行数:7,代码来源:hook.php

示例4: plugin_appliances_postinit

function plugin_appliances_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['plugin_uninstall_after']['appliances'] = array();
    $PLUGIN_HOOKS['item_purge']['appliances'] = array();
    foreach (PluginAppliancesAppliance::getTypes(true) as $type) {
        $PLUGIN_HOOKS['plugin_uninstall_after']['appliances'][$type] = array('PluginAppliancesAppliance_Item', 'cleanForItem');
        $PLUGIN_HOOKS['item_purge']['appliances'][$type] = array('PluginAppliancesAppliance_Item', 'cleanForItem');
        CommonGLPI::registerStandardTab($type, 'PluginAppliancesAppliance_Item');
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:11,代码来源:hook.php

示例5: plugin_relation_postinit

function plugin_relation_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['plugin_uninstall_after']['relation'] = array();
    $PLUGIN_HOOKS['item_purge']['relation'] = array();
    foreach (PluginRelationRelation::getTypes(true) as $type) {
        $PLUGIN_HOOKS['item_purge']['relation'][$type] = array('PluginRelationRelation', 'cleanForItem');
        CommonGLPI::registerStandardTab($type, 'PluginRelationRelation');
    }
    //$PLUGIN_HOOKS['add_css']['relation']=array('dd.css');
    //$PLUGIN_HOOKS['add_javascript']['relation']=array('jquery-1.9.0.min.js','jquery.dd.min.js');
}
开发者ID:OscarLoayzaB,项目名称:relation,代码行数:12,代码来源:hook.php

示例6: postinit

 static function postinit()
 {
     global $CFG_GLPI;
     foreach ($CFG_GLPI["networkport_types"] as $type) {
         CommonGLPI::registerStandardTab($type, __CLASS__);
     }
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:7,代码来源:ping_equipment.class.php

示例7: plugin_ocsinventoryng_postinit

function plugin_ocsinventoryng_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['pre_item_purge']['ocsinventoryng'] = array('Profile' => array('PluginOcsinventoryngProfile', 'purgeProfiles'));
    $PLUGIN_HOOKS['pre_item_add']['ocsinventoryng'] = array();
    $PLUGIN_HOOKS['item_update']['ocsinventoryng'] = array();
    $PLUGIN_HOOKS['pre_item_add']['ocsinventoryng'] = array('Computer_Item' => array('PluginOcsinventoryngOcslink', 'addComputer_Item'));
    $PLUGIN_HOOKS['item_update']['ocsinventoryng'] = array('Computer' => array('PluginOcsinventoryngOcslink', 'updateComputer'));
    $PLUGIN_HOOKS['pre_item_purge']['ocsinventoryng'] = array('Computer' => array('PluginOcsinventoryngOcslink', 'purgeComputer'), 'Computer_Item' => array('PluginOcsinventoryngOcslink', 'purgeComputer_Item'));
    foreach (PluginOcsinventoryngOcsServer::getTypes(true) as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginOcsinventoryngOcsServer');
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:13,代码来源:hook.php

示例8: plugin_typology_postinit

function plugin_typology_postinit()
{
    global $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['item_purge']['typology'] = array();
    $PLUGIN_HOOKS['item_add']['typology'] = array();
    $PLUGIN_HOOKS['pre_item_purge']['typology'] = array('Profile' => array('PluginTypologyProfile', 'purgeProfiles'));
    foreach (PluginTypologyTypology::getTypes(true) as $type) {
        $PLUGIN_HOOKS['item_purge']['typology'][$type] = array('PluginTypologyTypology_Item', 'cleanItemTypology');
        $PLUGIN_HOOKS['item_add']['typology'][$type] = array('PluginTypologyTypology_Item', 'addItem');
        $PLUGIN_HOOKS['item_update']['typology'][$type] = array('PluginTypologyTypology_Item', 'updateItem');
        CommonGLPI::registerStandardTab($type, 'PluginTypologyTypology_Item');
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:13,代码来源:hook.php

示例9: plugin_ocsinventoryng_postinit

function plugin_ocsinventoryng_postinit()
{
    global $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['pre_item_add']['ocsinventoryng'] = array();
    $PLUGIN_HOOKS['item_update']['ocsinventoryng'] = array();
    $PLUGIN_HOOKS['pre_item_add']['ocsinventoryng'] = array('Computer_Item' => array('PluginOcsinventoryngOcslink', 'addComputer_Item'));
    $PLUGIN_HOOKS['pre_item_update']['ocsinventoryng'] = array('Infocom' => 'plugin_ocsinventoryng_pre_item_update');
    $PLUGIN_HOOKS['item_update']['ocsinventoryng'] = array('Computer' => array('PluginOcsinventoryngOcslink', 'updateComputer'), 'Infocom' => 'plugin_ocsinventoryng_item_update');
    $PLUGIN_HOOKS['pre_item_purge']['ocsinventoryng'] = array('Computer' => array('PluginOcsinventoryngOcslink', 'purgeComputer'), 'Computer_Item' => array('PluginOcsinventoryngOcslink', 'purgeComputer_Item'));
    $PLUGIN_HOOKS['item_purge']['ocsinventoryng'] = array('Printer' => array('PluginOcsinventoryngSnmpOcslink', 'purgePrinter'), 'NetworkEquipment' => array('PluginOcsinventoryngSnmpOcslink', 'purgeNetworkEquipment'), 'Computer' => array('PluginOcsinventoryngSnmpOcslink', 'purgeComputer'), 'Peripheral' => array('PluginOcsinventoryngSnmpOcslink', 'purgePeripheral'), 'Phone' => array('PluginOcsinventoryngSnmpOcslink', 'purgePhone'));
    if (Session::haveRight("plugin_ocsinventoryng", UPDATE) || Session::haveRight("plugin_ocsinventoryng_view", READ) || Session::haveRight("plugin_ocsinventoryng_sync", UPDATE)) {
        foreach (PluginOcsinventoryngOcsServer::getTypes(true) as $type) {
            CommonGLPI::registerStandardTab($type, 'PluginOcsinventoryngOcsServer');
        }
    }
}
开发者ID:pluginsGLPI,项目名称:ocsinventoryng,代码行数:16,代码来源:hook.php

示例10: registerClass

 /**
  * Define a new class managed by a plugin
  *
  * @param $itemtype        class name
  * @param $attrib    array of attributes, a hashtable with index in
  *                         (classname, typename, reservation_types)
  *
  * @return bool
  **/
 static function registerClass($itemtype, $attrib = array())
 {
     global $CFG_GLPI;
     $plug = isPluginItemType($itemtype);
     if (!$plug) {
         return false;
     }
     $plugin = strtolower($plug['plugin']);
     if (isset($attrib['doc_types'])) {
         $attrib['document_types'] = $attrib['doc_types'];
         unset($attrib['doc_types']);
     }
     if (isset($attrib['helpdesk_types'])) {
         $attrib['ticket_types'] = $attrib['helpdesk_types'];
         unset($attrib['helpdesk_types']);
     }
     if (isset($attrib['netport_types'])) {
         $attrib['networkport_types'] = $attrib['netport_types'];
         unset($attrib['netport_types']);
     }
     foreach (array('contract_types', 'directconnect_types', 'document_types', 'helpdesk_visible_types', 'infocom_types', 'linkgroup_tech_types', 'linkgroup_types', 'linkuser_tech_types', 'linkuser_types', 'location_types', 'networkport_instantiations', 'networkport_types', 'notificationtemplates_types', 'planning_types', 'reservation_types', 'rulecollections_types', 'systeminformations_types', 'ticket_types', 'unicity_types', 'link_types') as $att) {
         if (isset($attrib[$att]) && $attrib[$att]) {
             array_push($CFG_GLPI[$att], $itemtype);
             unset($attrib[$att]);
         }
     }
     if (isset($attrib['device_types']) && $attrib['device_types'] && method_exists($itemtype, 'getItem_DeviceType')) {
         if (class_exists($itemtype::getItem_DeviceType())) {
             array_push($CFG_GLPI['device_types'], $itemtype);
         }
         unset($attrib[$att]);
     }
     if (isset($attrib['addtabon'])) {
         if (!is_array($attrib['addtabon'])) {
             $attrib['addtabon'] = array($attrib['addtabon']);
         }
         foreach ($attrib['addtabon'] as $form) {
             CommonGLPI::registerStandardTab($form, $itemtype);
         }
     }
     //Manage entity forward from a source itemtype to this itemtype
     if (isset($attrib['forwardentityfrom'])) {
         CommonDBTM::addForwardEntity($attrib['forwardentityfrom'], $itemtype);
     }
     // Use it for plugin debug
     //       if (count($attrib)) {
     //          foreach ($attrib as $key => $val) {
     //             Toolbox::logInFile('debug',"Attribut $key used by $itemtype no more used for plugins\n");
     //          }
     //}
     return true;
 }
开发者ID:pvasener,项目名称:glpi,代码行数:61,代码来源:plugin.class.php

示例11: plugin_domains_postinit

function plugin_domains_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['item_purge']['domains'] = array();
    foreach (PluginDomainsDomain::getTypes(true) as $type) {
        $PLUGIN_HOOKS['item_purge']['domains'][$type] = array('PluginDomainsDomain_Item', 'cleanForItem');
        CommonGLPI::registerStandardTab($type, 'PluginDomainsDomain_Item');
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:9,代码来源:hook.php

示例12: plugin_financialreports_postinit

function plugin_financialreports_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    foreach (PluginFinancialreportsDisposalItem::getTypes(true) as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginFinancialreportsDisposalItem');
    }
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:7,代码来源:hook.php

示例13: plugin_projet_postinit

function plugin_projet_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['item_purge']['projet'] = array();
    foreach (PluginProjetProjet::getTypes(true) as $type) {
        $PLUGIN_HOOKS['item_purge']['projet'][$type] = array('PluginProjetProjet', 'cleanItems');
        CommonGLPI::registerStandardTab($type, 'PluginProjetProjet_Item');
    }
    CommonGLPI::registerStandardTab("Central", 'PluginProjetTask');
}
开发者ID:geldarr,项目名称:hack-space,代码行数:10,代码来源:hook.php

示例14: plugin_manufacturersimports_postinit

function plugin_manufacturersimports_postinit()
{
    foreach (PluginManufacturersimportsConfig::getTypes(true) as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginManufacturersimportsConfig');
    }
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:6,代码来源:hook.php

示例15: plugin_immobilizationsheets_postinit

function plugin_immobilizationsheets_postinit()
{
    foreach (PluginImmobilizationsheetsItem::getTypes(true) as $type) {
        CommonGLPI::registerStandardTab($type, 'PluginImmobilizationsheetsItem');
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:6,代码来源:hook.php


注:本文中的CommonGLPI::registerStandardTab方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。