/**
  * Manage position in ajax
  */
 public function ajaxProcessUpdatePositions()
 {
     $way = (int) Tools::getValue('way');
     $id_now_block_reinsurance = (int) Tools::getValue('id');
     $positions = Tools::getValue($this->table);
     foreach ($positions as $position => $value) {
         $pos = explode('_', $value);
         if (isset($pos[2]) && (int) $pos[2] === $id_now_block_reinsurance) {
             if ($oNowBlockReinsurance = new NowBlockReinsurance((int) $pos[2])) {
                 if (isset($position) && $oNowBlockReinsurance->updatePosition($way, $position)) {
                     echo 'ok position ' . (int) $position . ' for bloc reinsurance ' . (int) $pos[1] . '\\r\\n';
                 } else {
                     echo '{"hasError" : true, "errors" : "Can not update bloc reinsurance ' . (int) $id_now_block_reinsurance . ' to position ' . (int) $position . ' "}';
                 }
             } else {
                 echo '{"hasError" : true, "errors" : "This bloc reinsurance (' . (int) $id_now_block_reinsurance . ') can t be loaded"}';
             }
             break;
         }
     }
 }