aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'classes/helpers')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php
index e6666d7..7802f42 100644
--- a/classes/helpers/CinisisDisplayHelper.php
+++ b/classes/helpers/CinisisDisplayHelper.php
@@ -227,6 +227,38 @@ class CinisisDisplayHelper {
}
/**
+ * Format a link to the field app.
+ *
+ * @param $entry
+ * Entry number.
+ *
+ * @param $fid
+ * Field code.
+ *
+ * @return
+ * Formatted link.
+ */
+ protected static function webFieldLink($entry, $fid) {
+ return "Field search: ". self::link('field.php', '?entry='. $entry .'&fid='. $fid, $entry);
+ }
+
+ /**
+ * Format a link to the field app.
+ *
+ * @param $entry
+ * Entry number.
+ *
+ * @param $fid
+ * Field code.
+ *
+ * @return
+ * Formatted link.
+ */
+ protected static function webRepetitionLink($entry, $fid) {
+ return "Repetition search: ". self::link('repetition.php', '?entry='. $entry .'&fid='. $fid, $entry);
+ }
+
+ /**
* Draws tags for opening a table.
*/
protected static function webOpenTable() {