From 29e055f10a5ddf6424415c9cd9265d9d38e46ab3 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 20 Aug 2010 16:55:05 -0300 Subject: Code cleanup --- classes/helpers/CinisisDisplayHelper.php | 38 +++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'classes') 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 "
\n$text
"; + echo "
$text
"; + } + + /** + * Draws a pre open element. + */ + protected static function webPreOpen() { + echo "
";
+  }
+
+  /**
+   * Draws a pre open element.
+   */
+  protected static function webPreClose() {
+    echo "
"; } /** @@ -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); + } } -- cgit v1.2.3