mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
APICHANGE: make DataObject::getField() visible to the public
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65388 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c1d6e82248
commit
2b0add5c72
@ -1551,7 +1551,7 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP
|
|||||||
*
|
*
|
||||||
* @return mixed The field value
|
* @return mixed The field value
|
||||||
*/
|
*/
|
||||||
protected function getField($field) {
|
public function getField($field) {
|
||||||
// If we already have an object in $this->record, then we should just return that
|
// If we already have an object in $this->record, then we should just return that
|
||||||
if(isset($this->record[$field]) && is_object($this->record[$field])) return $this->record[$field];
|
if(isset($this->record[$field]) && is_object($this->record[$field])) return $this->record[$field];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user