<<

NAME

ProductOpener::KnowledgePanelsIngredients - Generate knowledge panels to report a problem with the data or the product

SYNOPSIS

Knowledge panels to indicate how to report a problem with the product data, or with the product (e.g. link to report to authorities like SignalConso in France)

create_ingredients_list_panel ( $product_ref, $target_lc, $target_cc, $options_ref )

Creates a panel with a list of ingredients as individual panels.

Arguments

product reference $product_ref

language code $target_lc

country code $target_cc

create_ingredients_panel ( $product_ref, $target_lc, $target_cc, $options_ref )

Creates a knowledge panel with the list of ingredients.

Arguments

product reference $product_ref

Loaded from the MongoDB database, Storable files, or the OFF API.

language code $target_lc

Returned attributes contain both data and strings intended to be displayed to users. This parameter sets the desired language for the user facing strings.

country code $target_cc

create_additives_panel ( $product_ref, $target_lc, $target_cc, $options_ref )

Creates knowledge panels for additives.

Arguments

product reference $product_ref

language code $target_lc

country code $target_cc

create_ingredients_analysis_panel ( $product_ref, $target_lc, $target_cc, $options_ref )

Creates a knowledge panel with the results of ingredients analysis.

Arguments

product reference $product_ref

Loaded from the MongoDB database, Storable files, or the OFF API.

language code $target_lc

Returned attributes contain both data and strings intended to be displayed to users. This parameter sets the desired language for the user facing strings.

country code $target_cc

<<