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


PHP MassiveAction::getAddTransferList方法代码示例

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


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

示例1: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     $isadmin = static::canUpdate();
     if ($this->canAdminActors()) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'add_actor'] = __('Add an actor');
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'update_notif'] = __('Set notifications for all actors');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:16,代码来源:change.class.php

示例2: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:Ixertec,项目名称:glpi,代码行数:12,代码来源:link.class.php

示例3: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['Computer_Item' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = _x('button', 'Connect');
         $actions['Computer_SoftwareVersion' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = _x('button', 'Install');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:pvasener,项目名称:glpi,代码行数:16,代码来源:computer.class.php

示例4: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     if (static::canUpdate()) {
         Computer_Item::getMassiveActionsForItemtype($actions, __CLASS__, 0, $checkitem);
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:12,代码来源:phone.class.php

示例5: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
         if (TicketFollowup::canCreate()) {
             $actions['TicketFollowup' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add_followup'] = __('Add a new followup');
         }
         if (TicketTask::canCreate()) {
             $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'add_task'] = __('Add a new task');
         }
         if (TicketValidation::canCreate()) {
             $actions['TicketValidation' . MassiveAction::CLASS_ACTION_SEPARATOR . 'submit_validation'] = __('Approval request');
         }
         if (Item_Ticket::canCreate()) {
             $actions['Item_Ticket' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add_item'] = _x('button', 'Add an item');
         }
         if (Item_Ticket::canDelete()) {
             $actions['Item_Ticket' . MassiveAction::CLASS_ACTION_SEPARATOR . 'delete_item'] = _x('button', 'Remove an item');
         }
         if (Session::haveRight(self::$rightname, UPDATE)) {
             $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'add_actor'] = __('Add an actor');
             $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'enable_notif'] = __('Set notifications for all actors');
             $actions['Ticket_Ticket' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = _x('button', 'Link tickets');
         }
         if (Session::haveRight(self::$rightname, UPDATE)) {
             MassiveAction::getAddTransferList($actions);
         }
     }
     return $actions;
 }
开发者ID:glpi-project,项目名称:glpi,代码行数:34,代码来源:ticket.class.php

示例6: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $prefix = 'Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR;
         $actions[$prefix . 'add'] = _x('button', 'Add a user');
         $actions[$prefix . 'add_supervisor'] = _x('button', 'Add a manager');
         $actions[$prefix . 'add_delegatee'] = _x('button', 'Add a delegatee');
         $actions[$prefix . 'remove'] = _x('button', 'Remove a user');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:korial29,项目名称:glpi,代码行数:19,代码来源:group.class.php

示例7: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['Contact_Supplier' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = _x('button', 'Add a supplier');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:pvasener,项目名称:glpi,代码行数:15,代码来源:contact.class.php

示例8: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $prefix = 'Contract_Item' . MassiveAction::CLASS_ACTION_SEPARATOR;
         $actions[$prefix . 'add'] = _x('button', 'Add an item');
         $actions[$prefix . 'remove'] = _x('button', 'Remove an item');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:17,代码来源:contract.class.php

示例9: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin && countElementsInTable("glpi_rules", "sub_type='RuleSoftwareCategory'") > 0) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'compute_software_category'] = __('Recalculate the category');
     }
     if (Session::haveRightsOr("rule_dictionnary_software", array(CREATE, UPDATE)) && countElementsInTable("glpi_rules", "sub_type='RuleDictionnarySoftware'") > 0) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'replay_dictionnary'] = __('Replay the dictionary rules');
     }
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
开发者ID:btry,项目名称:glpi,代码行数:18,代码来源:software.class.php


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