mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE: Added ArrayList::byID(), to improve its compatibility with DataList.
This commit is contained in:
parent
cb13299cf9
commit
93eb2dda54
@ -400,6 +400,10 @@ class ArrayList extends ViewableData implements SS_List {
|
||||
$this->items = $itemsToKeep;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function byID($id) {
|
||||
return $this->filter("ID", $id)->First();
|
||||
}
|
||||
|
||||
/**
|
||||
* Exclude the list to not contain items with these charactaristics
|
||||
|
Loading…
x
Reference in New Issue
Block a user