aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers/CinisisDisplayHelper.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-20 16:55:05 -0300
committerSilvio <silvio@devlet.com.br>2010-08-20 16:55:05 -0300
commit29e055f10a5ddf6424415c9cd9265d9d38e46ab3 (patch)
tree81c335672c2e4452e0ae0b6354565e7fa2e55a00 /classes/helpers/CinisisDisplayHelper.php
parentbf67bc20b46f3e464a21ca618e367efa503c6df6 (diff)
downloadcinisis-29e055f10a5ddf6424415c9cd9265d9d38e46ab3.tar.gz
cinisis-29e055f10a5ddf6424415c9cd9265d9d38e46ab3.tar.bz2
Code cleanup
Diffstat (limited to 'classes/helpers/CinisisDisplayHelper.php')
-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);
+ }
}