Exemplo n.º 1
0
 /**
  * @since version 0.85
  *
  * @see CommonDBTM::processMassiveActionsForOneItemtype()
  **/
 static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBTM $item, array $ids)
 {
     global $DB;
     switch ($ma->getAction()) {
         case 'move_bookmark':
             $input = $ma->getInput();
             if ($item->moveBookmark($ids, $input['bookmarks_id_ref'], $input['move_type'])) {
                 $ma->itemDone($item->getType(), $ids, MassiveAction::ACTION_OK);
             } else {
                 $ma->itemDone($item->getType(), $ids, MassiveAction::ACTION_KO);
             }
             return;
     }
     parent::processMassiveActionsForOneItemtype($ma, $item, $ids);
 }