Permalink
Browse files

API CHANGE Childclasses to SS_List matches the same signature on abst…

…ract methods column and map.

This was failing under php 5.2
  • Loading branch information...
1 parent a2c7175 commit fb8ff50451098aed145074bcca757b98ef3a7089 @stojg stojg committed Oct 22, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 model/ArrayList.php
  2. +2 −2 model/List.php
View
2 model/ArrayList.php
@@ -155,7 +155,7 @@ public function last() {
return end($this->items);
}
- public function map($keyfield, $titlefield) {
+ public function map($keyfield = 'ID', $titlefield = 'Title') {
$map = array();
foreach ($this->items as $item) {
$map[$this->extractValue($item, $keyfield)] = $this->extractValue($item, $titlefield);
View
4 model/List.php
@@ -67,7 +67,7 @@ public function last();
* @param string $titlefield
* @return array
*/
- public function map($keyfield, $titlefield);
+ public function map($keyfield = 'ID', $titlefield = 'Title');
/**
* Returns the first item in the list where the key field is equal to the
@@ -85,7 +85,7 @@ public function find($key, $value);
* @param string $field
* @return array
*/
- public function column($field);
+ public function column($colName = "ID");
/**
* Returns TRUE if the list can be sorted by a field.

0 comments on commit fb8ff50

Please sign in to comment.