########################### Repozitáře (výpisy objektů) ########################### .. code-block:: html+twig {% set newProducts = repository.product.findBy({ 'new': true, 'limit': 10 }) %} Zobrazeno: {{ newProducts|length }} {# vypíše 0 až 10 #} Celkem nových: {{ newProducts.totalCount }} {# celkový počet nových produktů - POZOR! Vytváří extra dotaz do databáze, který může být náročnější než vypsání prvních X položek #} ========= actuality ========= .. code-block:: html+twig {% for actuality in repository.actuality.findBy({ ... }) %} {{actuality.id}} {% endfor %} {{ repository.actuality.findOneBy({ }) }} {{ repository.actuality.count({ }) }} {% if repository.actuality.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **actuality** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "sort", "newest, oldest", "Řazení" "limit", "int", "Maximální počet výsledků" ======= article ======= .. code-block:: html+twig {% for article in repository.article.findBy({ ... }) %} {{article.id}} {% endfor %} {{ repository.article.findOneBy({ }) }} {{ repository.article.count({ }) }} {% if repository.article.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **article** :header: "Argument", Typ, "Popis" "id", "int, array", "ID článku" "skipId", "int, array", "Vyloučit ID článku" "topic", "int", "Téma článku" "author", "int", "Autor článku (id)" "skipTopic", "int, array", "Vyloučit téma článku" "product", "int", "Články produktu" "category", "int", "Články kategorie" "search", "string", "Obsahuje frázi" "sort", "random, randomForVisitorDaily, randomVisitorHourly, name, newest, oldest", "Řazení" "limit", "int", "Maximální počet výsledků" ========= attribute ========= .. code-block:: html+twig {% for attribute in repository.attribute.findBy({ ... }) %} {{attribute.id}} {% endfor %} {{ repository.attribute.findOneBy({ }) }} {{ repository.attribute.count({ }) }} {% if repository.attribute.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **attribute** :header: "Argument", Typ, "Popis" "id", "int, array", "ID parametru" "skipId", "int, array", "Vyloučit ID parametru" "type", "int, array", "Typ parametru" "section", "int, array", "Sekce" "meaning", "size, color, gender, material, pattern, age_group, unknown", "Význam" "namespace", "product, store, article", "Namespace" "limit", "int", "Maximální počet výsledků" ============== attributeValue ============== .. code-block:: html+twig {% for attributeValue in repository.attributeValue.findBy({ ... }) %} {{attributeValue.id}} {% endfor %} {{ repository.attributeValue.findOneBy({ }) }} {{ repository.attributeValue.count({ }) }} {% if repository.attributeValue.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **attributeValue** :header: "Argument", Typ, "Popis" "id", "int, array", "ID parametru" "skipId", "int, array", "Vyloučit ID parametru" "attribute", "int, array", "Typ parametru" "limit", "int", "Maximální počet výsledků" ====== author ====== .. code-block:: html+twig {% for author in repository.author.findBy({ ... }) %} {{author.id}} {% endfor %} {{ repository.author.findOneBy({ }) }} {{ repository.author.count({ }) }} {% if repository.author.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **author** :header: "Argument", Typ, "Popis" "id", "int, array", "ID banneru" "limit", "int", "Maximální počet výsledků" ====== banner ====== .. code-block:: html+twig {% for banner in repository.banner.findBy({ ... }) %} {{banner.id}} {% endfor %} {{ repository.banner.findOneBy({ }) }} {{ repository.banner.count({ }) }} {% if repository.banner.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **banner** :header: "Argument", Typ, "Popis" "id", "int, array", "ID banneru" "sectionId", "int", "ID sekce" "sectionCode", "string", "Kód sekce" "category", "int", "ID kategorie (bannery nastavené dané kategorii)" "brand", "int", "ID značky (bannery nastavené dané značce)" "sort", "random, priority", "Řazení" "limit", "int", "Maximální počet výsledků" ===== brand ===== .. code-block:: html+twig {% for brand in repository.brand.findBy({ ... }) %} {{brand.id}} {% endfor %} {{ repository.brand.findOneBy({ }) }} {{ repository.brand.count({ }) }} {% if repository.brand.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **brand** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "important", "bool", "Důležitý" "image", "bool", "Má obrázek" "search", "string", "Vyhledat podle názvu" "category", "int", "Kategorie" "sort", "random, priority, name", "Řazení" "limit", "int", "Maximální počet výsledků" ======== category ======== .. code-block:: html+twig {% for category in repository.category.findBy({ ... }) %} {{category.id}} {% endfor %} {{ repository.category.findOneBy({ }) }} {{ repository.category.count({ }) }} {% if repository.category.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **category** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "parent", "int", "ID nadřazené kategorie" "important", "bool", "Důležitý" "active", "bool", "Pouze aktivní (default true)" "empty", "bool", "Prázdná?" "alias", "bool", "Je aliasem jiné kategorie?" "search", "string", "Vyhledat podle názvu" "brand", "int", "Pouze kategorie s proukty značky" "level", "int", "Úroveň (začíná od 0)" "path", "string", "Všechny podkategorie cesty" "maximumLevel", "int", "Maximální roveň (včetně; začíná od 0)" "sort", "random, priority, name", "Řazení" "limit", "int", "Maximální počet výsledků" ======= comment ======= .. code-block:: html+twig {% for comment in repository.comment.findBy({ ... }) %} {{comment.id}} {% endfor %} {{ repository.comment.findOneBy({ }) }} {{ repository.comment.count({ }) }} {% if repository.comment.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **comment** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "for", "Product, Category, Article", "Objekt komentářů (produkt, článek, ...)" "structured", "bool", "Vypisovat strukturovaně" "limit", "int", "Maximální počet výsledků" ====================== compatibilityAttribute ====================== .. code-block:: html+twig {% for compatibilityAttribute in repository.compatibilityAttribute.findBy({ ... }) %} {{compatibilityAttribute.id}} {% endfor %} {{ repository.compatibilityAttribute.findOneBy({ }) }} {{ repository.compatibilityAttribute.count({ }) }} {% if repository.compatibilityAttribute.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **compatibilityAttribute** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "sort", "priority", "Řazení" "limit", "int", "Maximální počet výsledků" =========================== compatibilityAttributeValue =========================== .. code-block:: html+twig {% for compatibilityAttributeValue in repository.compatibilityAttributeValue.findBy({ ... }) %} {{compatibilityAttributeValue.id}} {% endfor %} {{ repository.compatibilityAttributeValue.findOneBy({ }) }} {{ repository.compatibilityAttributeValue.count({ }) }} {% if repository.compatibilityAttributeValue.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **compatibilityAttributeValue** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "attribute", "int", "ID atributu kompatibility" "limit", "int", "Maximální počet výsledků" =============== dynamicCategory =============== .. code-block:: html+twig {% for dynamicCategory in repository.dynamicCategory.findBy({ ... }) %} {{dynamicCategory.id}} {% endfor %} {{ repository.dynamicCategory.findOneBy({ }) }} {{ repository.dynamicCategory.count({ }) }} {% if repository.dynamicCategory.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **dynamicCategory** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "category", "int", "ID kategorie" "sort", "name", "Řazení" "limit", "int", "Maximální počet výsledků" ===== label ===== .. code-block:: html+twig {% for label in repository.label.findBy({ ... }) %} {{label.id}} {% endfor %} {{ repository.label.findOneBy({ }) }} {{ repository.label.count({ }) }} {% if repository.label.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **label** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "sort", "priority", "Řazení" "limit", "int", "Maximální počet výsledků" ============ loyaltyLevel ============ .. code-block:: html+twig {% for loyaltyLevel in repository.loyaltyLevel.findBy({ ... }) %} {{loyaltyLevel.id}} {% endfor %} {{ repository.loyaltyLevel.findOneBy({ }) }} {{ repository.loyaltyLevel.count({ }) }} {% if repository.loyaltyLevel.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **loyaltyLevel** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "type", "invoice, receipt", "Typ úrovně" "limit", "int", "Maximální počet výsledků" ==== enum ==== .. code-block:: html+twig {% for enum in repository.enum.findBy({ ... }) %} {{enum.id}} {% endfor %} {{ repository.enum.findOneBy({ }) }} {{ repository.enum.count({ }) }} {% if repository.enum.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **enum** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "meaning", "size, color, gender, material, pattern, age_group, unknown", "Význam" "sort", "name", "Řazení" "limit", "int", "Maximální počet výsledků" ========= enumValue ========= .. code-block:: html+twig {% for enumValue in repository.enumValue.findBy({ ... }) %} {{enumValue.id}} {% endfor %} {{ repository.enumValue.findOneBy({ }) }} {{ repository.enumValue.count({ }) }} {% if repository.enumValue.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **enumValue** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "enum", "int", "ID číselníku" "sort", "name, priority", "Řazení" "limit", "int", "Maximální počet výsledků" ======= product ======= .. code-block:: html+twig {% for product in repository.product.findBy({ ... }) %} {{product.id}} {% endfor %} {{ repository.product.findOneBy({ }) }} {{ repository.product.count({ }) }} {% if repository.product.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **product** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "skipId", "int, array", "Přeskočit ID produktu" "category", "int, array", "ID kategorie" "subcategories", "bool", "Zahrnout produkty z podkategorií" "skipCategory", "int", "Přeskočit ID hlavní kategorie" "inStock", "bool", "Pouze produkty skladem" "sellout", "bool", "Výprodej" "bestseller", "bool", "Nejprodávanější" "discount", "bool", "Ve slevě" "promo", "bool", "Akce" "promoCategory", "int", "Akce pro kategorii" "new", "bool", "Novinka" "viewed", "bool", "Naposledy zhlédnuté produkty" "wished", "bool", "Seznam přání" "image", "bool", "Produkty s obrázkem" "recommendHomepage", "bool", "Doporučit produkty pro homepage uživatele" "recommendCart", "bool", "Doporučit produkty pro košík uživatele" "recommendSimilar", "int", "Doporučit podobné produkty pro ID produktu" "recommendCrossSell", "int", "Doporučit cross-sell produkty pro ID produktu" "recommendDefault", "int", "Doporučit produkty pro ID produktu" "file", "bool, string", "Produkty se souborem (lze filtrovat typ souboru - manuál apod)" "video", "bool", "Produkty s videem" "search", "string", "Obsahuje frázi" "priceFrom", "float", "Minimální cena" "priceTo", "float", "Maximální cena" "brand", "int, array", "ID značky" "label", "int, array", "ID štítku" "skipLabel", "int, array", "ID vyloučeného štítku" "customersAlsoBought", "int", "ID produktu, ke kterému hledat často nakupované položky" "relevant", "int, Product", "Související produkty pro ID produktu" "accessory", "int, Product", "Příslušenství pro ID produktu" "similar", "int, Product", "Podobné produkty pro ID produktu" "attributes", "array", "Pole parametrů s ID hodnot" "boolAttributes", "array", "Pole ID parametrů" "sort", "priority, newest, random, randomForVisitorDaily, randomForVisitorHourly, lastStockIn, name, price, priceDesc, bestseller", "Řazení" "limit", "int", "Maximální počet výsledků" ====== review ====== .. code-block:: html+twig {% for review in repository.review.findBy({ ... }) %} {{review.id}} {% endfor %} {{ repository.review.findOneBy({ }) }} {{ repository.review.count({ }) }} {% if repository.review.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **review** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "type", "order, product", "Typ recenze" "rel", "int", "Id recenzovaného objektu (produktu)" "text", "bool", "Pouze recenze s textem" "minimalRating", "int", "Pouze s vyšším hodnocením" "sort", "oldest, newest", "Řazení" "limit", "int", "Maximální počet výsledků" ============= storageCenter ============= .. code-block:: html+twig {% for storageCenter in repository.storageCenter.findBy({ ... }) %} {{storageCenter.id}} {% endfor %} {{ repository.storageCenter.findOneBy({ }) }} {{ repository.storageCenter.count({ }) }} {% if repository.storageCenter.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **storageCenter** :header: "Argument", Typ, "Popis" "limit", "int", "Maximální počet výsledků" ===== store ===== .. code-block:: html+twig {% for store in repository.store.findBy({ ... }) %} {{store.id}} {% endfor %} {{ repository.store.findOneBy({ }) }} {{ repository.store.count({ }) }} {% if repository.store.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **store** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "attributeValue", "int, array", "Hodnoty parametrů" "pickup", "bool", "Osobní odběr?" "country", "string, array", "Kód země" "sort", "priority, name", "Řazení" "limit", "int", "Maximální počet výsledků" ======== textPage ======== .. code-block:: html+twig {% for textPage in repository.textPage.findBy({ ... }) %} {{textPage.id}} {% endfor %} {{ repository.textPage.findOneBy({ }) }} {{ repository.textPage.count({ }) }} {% if repository.textPage.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **textPage** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "code", "string, array", "Kód" "limit", "int", "Maximální počet výsledků" ============ articleTopic ============ .. code-block:: html+twig {% for articleTopic in repository.articleTopic.findBy({ ... }) %} {{articleTopic.id}} {% endfor %} {{ repository.articleTopic.findOneBy({ }) }} {{ repository.articleTopic.count({ }) }} {% if repository.articleTopic.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **articleTopic** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "sort", "name, priority", "Řazení" "limit", "int", "Maximální počet výsledků" ======= variant ======= .. code-block:: html+twig {% for variant in repository.variant.findBy({ ... }) %} {{variant.id}} {% endfor %} {{ repository.variant.findOneBy({ }) }} {{ repository.variant.count({ }) }} {% if repository.variant.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **variant** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "product", "int", "Id produktu" "enumValue", "int, array", "Id hodnoty číselnku" "sort", "name, priority, price", "Řazení" "limit", "int", "Maximální počet výsledků" ===== video ===== .. code-block:: html+twig {% for video in repository.video.findBy({ ... }) %} {{video.id}} {% endfor %} {{ repository.video.findOneBy({ }) }} {{ repository.video.count({ }) }} {% if repository.video.count({ }) %} {% endif %} .. csv-table:: Argumenty repozitáře **video** :header: "Argument", Typ, "Popis" "id", "int, array", "ID" "type", "category, product, other", "Typ videa" "sort", "newest, oldest, priority", "Řazení" "limit", "int", "Maximální počet výsledků"