mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
wakeless: #1689 - ViewableData::Me() function
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46724 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fcd42544ab
commit
5dac73b21e
@ -740,6 +740,16 @@ class ViewableData extends Object implements Iterator {
|
|||||||
return Director::absoluteBaseURL();
|
return Director::absoluteBaseURL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When rendering some objects it is necessary to iterate over the object being rendered, to
|
||||||
|
* do this, you need access to itself.
|
||||||
|
*
|
||||||
|
* @return ViewableData
|
||||||
|
*/
|
||||||
|
function Me() {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a Debugger object.
|
* Return a Debugger object.
|
||||||
* This is set up like so that you can put $Debug.Content into your template to get debugging
|
* This is set up like so that you can put $Debug.Content into your template to get debugging
|
||||||
|
Loading…
x
Reference in New Issue
Block a user