Ingo Schommer
d47e6cf67c
mlantahler:Bugfix: Added checks in DataObjectSet::First() and DataObjectSet::Last() to prevent errors on an empty $items array. (merged from branches/gsoc)
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41778 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 17:59:33 +00:00
Sam Minnee
8bcff1f1d6
Added DataObjectSet::find(), for using a DOS a bit like a PHP map
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40910 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:09:13 +00:00
Sam Minnee
0c977bf6f7
Added insertFirst(), to insert an item at the beginning of the set
...
Added containsIDs() and onlyContainsIDs(), to perform simple validation of DataObjectSets - useful for unit testing
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40228 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-16 06:34:30 +00:00
Hayden Smith
4a5d9b03f8
Moved Sapphire module to open source path
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39001 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-07-19 10:40:28 +00:00