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


PHP CommonDBRelation::getRelationMassiveActionsSpecificities方法代码示例

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


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

示例1: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     $specificities['dropdown_method_2'] = 'dropdownUnder';
     $specificities['can_remove_all_at_once'] = false;
     return $specificities;
 }
开发者ID:Ixertec,项目名称:glpi,代码行数:13,代码来源:profile_user.class.php

示例2: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     // Set the labels for add_item and remove_item
     $specificities['button_labels']['add'] = _sx('button', 'Associate');
     $specificities['button_labels']['remove'] = _sx('button', 'Dissociate');
     return $specificities;
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:14,代码来源:networkport_vlan.class.php

示例3: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     $specificities['select_items_options_1'] = array('right' => 'all');
     $specificities['select_items_options_2'] = array('condition' => '`is_usergroup`');
     // Define normalized action for add_item and remove_item
     $specificities['normalized']['add'][] = 'add_supervisor';
     $specificities['normalized']['add'][] = 'add_delegatee';
     $specificities['button_labels']['add_supervisor'] = $specificities['button_labels']['add'];
     $specificities['button_labels']['add_delegatee'] = $specificities['button_labels']['add'];
     $specificities['update_if_different'] = true;
     return $specificities;
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:19,代码来源:group_user.class.php

示例4: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     $specificities['itemtypes'] = $CFG_GLPI['contract_types'];
     return $specificities;
 }
开发者ID:GeorgeAlexandre,项目名称:glpi,代码行数:12,代码来源:contract_item.class.php

示例5: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     $specificities['itemtypes'] = Document::getItemtypesThatCanHave();
     // Define normalized action for add_item and remove_item
     $specificities['normalized']['add'][] = 'add_item';
     $specificities['normalized']['remove'][] = 'remove_item';
     // Set the labels for add_item and remove_item
     $specificities['button_labels']['add_item'] = $specificities['button_labels']['add'];
     $specificities['button_labels']['remove_item'] = $specificities['button_labels']['remove'];
     return $specificities;
 }
开发者ID:pvasener,项目名称:glpi,代码行数:18,代码来源:document_item.class.php

示例6: getRelationMassiveActionsSpecificities

 /**
  * @since version 0.85
  *
  * @see CommonDBRelation::getRelationMassiveActionsSpecificities()
  **/
 static function getRelationMassiveActionsSpecificities()
 {
     global $CFG_GLPI;
     $specificities = parent::getRelationMassiveActionsSpecificities();
     $specificities['itemtypes'] = array('Monitor', 'Peripheral', 'Phone', 'Printer');
     $specificities['select_items_options_2']['entity_restrict'] = $_SESSION['glpiactive_entity'];
     $specificities['select_items_options_2']['onlyglobal'] = true;
     $specificities['only_remove_all_at_once'] = true;
     // Set the labels for add_item and remove_item
     $specificities['button_labels']['add'] = _sx('button', 'Connect');
     $specificities['button_labels']['remove'] = _sx('button', 'Disconnect');
     return $specificities;
 }
开发者ID:stweil,项目名称:glpi,代码行数:18,代码来源:computer_item.class.php


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