MINOR: Added a default "ID" parameter to ArrayList->column().

This commit is contained in:
ajshort 2011-05-05 20:40:51 +10:00
parent 3f132a105b
commit 2a3fdd16a4

View File

@ -148,7 +148,7 @@ class ArrayList extends ViewableData implements SS_List {
}
}
public function column($field) {
public function column($field = 'ID') {
$result = array();
foreach ($this->array as $item) {
$result[] = $this->extract($item, $field);