aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'classes/helpers')
-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 />";
+ }
}