Back to PhocacartRoute class

Method getTermsRoute

public static
getTermsRoute
(mixed $id = 0, mixed $catid = 0, mixed $suffix = '')

Method getTermsRoute - Source code

public static function getTermsRoute($id = 0, $catid = 0, $suffix = '')
{
    $needles = array('terms' => '', 'item' => (int) $id, 'category' => (int) $catid, 'categories' => '', 'items' => '');
    $link = 'index.php?option=com_phocacart&view=terms';
    if ($suffix != '') {
        $link .= '&' . $suffix;
    }
    return self::_buildLink($link, $needles);
}