Issue Feature Closed

#33747Implement usort() and moveItemAt() in AbstractRecordCollection

Oliver Hader 02/07/12, 21:22 updated 12/02/25, 14:36

Description

Current situation:

    public function usort($callbackFunction) {
        // TODO: Implement usort() method with TCEforms in mind
        throw new RuntimeException('This method is not yet supported.', 1322545589);
    }

    public function moveItemAt($currentPosition, $newPosition = 0) {
        // TODO: Implement usort() method with TCEforms in mind
        throw new RuntimeException('This method is not yet supported.', 1322545626);
    }

Reviews 1

History 1213

  1. Mathias Schreiber commented and changed status New Needs Feedback assigned to Frans Saris <span data-processor="relativetime" data-value="2015-01-13T08:32:34+00:00" > 01/13/15, 08:32 </span>

    Hey Frans, do you have an idea of the status here?

  2. Frans Saris commented <span data-processor="relativetime" data-value="2015-01-13T09:14:04+00:00" > 01/13/15, 09:14 </span>

    The methods still have the todo line.

    Maybe we should just drop them? Because for folder and category based collections there functions do not make sense. Only for collections where you add items manual.

    But I guess Steffen or Oliver know more about this. If not just drop them.

  3. Frederic Gaus commented <span data-processor="relativetime" data-value="2015-07-06T18:10:49+00:00" > 07/06/15, 18:10 </span>

    These functions can not be dropped because they need to be implemented somehow because of the interface \TYPO3\CMS\Core\Collection\SortableCollectionInterface

  4. Alexander Opitz commented and changed category status Needs Feedback New target version <span data-processor="relativetime" data-value="2015-10-27T14:38:36+00:00" > 10/27/15, 14:38 </span>

    Still not implemented.

  5. Benni Mack commented and changed parent task #33745 <span data-processor="relativetime" data-value="2024-06-07T19:51:30+00:00" > 06/07/24, 19:51 </span>

    These methods serve no use anymore, I suggest to deprecate them and the interface.

  6. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-07-23T20:50:08+00:00" > 07/23/25, 20:50 </span>

    Applied in changeset commit:eba0643131fbd0f9d89e74d6eb07d0fc83d406fe.