aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-18 12:22:55 -0300
committerSilvio <silvio@devlet.com.br>2010-08-18 12:22:55 -0300
commite949696dd9ba44b2bc3ad703d9704ed1d47a6d8f (patch)
tree5107b8a0e1983d8069f331af185f988d83792ace /classes
parent38eb563bc42fb1ab830fd27277aefe7f04937ee5 (diff)
downloadcinisis-e949696dd9ba44b2bc3ad703d9704ed1d47a6d8f.tar.gz
cinisis-e949696dd9ba44b2bc3ad703d9704ed1d47a6d8f.tar.bz2
Cleaning up samples
Diffstat (limited to 'classes')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php41
1 files changed, 41 insertions, 0 deletions
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 '<table><tr>';
+ }
+
+ /**
+ * Draws tags for closing a table.
+ */
+ static function close_table() {
+ echo '</tr></table>';
+ }
+
+ /**
+ * Draws a h2 element.
+ *
+ * @param $text
+ * Inner text.
+ */
+ static function h2($text) {
+ echo "<h2>$text</h2>";
+ }
+
+ /**
+ * Draws a h3 element.
+ *
+ * @param $text
+ * Inner text.
+ */
+ static function h3($text) {
+ echo "<h3>$text</h3>";
+ }
+
+ /**
+ * Draws a line break element.
+ */
+ static function h3($text) {
+ echo "<br />";
+ }
}