當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonDBTM::getSpecificMassiveActions方法代碼示例

本文整理匯總了PHP中CommonDBTM::getSpecificMassiveActions方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBTM::getSpecificMassiveActions方法的具體用法?PHP CommonDBTM::getSpecificMassiveActions怎麽用?PHP CommonDBTM::getSpecificMassiveActions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonDBTM的用法示例。


在下文中一共展示了CommonDBTM::getSpecificMassiveActions方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL, $is_deleted = false)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin && !$is_deleted) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'sendmail'] = _x('button', 'Send');
     }
     return $actions;
 }
開發者ID:simaostephanie,項目名稱:glpi,代碼行數:12,代碼來源:queuedmail.class.php

示例2: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['delete_email'] = __('Delete emails');
         $actions['import_email'] = _x('button', 'Import');
     }
     return $actions;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:13,代碼來源:notimportedemail.class.php

示例3: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $prefix = __CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR;
         $actions[$prefix . 'delete_email'] = __('Delete emails');
         $actions[$prefix . 'import_email'] = _x('button', 'Import');
     }
     return $actions;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:14,代碼來源:notimportedemail.class.php

示例4: getSpecificMassiveActions

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     return $actions;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:11,代碼來源:disposalitem.class.php

示例5: 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

示例6: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['add_contact_supplier'] = _x('button', 'Add a contact');
     }
     if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode() && $isadmin) {
         $actions['add_transfer_list'] = _x('button', 'Add to transfer list');
     }
     return $actions;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:15,代碼來源:supplier.class.php

示例7: getSpecificMassiveActions

 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
         if ($isadmin) {
             if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode()) {
                 $actions['PluginTasklistsTask' . MassiveAction::CLASS_ACTION_SEPARATOR . 'transfer'] = __('Transfer');
             }
         }
     }
     return $actions;
 }
開發者ID:InfotelGLPI,項目名稱:tasklists,代碼行數:13,代碼來源:task.class.php

示例8: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     return CommonDBTM::getSpecificMassiveActions($checkitem);
 }
開發者ID:korial29,項目名稱:tag,代碼行數:7,代碼來源:tag.class.php

示例9: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'reset'] = __('Reset last run');
     }
     return $actions;
 }
開發者ID:glpi-project,項目名稱:glpi,代碼行數:12,代碼來源:crontask.class.php

示例10: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = __('Associate to a group');
         $actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'remove'] = __('Dissociate from a group');
         $actions['Profile_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = __('Associate to a profile');
         $actions['Profile_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'remove'] = __('Dissociate from a profile');
         $actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'change_group_user'] = __("Move to group");
     }
     if (Session::haveRight(self::$rightname, self::UPDATEAUTHENT)) {
         $prefix = __CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR;
         $actions[$prefix . 'change_authtype'] = _x('button', 'Change the authentication method');
         $actions[$prefix . 'force_user_ldap_update'] = __('Force synchronization');
     }
     return $actions;
 }
開發者ID:pvasener,項目名稱:glpi,代碼行數:21,代碼來源:user.class.php

示例11: getSpecificMassiveActions

 /**
  * Get the specific massive actions
  * 
  * @since version 0.84
  * @param $checkitem link item to check right   (default NULL)
  * 
  * @return an array of massive actions
  **/
 public function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
         if ($isadmin) {
             $actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'install'] = _x('button', 'Associate');
             $actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'uninstall'] = _x('button', 'Dissociate');
             if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode()) {
                 $actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'transfer'] = __('Transfer');
             }
         }
     }
     return $actions;
 }
開發者ID:puchadesc,項目名稱:accounts,代碼行數:23,代碼來源:account.class.php

示例12: 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

示例13: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['reset'] = __('Reset last run');
     }
     return $actions;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:12,代碼來源:crontask.class.php

示例14: getSpecificMassiveActions

 public function getSpecificMassiveActions($checkitem = NULL)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     return $actions;
 }
開發者ID:OscarLoayzaB,項目名稱:formcreator,代碼行數:5,代碼來源:form.class.php

示例15: getSpecificMassiveActions

 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     // Manage forbidden actions
     $forbidden_actions = $this->getForbiddenStandardMassiveAction();
     if ($isadmin && $this->maybeRecursive() && count($_SESSION['glpiactiveentities']) > 1 && !in_array('merge', $forbidden_actions)) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'merge'] = __('Transfer and merge');
     }
     return $actions;
 }
開發者ID:pvasener,項目名稱:glpi,代碼行數:14,代碼來源:commondropdown.class.php


注:本文中的CommonDBTM::getSpecificMassiveActions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。