mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE: Renamed ArrayData::getArray() to toMap() to make it consistent with DataObject. This also makes it work with SapphireTest assertation methods.
This commit is contained in:
parent
f5d2e43636
commit
79cde9df25
@ -43,7 +43,7 @@ class ArrayData extends ViewableData {
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getArray() {
|
public function toMap() {
|
||||||
return $this->array;
|
return $this->array;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,4 +107,12 @@ class ArrayData extends ViewableData {
|
|||||||
function forTemplate() {
|
function forTemplate() {
|
||||||
return var_export($this->array, true);
|
return var_export($this->array, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated 3.0 Use {@link ArrayData::toMap()}.
|
||||||
|
*/
|
||||||
|
public function getArray() {
|
||||||
|
return $this->toMap();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user