API CHANGE: Added ArrayList::byID(), to improve its compatibility with DataList.

This commit is contained in:
Sam Minnee 2012-01-09 18:47:59 +13:00
parent cb13299cf9
commit 93eb2dda54

View File

@ -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