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:
Sam Minnee 2007-12-12 22:59:30 +00:00
parent fcd42544ab
commit 5dac73b21e

View File

@ -740,6 +740,16 @@ class ViewableData extends Object implements Iterator {
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.
* This is set up like so that you can put $Debug.Content into your template to get debugging