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. Steffen Ritter changed target version 03/05/12, 17:36

  2. Mathias Schreiber commented and changed status New Needs Feedback assigned to Frans Saris 01/13/15, 08:32

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

  3. Frans Saris commented 01/13/15, 09:14

    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.

  4. Frederic Gaus commented 07/06/15, 18:10

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

  5. Alexander Opitz commented and changed category status Needs Feedback New target version 10/27/15, 14:38

    Still not implemented.

  6. Riccardo De Contardi changed target version 02/23/17, 14:50

  7. Susanne Moog changed target version 01/28/18, 14:29

  8. Benni Mack commented and changed parent task #33745 06/07/24, 19:51

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

  9. Georg Ringer changed Sprint Focus On Location Sprint 06/12/24, 07:25

  10. Garvin Hicking changed Complexity easy 06/12/24, 08:01

  11. Gerrit Code Review pushed patch set 1 for main to change 90132 status New Under Review 07/23/25, 14:18

  12. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 07/23/25, 20:50

    Applied in changeset commit:eba0643131fbd0f9d89e74d6eb07d0fc83d406fe.

  13. Benni Mack changed status Resolved Closed 12/02/25, 14:36