From b20d9dcac191fadc671da69f0a82ab7065554ca6 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 16 Jan 2018 12:23:29 +0100 Subject: Add debugging classes for Pagelet, Stylesheet and Javascript --- include/classes/Debugging/Pagelet.php | 14 ++++++++++++++ include/classes/Debugging/Resource/Javascript.php | 14 ++++++++++++++ include/classes/Debugging/Resource/Stylesheet.php | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 include/classes/Debugging/Pagelet.php create mode 100644 include/classes/Debugging/Resource/Javascript.php create mode 100644 include/classes/Debugging/Resource/Stylesheet.php (limited to 'include') diff --git a/include/classes/Debugging/Pagelet.php b/include/classes/Debugging/Pagelet.php new file mode 100644 index 0000000..a06ff4c --- /dev/null +++ b/include/classes/Debugging/Pagelet.php @@ -0,0 +1,14 @@ +addPhaseDoneJS(constant("self::PHASE_$phase"), sprintf($code, $this->getID(), $phase)); + } + } +} +?> \ No newline at end of file diff --git a/include/classes/Debugging/Resource/Javascript.php b/include/classes/Debugging/Resource/Javascript.php new file mode 100644 index 0000000..b8d5bc3 --- /dev/null +++ b/include/classes/Debugging/Resource/Javascript.php @@ -0,0 +1,14 @@ +addPhaseDoneJS(constant("self::PHASE_$phase"), sprintf($code, $this->getID(), $phase)); + } + } +} +?> \ No newline at end of file diff --git a/include/classes/Debugging/Resource/Stylesheet.php b/include/classes/Debugging/Resource/Stylesheet.php new file mode 100644 index 0000000..7d9c8d8 --- /dev/null +++ b/include/classes/Debugging/Resource/Stylesheet.php @@ -0,0 +1,14 @@ +addPhaseDoneJS(constant("self::PHASE_$phase"), sprintf($code, $this->getID(), $phase)); + } + } +} +?> \ No newline at end of file -- cgit v1.2.3