PHPFusion\Downloads\Functions::breadcrumb_arrays PHP Метод

breadcrumb_arrays() публичный Метод

public breadcrumb_arrays ( $index, $id )
        function breadcrumb_arrays($index, $id)
        {
            $crumb =& $crumb;
            if (isset($index[get_parent($index, $id)])) {
                $_name = dbarray(dbquery("SELECT download_cat_id, download_cat_name, download_cat_parent FROM " . DB_DOWNLOAD_CATS . " " . (multilang_table("DL") ? "WHERE download_cat_language='" . LANGUAGE . "' and " : "where ") . "\n\t\t\t\tdownload_cat_id='" . intval($id) . "'"));
                $crumb = array('link' => INFUSIONS . "downloads/downloads.php?cat_id=" . $_name['download_cat_id'], 'title' => $_name['download_cat_name']);
                if (isset($index[get_parent($index, $id)])) {
                    if (get_parent($index, $id) == 0) {
                        return $crumb;
                    }
                    $crumb_1 = breadcrumb_arrays($index, get_parent($index, $id));
                    $crumb = array_merge_recursive($crumb, $crumb_1);
                    // convert so can comply to Fusion Tab API.
                }
            }
            return $crumb;
        }