Repozitáře (výpisy objektů)

{% 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

{% for actuality in repository.actuality.findBy({ ... }) %}
   {{actuality.id}}
{% endfor %}

{{ repository.actuality.findOneBy({  }) }}


{{ repository.actuality.count({  }) }}


{% if repository.actuality.count({  }) %}  {% endif %}
Argumenty repozitáře actuality

Argument

Typ

Popis

id

int, array

ID

sort

newest, oldest

Řazení

limit

int

Maximální počet výsledků

article

{% for article in repository.article.findBy({ ... }) %}
   {{article.id}}
{% endfor %}

{{ repository.article.findOneBy({  }) }}


{{ repository.article.count({  }) }}


{% if repository.article.count({  }) %}  {% endif %}
Argumenty repozitáře article

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

{% for attribute in repository.attribute.findBy({ ... }) %}
   {{attribute.id}}
{% endfor %}

{{ repository.attribute.findOneBy({  }) }}


{{ repository.attribute.count({  }) }}


{% if repository.attribute.count({  }) %}  {% endif %}
Argumenty repozitáře attribute

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

{% for attributeValue in repository.attributeValue.findBy({ ... }) %}
   {{attributeValue.id}}
{% endfor %}

{{ repository.attributeValue.findOneBy({  }) }}


{{ repository.attributeValue.count({  }) }}


{% if repository.attributeValue.count({  }) %}  {% endif %}
Argumenty repozitáře attributeValue

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

{% for author in repository.author.findBy({ ... }) %}
   {{author.id}}
{% endfor %}

{{ repository.author.findOneBy({  }) }}


{{ repository.author.count({  }) }}


{% if repository.author.count({  }) %}  {% endif %}
Argumenty repozitáře author

Argument

Typ

Popis

id

int, array

ID banneru

limit

int

Maximální počet výsledků

brand

{% for brand in repository.brand.findBy({ ... }) %}
   {{brand.id}}
{% endfor %}

{{ repository.brand.findOneBy({  }) }}


{{ repository.brand.count({  }) }}


{% if repository.brand.count({  }) %}  {% endif %}
Argumenty repozitáře brand

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

{% for category in repository.category.findBy({ ... }) %}
   {{category.id}}
{% endfor %}

{{ repository.category.findOneBy({  }) }}


{{ repository.category.count({  }) }}


{% if repository.category.count({  }) %}  {% endif %}
Argumenty repozitáře category

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

{% for comment in repository.comment.findBy({ ... }) %}
   {{comment.id}}
{% endfor %}

{{ repository.comment.findOneBy({  }) }}


{{ repository.comment.count({  }) }}


{% if repository.comment.count({  }) %}  {% endif %}
Argumenty repozitáře comment

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

{% for compatibilityAttribute in repository.compatibilityAttribute.findBy({ ... }) %}
   {{compatibilityAttribute.id}}
{% endfor %}

{{ repository.compatibilityAttribute.findOneBy({  }) }}


{{ repository.compatibilityAttribute.count({  }) }}


{% if repository.compatibilityAttribute.count({  }) %}  {% endif %}
Argumenty repozitáře compatibilityAttribute

Argument

Typ

Popis

id

int, array

ID

sort

priority

Řazení

limit

int

Maximální počet výsledků

compatibilityAttributeValue

{% for compatibilityAttributeValue in repository.compatibilityAttributeValue.findBy({ ... }) %}
   {{compatibilityAttributeValue.id}}
{% endfor %}

{{ repository.compatibilityAttributeValue.findOneBy({  }) }}


{{ repository.compatibilityAttributeValue.count({  }) }}


{% if repository.compatibilityAttributeValue.count({  }) %}  {% endif %}
Argumenty repozitáře compatibilityAttributeValue

Argument

Typ

Popis

id

int, array

ID

attribute

int

ID atributu kompatibility

limit

int

Maximální počet výsledků

dynamicCategory

{% for dynamicCategory in repository.dynamicCategory.findBy({ ... }) %}
   {{dynamicCategory.id}}
{% endfor %}

{{ repository.dynamicCategory.findOneBy({  }) }}


{{ repository.dynamicCategory.count({  }) }}


{% if repository.dynamicCategory.count({  }) %}  {% endif %}
Argumenty repozitáře dynamicCategory

Argument

Typ

Popis

id

int, array

ID

category

int

ID kategorie

sort

name

Řazení

limit

int

Maximální počet výsledků

label

{% for label in repository.label.findBy({ ... }) %}
   {{label.id}}
{% endfor %}

{{ repository.label.findOneBy({  }) }}


{{ repository.label.count({  }) }}


{% if repository.label.count({  }) %}  {% endif %}
Argumenty repozitáře label

Argument

Typ

Popis

id

int, array

ID

sort

priority

Řazení

limit

int

Maximální počet výsledků

loyaltyLevel

{% for loyaltyLevel in repository.loyaltyLevel.findBy({ ... }) %}
   {{loyaltyLevel.id}}
{% endfor %}

{{ repository.loyaltyLevel.findOneBy({  }) }}


{{ repository.loyaltyLevel.count({  }) }}


{% if repository.loyaltyLevel.count({  }) %}  {% endif %}
Argumenty repozitáře loyaltyLevel

Argument

Typ

Popis

id

int, array

ID

type

invoice, receipt

Typ úrovně

limit

int

Maximální počet výsledků

enum

{% for enum in repository.enum.findBy({ ... }) %}
   {{enum.id}}
{% endfor %}

{{ repository.enum.findOneBy({  }) }}


{{ repository.enum.count({  }) }}


{% if repository.enum.count({  }) %}  {% endif %}
Argumenty repozitáře enum

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

{% for enumValue in repository.enumValue.findBy({ ... }) %}
   {{enumValue.id}}
{% endfor %}

{{ repository.enumValue.findOneBy({  }) }}


{{ repository.enumValue.count({  }) }}


{% if repository.enumValue.count({  }) %}  {% endif %}
Argumenty repozitáře enumValue

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

{% for product in repository.product.findBy({ ... }) %}
   {{product.id}}
{% endfor %}

{{ repository.product.findOneBy({  }) }}


{{ repository.product.count({  }) }}


{% if repository.product.count({  }) %}  {% endif %}
Argumenty repozitáře product

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

{% for review in repository.review.findBy({ ... }) %}
   {{review.id}}
{% endfor %}

{{ repository.review.findOneBy({  }) }}


{{ repository.review.count({  }) }}


{% if repository.review.count({  }) %}  {% endif %}
Argumenty repozitáře review

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

{% for storageCenter in repository.storageCenter.findBy({ ... }) %}
   {{storageCenter.id}}
{% endfor %}

{{ repository.storageCenter.findOneBy({  }) }}


{{ repository.storageCenter.count({  }) }}


{% if repository.storageCenter.count({  }) %}  {% endif %}
Argumenty repozitáře storageCenter

Argument

Typ

Popis

limit

int

Maximální počet výsledků

store

{% for store in repository.store.findBy({ ... }) %}
   {{store.id}}
{% endfor %}

{{ repository.store.findOneBy({  }) }}


{{ repository.store.count({  }) }}


{% if repository.store.count({  }) %}  {% endif %}
Argumenty repozitáře store

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

{% for textPage in repository.textPage.findBy({ ... }) %}
   {{textPage.id}}
{% endfor %}

{{ repository.textPage.findOneBy({  }) }}


{{ repository.textPage.count({  }) }}


{% if repository.textPage.count({  }) %}  {% endif %}
Argumenty repozitáře textPage

Argument

Typ

Popis

id

int, array

ID

code

string, array

Kód

limit

int

Maximální počet výsledků

articleTopic

{% for articleTopic in repository.articleTopic.findBy({ ... }) %}
   {{articleTopic.id}}
{% endfor %}

{{ repository.articleTopic.findOneBy({  }) }}


{{ repository.articleTopic.count({  }) }}


{% if repository.articleTopic.count({  }) %}  {% endif %}
Argumenty repozitáře articleTopic

Argument

Typ

Popis

id

int, array

ID

sort

name, priority

Řazení

limit

int

Maximální počet výsledků

variant

{% for variant in repository.variant.findBy({ ... }) %}
   {{variant.id}}
{% endfor %}

{{ repository.variant.findOneBy({  }) }}


{{ repository.variant.count({  }) }}


{% if repository.variant.count({  }) %}  {% endif %}
Argumenty repozitáře variant

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

{% for video in repository.video.findBy({ ... }) %}
   {{video.id}}
{% endfor %}

{{ repository.video.findOneBy({  }) }}


{{ repository.video.count({  }) }}


{% if repository.video.count({  }) %}  {% endif %}
Argumenty repozitáře video

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ů