mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
fc52af2668
commit
3982ccda5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user