aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'classes/helpers')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php38
1 files changed, 37 insertions, 1 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php
index 468beb1..0a4b7f7 100644
--- a/classes/helpers/CinisisDisplayHelper.php
+++ b/classes/helpers/CinisisDisplayHelper.php
@@ -299,7 +299,21 @@ class CinisisDisplayHelper {
* Inner text.
*/
protected static function webPre($text) {
- echo "<pre>\n$text</pre>";
+ echo "<pre>$text</pre>";
+ }
+
+ /**
+ * Draws a pre open element.
+ */
+ protected static function webPreOpen() {
+ echo "<pre>";
+ }
+
+ /**
+ * Draws a pre open element.
+ */
+ protected static function webPreClose() {
+ echo "</pre>";
}
/**
@@ -311,4 +325,26 @@ class CinisisDisplayHelper {
protected static function cliPre($text) {
echo "$text\n";
}
+
+ /**
+ * Dump value.
+ *
+ * @param $var
+ * Variable to dump.
+ */
+ protected static function webDump($var) {
+ self::preOpen();
+ print_r($var);
+ self::preClose();
+ }
+
+ /**
+ * Dump value.
+ *
+ * @param $var
+ * Variable to dump.
+ */
+ protected static function cliDump($var) {
+ print_r($var);
+ }
}