Review main Merged

6717[FEATURE] Allow XCLASSes to be defined via ext_autoload.php

Benni Mack CR +2 V +2 Normal +174 −16 updated 06/03/13, 20:49

Commit message

For XCLASSes to work currently, one needs to

a) set the according XCLASS statement in every PHP file that
   can/should be subclassed
b) use this XCLASS statement in an extensions' ext_localconf.php
   to include the subclass statement

This process is somehow unflexible, requires more code, and since
it is missing for some classes, it's also a hassle to maintain.

The attached change does the following:
1) Use the autoloader to search for classes prefixed by "ux_*"
2) Provide a backwards compatibility layer

TODO: Provide a possibility for BE admins to see which XCLASSes
are currently in use with this new method.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 5