示例#1
0
 /**
  * Perform a bulk operation.
  *
  * @param array $ids    IDs to process
  * @param int   $listID Target list
  * limit).
  *
  * @return void
  */
 protected function processRecords($ids, $listID)
 {
     global $user;
     // First copy the records
     if (!parent::processRecords($ids, $listID)) {
         return false;
     }
     // Copy successful, now delete
     $list = User_list::staticGet($_REQUEST['listID']);
     if ($user->id != $list->user_id) {
         $this->errorMsg = 'list_access_denied';
         return false;
     }
     $list->removeResourcesById($ids);
     $this->infoMsg = 'records_moved';
     return true;
 }