diff --git a/model/ArrayList.php b/model/ArrayList.php index fc783a4f9..6588c0580 100644 --- a/model/ArrayList.php +++ b/model/ArrayList.php @@ -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