Merged [47061].

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60487 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 04:54:59 +00:00
parent fc52af2668
commit 3982ccda5c

View File

@ -781,6 +781,16 @@ class ViewableData extends Object implements IteratorAggregate {
return $this;
}
/**
* Returns wether the current request is triggered
* by an XMLHTTPRequest object.
*
* @return bool
*/
function IsAjax() {
return Director::is_ajax();
}
/**
* Return a Debugger object.
* This is set up like so that you can put $Debug.Content into your template to get debugging