From e949696dd9ba44b2bc3ad703d9704ed1d47a6d8f Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 18 Aug 2010 12:22:55 -0300 Subject: Cleaning up samples --- classes/helpers/CinisisDisplayHelper.php | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'classes/helpers') diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php index e5cbafe..4988c3e 100644 --- a/classes/helpers/CinisisDisplayHelper.php +++ b/classes/helpers/CinisisDisplayHelper.php @@ -150,4 +150,45 @@ class CinisisDisplayHelper { static function entry_link($entry) { return self::link('index.php', '?entry='. $entry, $entry); } + + /** + * Draws tags for opening a table. + */ + static function open_table() { + echo ''; + } + + /** + * Draws tags for closing a table. + */ + static function close_table() { + echo '
'; + } + + /** + * Draws a h2 element. + * + * @param $text + * Inner text. + */ + static function h2($text) { + echo "

$text

"; + } + + /** + * Draws a h3 element. + * + * @param $text + * Inner text. + */ + static function h3($text) { + echo "

$text

"; + } + + /** + * Draws a line break element. + */ + static function h3($text) { + echo "
"; + } } -- cgit v1.2.3