getSpecificMassiveActions() public method

Get the specific massive actions
public getSpecificMassiveActions ( $checkitem = NULL ) : an
$checkitem link item to check right (default NULL)
return an array of massive actions
Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }
 /**
  * @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;
 }
 /**
  * @since version 0.85
  *
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     return $actions;
 }
Exemplo n.º 5
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         MassiveAction::getAddTransferList($actions);
     }
     return $actions;
 }
Exemplo n.º 6
0
 /**
  * @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;
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     return CommonDBTM::getSpecificMassiveActions($checkitem);
 }
Exemplo n.º 9
0
 /**
  * @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;
 }
Exemplo n.º 10
0
 /**
  * @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;
 }
Exemplo n.º 11
0
 /**
  * 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;
 }
Exemplo n.º 12
0
 /**
  * @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;
 }
Exemplo n.º 13
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['reset'] = __('Reset last run');
     }
     return $actions;
 }
Exemplo n.º 14
0
 public function getSpecificMassiveActions($checkitem = NULL)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     return $actions;
 }
Exemplo n.º 15
0
 /**
  * @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;
 }
Exemplo n.º 16
0
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode()) {
             $actions['PluginOrderOrder:transfert'] = __('Transfer');
         }
     }
     return $actions;
 }
Exemplo n.º 17
0
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
         if ($isadmin) {
             if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode()) {
                 $actions['Transfert'] = __('Transfer');
             }
         }
     }
     return $actions;
 }
Exemplo n.º 18
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     $collectiontype = $this->getCollectionClassName();
     if ($collection = getItemForItemtype($collectiontype)) {
         if ($isadmin && $collection->orderby == "ranking") {
             $actions['move_rule'] = __('Move');
         }
     }
     return $actions;
 }
Exemplo n.º 19
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin && countElementsInTable("glpi_rules", "sub_type='RuleSoftwareCategory'") > 0) {
         $actions['compute_software_category'] = __('Recalculate the category');
     }
     if (Session::haveRight("rule_dictionnary_software", "w") && countElementsInTable("glpi_rules", "sub_type='RuleDictionnarySoftware'") > 0) {
         $actions['replay_dictionnary'] = __('Replay the dictionary rules');
     }
     if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode() && $isadmin) {
         $actions['add_transfer_list'] = _x('button', 'Add to transfer list');
     }
     return $actions;
 }
Exemplo n.º 20
0
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['Generate_Rule'] = __('Generate a rule', 'resources');
         if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode()) {
             $actions['Transfert'] = __('Transfer');
         }
     }
     return $actions;
 }
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode() && $isadmin) {
         $actions['PluginRacksRack' . MassiveAction::CLASS_ACTION_SEPARATOR . 'transfer'] = __('Transfer');
     }
     return $actions;
 }
Exemplo n.º 22
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     $collectiontype = $this->getCollectionClassName();
     if ($collection = getItemForItemtype($collectiontype)) {
         if ($isadmin && $collection->orderby == "ranking") {
             $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'move_rule'] = __('Move');
         }
     }
     $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'duplicate'] = _x('button', 'Duplicate');
     $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'export'] = _x('button', 'Export');
     return $actions;
 }
Exemplo n.º 23
0
 /**
  * @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;
 }
Exemplo n.º 24
0
 /**
  * @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;
 }
Exemplo n.º 25
0
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['Install'] = __('Associate');
         $actions['Desinstall'] = __('Dissociate');
         $actions['Duplicate'] = __('Duplicate', 'resources');
         if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode()) {
             $actions['Transfert'] = __('Transfer');
         }
     }
     return $actions;
 }
Exemplo n.º 26
0
 /**
  * @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;
 }
 /**
  * @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;
 }
Exemplo n.º 28
0
 /**
  * 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)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     $actions['Install'] = __('Associate');
     $actions['Desinstall'] = __('Dissociate');
     $actions['Duplicate'] = __('Duplicate', 'routetables');
     $actions['Transfert'] = __('Transfer');
     return $actions;
 }
Exemplo n.º 29
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['add_user_group'] = __('Associate to a group');
         $actions['add_userprofile'] = __('Associate to a profile');
     }
     if (Session::haveRight("user_authtype", "w")) {
         $actions['change_authtype'] = _x('button', 'Change the authentication method');
         $actions['force_user_ldap_update'] = __('Force synchronization');
     }
     return $actions;
 }
Exemplo n.º 30
0
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $actions = parent::getSpecificMassiveActions($checkitem);
     $actions['Send'] = __('Send a notification');
     return $actions;
 }