Back to PhocacartRoute class

Method getFeedRoute

public static
getFeedRoute
(mixed $id = 0, mixed $idAlias = '', mixed $noSEF = 0)

Method getFeedRoute - Source code

public static function getFeedRoute($id = 0, $idAlias = '', $noSEF = 0)
{
    $needles = array('feed' => (int) $id, 'categories' => '', 'items' => '');
    if ($idAlias != '') {
        $id = $id . ':' . $idAlias;
    }
    $link = 'index.php?option=com_phocacart&view=feed&id=' . $id . '&format=xml';
    if ($noSEF == 1) {
        return $link;
    }
    $xml = self::_buildLink($link, $needles);
    return $xml;
}