getSpecificMassiveActions() public method

See also: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )
Beispiel #1
0
 /**
  * @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;
 }
Beispiel #2
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin) {
         $actions['add_user_group'] = _x('button', 'Add a user');
         $actions['add_supervisor_group'] = _x('button', 'Add a supervisor');
         $actions['add_delegatee_group'] = _x('button', 'Add a delegatee');
     }
     if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode() && $isadmin) {
         $actions['add_transfer_list'] = _x('button', 'Add to transfer list');
     }
     return $actions;
 }