From f29befe3b6f94962a19fd554cd66488db6ccc5fc Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 24 Aug 2010 17:22:14 -0300 Subject: Mutual field<->subfield app link --- classes/helpers/CinisisDisplayHelper.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'classes') 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 @@ -226,6 +226,38 @@ class CinisisDisplayHelper { return self::link('index.php', '?entry='. $entry, $entry); } + /** + * 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. */ -- cgit v1.2.3