Browse files

API Prep DataList for immutability in 3.1 per 7673

DataList had several methods that should act on a copy and return
that copy, but was instead mutating the existing list.

We cant change this behaviour in the 3.0 line for backwards compt.
reasons, but this makes the desired behavior the default, and
makes disabling the mutation in 3.1 easier

It also introduces two new methods to deal with the common pattern
of wanting to modify the underlying dataQuery, which we want to be
able to reliably do in a way that always acts immutably. The main
method of these two is alterDataQuery
  • Loading branch information...
Hamish Friedlander
Hamish Friedlander committed Jul 20, 2012
1 parent 1ed41b8 commit e8e460445724a491f4e706971900ac680270a711
Showing with 230 additions and 93 deletions.
  1. +230 −93 model/DataList.php
Oops, something went wrong.

0 comments on commit e8e4604

Please sign in to comment.