-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Components for Realtime User Monitoring
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace VrtakCZ\NewRelic\RUM; | ||
|
||
class FooterControl extends \Nette\Application\UI\Control | ||
{ | ||
/** @var bool */ | ||
private $withScriptTag = TRUE; | ||
|
||
/** | ||
* @return HeaderControl | ||
*/ | ||
public function disableScriptTag() | ||
{ | ||
$this->withScriptTag = FALSE; | ||
return $this; | ||
} | ||
|
||
public function render() | ||
{ | ||
echo newrelic_get_browser_timing_footer($this->withScriptTag); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace VrtakCZ\NewRelic\RUM; | ||
|
||
class HeaderControl extends \Nette\Application\UI\Control | ||
{ | ||
/** @var bool */ | ||
private $withScriptTag = TRUE; | ||
|
||
/** | ||
* @return HeaderControl | ||
*/ | ||
public function disableScriptTag() | ||
{ | ||
$this->withScriptTag = FALSE; | ||
return $this; | ||
} | ||
|
||
public function render() | ||
{ | ||
echo newrelic_get_browser_timing_header($this->withScriptTag); | ||
} | ||
} |