Back to PhocaDownloadRoute class

Method getGuestbookRoute

public static
getGuestbookRoute
(mixed $id, mixed $title)

Method getGuestbookRoute - Source code

public static function getGuestbookRoute($id, $title)
{
    $needles = array('guestbook' => (int) $id);
    $link = 'index.php?option=com_phocaguestbook&view=guestbook&cid=' . (int) $id . '&reporttitle=' . strip_tags($title) . '&tmpl=component';
    if ($item = self::_findItem($needles, 1, 'com_phocaguestbook')) {
        if (isset($item->id)) {
            $link .= '&Itemid=' . $item->id;
        }
    }
    return $link;
}