Back to PhocacartCategory class

Method getPathRouter

public static
getPathRouter
(mixed $path = array(), mixed $id = 0, mixed $parent_id = 0, mixed $title = '', mixed $alias = '')

Method getPathRouter - Source code

public static function getPathRouter($path = array(), $id = 0, $parent_id = 0, $title = '', $alias = '')
{
    if (empty(self::$categoryA[$id])) {
        self::$categoryP[$id] = self::getPathTreeRouter($path, $id, $parent_id, $title, $alias);
    }
    return self::$categoryP[$id];
}