Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11495

Add nested sets implementation to phpBB core

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-a1
    • 3.1.0-dev
    • Other
    • None

      phpBB uses nested sets to sort the the forums and subforums. Quite some MODs f.e. the gallery, use the same technic to order and nest their items (albums).

      Instead of requiring new implementations for all the operations by the authors, we should implement an abstract class, that can be easily extended with the table and column names.

      In a second ticket the current forum left/right id manipulations should be replaced with calls to a forum implementation of that class.

      The interface should support:

      • moving items up/down
      • set new parent
      • delete/remove an item
      • add/insert an item
      • move all children of an item
      • get a list with all parent &&/|| children
      • recalculate the set (fixing broken left/right ids)

      Will reuse my stuff from the gallery https://github.com/nickvergessen/phpbb3-ext-gallery-core/pull/3 (has already full test coverage)

            nickvergessen Joas Schilling
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: