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
@ -401,6 +401,10 @@ class ArrayList extends ViewableData implements SS_List {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function byID($id) {
|
||||||
|
return $this->filter("ID", $id)->First();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exclude the list to not contain items with these charactaristics
|
* Exclude the list to not contain items with these charactaristics
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user