silverstripe-framework/model
Hamish Friedlander fa37c448a5 API Reverse config extra statics control flow
Config system used to provide an add_static_source method, which was intended for
use by Extensions to add statics. But extensions for a class arent initialised
until at least one instance of that class is created, so before that the
Config system didnt include values from extensions

This patch reverses the control flow, so that the Config system explictly asks
each Object for its additional config sources via the new method
get_extra_config_sources. This method returns an array that can contain
string names of classes and also raw associative arrays.

The developer visible change is that Extension#add_to_class has been
deprecated. Instead there is a new method, get_extra_config, which has
the same method signature but needs to guarantee that it doesnt
cause side effects. Additionally there is no need to call
parent::get_extra_config - this is handled automatically.
2012-08-23 09:29:13 +12:00
..
fieldtypes Wrong deprecation notice in DBField::create() 2012-08-04 19:14:16 +02:00
Aggregate.php MINOR Fixing deprecated use of SQLQuery 2012-05-11 11:39:06 +12:00
ArrayList.php API Prep ArrayList for immutability in 3.1 per 7673 2012-07-20 14:55:44 +12:00
ComponentSet.php Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
Database.php NEW Database->supportsTimezoneOverride() 2012-07-05 16:16:36 +02:00
DatabaseAdmin.php MINOR Replacing deprecated static function calls to Director with 2012-05-23 21:50:02 +12:00
DataDifferencer.php Merge pull request #434 from halkyon/using_non_deprecated_template_controls 2012-05-11 15:08:16 -07:00
DataExtension.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
DataList.php API Prep DataList for immutability in 3.1 per 7673 2012-07-20 15:58:18 +12:00
DataModel.php API CHANGE Renamed setModel for DataModel instances to setDataModel for 2012-05-01 14:45:44 +12:00
DataObject.php BUG Localize DataObject->summaryFields() 2012-08-10 00:14:02 +02:00
DataObjectDecorator.php Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
DataObjectInterface.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
DataObjectSet.php Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
DataQuery.php BUG: augmentSQL always extended on base data class on query finalization 2012-08-02 16:09:58 +03:00
DB.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Filterable.php Update docs to indicate lists not mutable as per 7673 2012-07-20 14:51:12 +12:00
GroupedList.php Fixed usage of DataList etc in docs (fixes #7518) 2012-06-27 16:09:31 +02:00
HasManyList.php BUGFIX Fixed HasManyList and ManyManyList queries for relationships on new records (was returning all available records due to the SQL filtering ignoring ID=0) 2012-03-06 01:23:34 +01:00
HiddenClass.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Hierarchy.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
HTMLValue.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Image.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Limitable.php Update docs to indicate lists not mutable as per 7673 2012-07-20 14:51:12 +12:00
List.php FEATURE: implement SS_Sortable->reverse() 2012-04-27 15:54:14 +12:00
ListDecorator.php FEATURE: implement SS_Sortable->reverse() 2012-04-27 15:54:14 +12:00
ManyManyList.php API CHANGE Deprecated internal access to SQLQuery properties, update core code to reflect these changes. 2012-05-07 14:21:44 +12:00
Map.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
MySQLDatabase.php Merge pull request #621 from chillu/pull/dbdatetimetest-offsets 2012-07-06 02:34:19 -07:00
RelationList.php API Prep forForeignID for immutability in 3.1 per 7673 2012-07-23 10:31:47 +12:00
Sortable.php Update docs to indicate lists not mutable as per 7673 2012-07-20 14:51:12 +12:00
SQLMap.php Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
SQLQuery.php FIX: ensure limits to SQLQuery are passed as positive values 2012-06-29 19:40:28 +12:00
Transliterator.php API CHANGE Renames Transliterator to SS_Transliterator 2012-06-15 15:54:47 +12:00
URLSegmentFilter.php API CHANGE Renames Transliterator to SS_Transliterator 2012-06-15 15:54:47 +12:00
ValidationException.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
ValidationResult.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Versioned.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00