mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-28 23:49:26 +02: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…
Reference in New Issue
Block a user