silverstripe-framework/security
Hamish Friedlander 27113f82c3 API Make DataList and ArrayList immutable
In 3.0 there was some confusion about whether DataLists and ArrayLists
were mutable or not. If DataLists were immutable, they'd return the result, and your code
would look like

  $list = $list->filter(....);

If DataLists were mutable, they'd operate on themselves, returning nothing, and your code
would look like

 $list->filter(....);

This makes all DataLists and ArrayList immutable for all _searching_ operations.
Operations on DataList that modify the underlying SQL data store remain mutating.

- These functions no longer mutate the existing object, and if you do not capture the value
returned by them will have no effect:

  ArrayList#reverse
  ArrayList#sort
  ArrayList#filter
  ArrayList#exclude

  DataList#dataQuery (use DataList#alterDataQuery to modify dataQuery in a safe manner)
  DataList#where
  DataList#limit
  DataList#sort
  DataList#addFilter
  DataList#applyFilterContext
  DataList#innerJoin
  DataList#leftJoin
  DataList#find
  DataList#byIDs
  DataList#reverse

- DataList#setDataQueryParam has been added as syntactic sugar around the most common
cause of accessing the dataQuery directly - setting query parameters

- RelationList#setForeignID has been removed. Always use RelationList#forForeignID
when querying, and overload RelationList#foreignIDList when subclassing.

- Relatedly,the protected variable RelationList->foreignID has been removed, as the ID is
now stored on a query parameter. Use RelationList#getForeignID to read it.
2012-12-14 13:30:35 +13:00
..
Authenticator.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
BasicAuth.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
ChangePasswordForm.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
Group.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
GroupCsvBulkLoader.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
LoginAttempt.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
LoginForm.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
Member.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
MemberAuthenticator.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
MemberCsvBulkLoader.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
MemberLoginForm.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
MemberPassword.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
PasswordEncryptor.php API Removed methods previously deprecated in 3.0 2012-12-14 01:16:47 +01:00
PasswordValidator.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
Permission.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
PermissionCheckboxSetField.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
PermissionProvider.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
PermissionRole.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
PermissionRoleCode.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
RandomGenerator.php API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00
Security.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
SecurityToken.php API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00