silverstripe-framework/model
Daniel Hensby 3b9056fc01 NEW Cookie_Backend for managing cookie state
I've decoupled `Cookie` from the actual act of setting and getting
cookies. Currently there are a few limitations to how Cookie works that
this change mitigates:

0. `Cookie` currently changes the super global `$_COOKIE` when setting
to make the state of an application a bit more managable, but this is
bad because we shouldn't be modifying super globals
0. One can't actually change the `$cookie_class` once the
`Cookie::$inst` has been instantiated
0. One can't test cookies as there is no class that holds the state of
the cookies (it's just held in the super global which is reset as part
of `Director::test()`
0. One can't tell the origin of a cookie (eg: did the application set it
and it needs to be sent, or did we receive it from the browser?)
0. `time()` was used, so testing was made difficult
0. There was no way to get all the cookies at once (without accessing
the super global)

Todos are on the phpdoc and I'd like to write some tests for the backend
as well as update the docs (if there are any) around cookies.
DOCS Adding `Cookie` docs

Explains basic usage of `Cookie` as well as how the `Cookie_Backend`
controls the setting and getting of cookies and manages state of sent vs
received cookies
Fixing `Cookie` usage

`Cookie` is being used inconsistently with the API throughout framework.
Either by not using `force_expiry` to expire cookies or setting them to
null and then expiring them (which is redundant).
NEW `Director::test()` takes `Cookie_Backend` rather than `array` for `$cookies` param
2014-10-06 17:44:51 +13:00
..
connect API Allow parameterised joins / subselects 2014-09-16 17:54:30 +12:00
fieldtypes API DateTime.Ago better infers significance of date units. 2014-08-25 10:04:24 +12:00
queries API Allow parameterised joins / subselects 2014-09-16 17:54:30 +12:00
ArrayList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DatabaseAdmin.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataDifferencer.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataExtension.php Removing deprecated class/functions marked for deprecation in 3.0/3.1 2014-08-25 12:06:05 +12:00
DataList.php API Allow parameterised joins / subselects 2014-09-16 17:54:30 +12:00
DataModel.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataObject.php Removing @deprecated 3.1 functionality and classes. 2014-08-18 16:00:13 +12:00
DataObjectInterface.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataQuery.php API Allow parameterised joins / subselects 2014-09-16 17:54:30 +12:00
DB.php NEW Cookie_Backend for managing cookie state 2014-10-06 17:44:51 +13:00
Filterable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
GroupedList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
HasManyList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
HiddenClass.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Hierarchy.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
HTMLValue.php Rewrote usages of error suppression operator 2014-03-05 15:48:55 +13:00
Image_Backend.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Image.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Limitable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
List.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
ListDecorator.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
ManyManyList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Map.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
PolymorphicHasManyList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
RelationList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Sortable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
Transliterator.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
UnsavedRelationList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
URLSegmentFilter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
ValidationException.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
ValidationResult.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Versioned.php NEW Cookie_Backend for managing cookie state 2014-10-06 17:44:51 +13:00