PriceOfferThemeContentView
extends ThemeContentView
in package
Uses
AntiSpamUtilityTrait
Class PriceOfferThemeContentView
Table of Contents
- ANTI_SPAM_ELEMENT_NAME = 'ae6b85682663ab4570bd10c67b83d21fe77cdf97'
- sha1 sum of string "anti spam"
- $content_array : mixed
- $deprecated_array : mixed
- $v_cache_id_elements_array : mixed
- $v_caching_enabled : mixed
- $v_compile_check_enabled : mixed
- $v_content_template : mixed
- $v_coo_smarty : bool|GXSmarty
- $v_env_get_array : mixed
- $v_env_post_array : mixed
- $v_flat_assigns : mixed
- $v_min_deprecation_level : mixed
- $v_session_id_placeholder : mixed
- $v_template_dir : mixed
- $attributes_data_array : mixed
- $attributes_ids_array : mixed
- $build_html : mixed
- $coo_captcha : mixed
- $coo_main : mixed
- $coo_seo_boost : mixed
- $coo_xtc_price : mixed
- $customer_data_array : mixed
- $escape_html : mixed
- $language_id : mixed
- $product_data_array : mixed
- $product_id : mixed
- $product_price : mixed
- $propertie_combis_id : mixed
- $propertie_value_ids_array : mixed
- $sellingUnit : SellingUnitInterface
- $storedAntiSpamToken : null|string
- __construct() : mixed
- add_cache_id_elements() : mixed
- before_build_html() : mixed
- build_html() : mixed
- clear_cache_id_elements() : mixed
- get_cache_id() : mixed
- get_content_array() : mixed
- get_content_template() : mixed
- get_default_template() : string
- get the first template from folder
- get_flat_assigns() : mixed
- get_html() : mixed
- get_merged_deprecated_array() : mixed
- get_session_id_placeholder() : mixed
- init_smarty() : mixed
- is_cached() : mixed
- is_caching_enabled() : mixed
- is_compile_check_enabled() : mixed
- prepare_data() : mixed
- replace_session_id_placeholder() : mixed
- search_deprecated_keys() : mixed
- set_attributes_ids_array() : mixed
- set_caching_enabled() : mixed
- set_compile_check_enabled() : mixed
- set_content_data() : void
- Inject the content data to the template file that they are accessible in template with variables.
- set_content_template() : void
- Sets the content template file.
- set_content_template_from_string() : mixed
- Smarty can render templates from a string by using the string: or eval: resource.
- set_escape_html() : mixed
- Set whether HTML must be escaped automatically.
- set_flat_assigns() : mixed
- set_propertie_value_ids_array() : mixed
- set_template_dir() : void
- Sets the template directory path.
- add_attributes_data() : mixed
- add_customer_data() : mixed
- add_data() : mixed
- add_error() : mixed
- add_form_data() : mixed
- add_product_data() : mixed
- application() : Application
- createProduct() : product_ORIGIN
- get_attributes() : mixed
- get_customer_data() : mixed
- get_data() : mixed
- get_get_params_string() : mixed
- get_price() : mixed
- get_product_data() : mixed
- get_propertie_combi() : mixed
- getMainProductImage() : string
- getModifierIdentifierCollection() : ModifierIdentifierCollectionInterface
- is_admin_file() : bool
- is_extension_file() : bool
- sellingUnit() : SellingUnitInterface
- sellingUnitReadService() : SellingUnitReadServiceInterface
- send_mail() : mixed
- set_deprecated_array() : mixed
- set_validation_rules() : mixed
- generateSecretAntiSpamToken() : string
- will generate random id and timestamp when the form is allowed to be processed value will be stored in session, under key "sast" (Secret Anti Spam Token), so it can be validated by "sendAntiSpamInputIsValid" upon sending
- sendAntiSpamInputIsValid() : bool
- Validates if transmitted Secret Anti Spam Token is the stored one and if enough time has passed since originally generating it
Constants
ANTI_SPAM_ELEMENT_NAME
sha1 sum of string "anti spam"
protected
mixed
ANTI_SPAM_ELEMENT_NAME
= 'ae6b85682663ab4570bd10c67b83d21fe77cdf97'
Properties
$content_array
public
mixed
$content_array
= []
$deprecated_array
public
mixed
$deprecated_array
= []
$v_cache_id_elements_array
public
mixed
$v_cache_id_elements_array
= []
$v_caching_enabled
public
mixed
$v_caching_enabled
= alse
$v_compile_check_enabled
public
mixed
$v_compile_check_enabled
= alse
$v_content_template
public
mixed
$v_content_template
= ''
$v_coo_smarty
public
bool|GXSmarty
$v_coo_smarty
= alse
$v_env_get_array
public
mixed
$v_env_get_array
= []
$v_env_post_array
public
mixed
$v_env_post_array
= []
$v_flat_assigns
public
mixed
$v_flat_assigns
= alse
$v_min_deprecation_level
public
mixed
$v_min_deprecation_level
= 2
$v_session_id_placeholder
public
mixed
$v_session_id_placeholder
= '[#%_SESSION_ID_PLACEHOLDER_%#]'
$v_template_dir
public
mixed
$v_template_dir
= ''
$attributes_data_array
protected
mixed
$attributes_data_array
= []
$attributes_ids_array
protected
mixed
$attributes_ids_array
$build_html
protected
mixed
$build_html
= rue
$coo_captcha
protected
mixed
$coo_captcha
$coo_main
protected
mixed
$coo_main
$coo_seo_boost
protected
mixed
$coo_seo_boost
$coo_xtc_price
protected
mixed
$coo_xtc_price
$customer_data_array
protected
mixed
$customer_data_array
$escape_html
protected
mixed
$escape_html
= alse
$language_id
protected
mixed
$language_id
$product_data_array
protected
mixed
$product_data_array
= []
$product_id
protected
mixed
$product_id
$product_price
protected
mixed
$product_price
$propertie_combis_id
protected
mixed
$propertie_combis_id
$propertie_value_ids_array
protected
mixed
$propertie_value_ids_array
$sellingUnit
protected
SellingUnitInterface
$sellingUnit
$storedAntiSpamToken
protected
null|string
$storedAntiSpamToken
=
ull
Methods
__construct()
public
__construct() : mixed
Return values
mixed —add_cache_id_elements()
public
add_cache_id_elements(mixed $p_elements_array) : mixed
Parameters
- $p_elements_array : mixed
Return values
mixed —before_build_html()
public
before_build_html() : mixed
Return values
mixed —build_html()
public
build_html([mixed $p_content_data_array = false ][, mixed $p_template_file = false ]) : mixed
Parameters
- $p_content_data_array : mixed = false
- $p_template_file : mixed = false
Return values
mixed —clear_cache_id_elements()
public
clear_cache_id_elements() : mixed
Return values
mixed —get_cache_id()
public
get_cache_id() : mixed
Return values
mixed —get_content_array()
public
get_content_array([mixed $p_max_deprecation_level = false ]) : mixed
Parameters
- $p_max_deprecation_level : mixed = false
Return values
mixed —get_content_template()
public
get_content_template() : mixed
Return values
mixed —get_default_template()
get the first template from folder
public
get_default_template(string $filePath, string $prefix[, string $template = 'default' ]) : string
this function gets the first template from the folder, if the given filepath not an file
Parameters
- $filePath : string
-
Path to the templates
- $prefix : string
-
prefix of the type of template
- $template : string = 'default'
-
Name of the template
Return values
string —Template basename
get_flat_assigns()
public
get_flat_assigns() : mixed
Return values
mixed —get_html()
public
get_html() : mixed
Return values
mixed —get_merged_deprecated_array()
public
get_merged_deprecated_array([mixed $p_max_deprecation_level = false ]) : mixed
Parameters
- $p_max_deprecation_level : mixed = false
Return values
mixed —get_session_id_placeholder()
public
get_session_id_placeholder() : mixed
Return values
mixed —init_smarty()
public
init_smarty() : mixed
Return values
mixed —is_cached()
public
is_cached() : mixed
Return values
mixed —is_caching_enabled()
public
is_caching_enabled() : mixed
Return values
mixed —is_compile_check_enabled()
public
is_compile_check_enabled() : mixed
Return values
mixed —prepare_data()
public
prepare_data() : mixed
Return values
mixed —replace_session_id_placeholder()
public
replace_session_id_placeholder(mixed $p_content) : mixed
Parameters
- $p_content : mixed
Return values
mixed —search_deprecated_keys()
public
search_deprecated_keys(mixed $p_key_array, mixed &$p_array) : mixed
Parameters
- $p_key_array : mixed
- $p_array : mixed
Return values
mixed —set_attributes_ids_array()
public
set_attributes_ids_array(array<string|int, mixed> $attributeIds) : mixed
Parameters
- $attributeIds : array<string|int, mixed>
Return values
mixed —set_caching_enabled()
public
set_caching_enabled(mixed $p_status) : mixed
Parameters
- $p_status : mixed
Return values
mixed —set_compile_check_enabled()
public
set_compile_check_enabled(mixed $p_status) : mixed
Parameters
- $p_status : mixed
Return values
mixed —set_content_data()
Inject the content data to the template file that they are accessible in template with variables.
public
set_content_data(mixed $p_content_name, mixed $p_content_item, mixed $p_deprecation_level) : void
Parameters
- $p_content_name : mixed
- $p_content_item : mixed
- $p_deprecation_level : mixed
Return values
void —set_content_template()
Sets the content template file.
public
set_content_template(mixed $p_filepath) : void
Parameters
- $p_filepath : mixed
Return values
void —set_content_template_from_string()
Smarty can render templates from a string by using the string: or eval: resource.
public
set_content_template_from_string(string $p_template[, bool $storeCompiledTemplate = true ]) : mixed
Parameters
- $p_template : string
- $storeCompiledTemplate : bool = true
-
If set on "true", each unique template string will create a new compiled template file. If your template strings are accessed frequently, this is a good choice. If you have frequently changing template strings (or strings with low reuse value), "false" may be a better choice, as it doesn't save compiled templates to disk.
Return values
mixed —set_escape_html()
Set whether HTML must be escaped automatically.
public
set_escape_html(bool $value) : mixed
Parameters
- $value : bool
Tags
Return values
mixed —set_flat_assigns()
public
set_flat_assigns(mixed $p_status) : mixed
Parameters
- $p_status : mixed
Return values
mixed —set_propertie_value_ids_array()
public
set_propertie_value_ids_array(array<string|int, mixed> $propertyValueIds) : mixed
Parameters
- $propertyValueIds : array<string|int, mixed>
Return values
mixed —set_template_dir()
Sets the template directory path.
public
set_template_dir(mixed $p_dir_path) : void
Parameters
- $p_dir_path : mixed
Return values
void —add_attributes_data()
protected
add_attributes_data() : mixed
Return values
mixed —add_customer_data()
protected
add_customer_data() : mixed
Return values
mixed —add_data()
protected
add_data() : mixed
Return values
mixed —add_error()
protected
add_error() : mixed
Return values
mixed —add_form_data()
protected
add_form_data() : mixed
Return values
mixed —add_product_data()
protected
add_product_data() : mixed
Tags
Return values
mixed —application()
protected
application() : Application
Return values
Application —createProduct()
protected
createProduct(ProductId $productId) : product_ORIGIN
Parameters
- $productId : ProductId
Return values
product_ORIGIN —get_attributes()
protected
get_attributes() : mixed
Return values
mixed —get_customer_data()
protected
get_customer_data() : mixed
Return values
mixed —get_data()
protected
get_data() : mixed
Return values
mixed —get_get_params_string()
protected
get_get_params_string() : mixed
Return values
mixed —get_price()
protected
get_price() : mixed
Return values
mixed —get_product_data()
protected
get_product_data() : mixed
Return values
mixed —get_propertie_combi()
protected
get_propertie_combi() : mixed
Return values
mixed —getMainProductImage()
protected
getMainProductImage() : string
Tags
Return values
string —getModifierIdentifierCollection()
protected
getModifierIdentifierCollection() : ModifierIdentifierCollectionInterface
Return values
ModifierIdentifierCollectionInterface —is_admin_file()
protected
is_admin_file(mixed $p_full_template_path) : bool
Parameters
- $p_full_template_path : mixed
Return values
bool —is_extension_file()
protected
is_extension_file(string $filename) : bool
Parameters
- $filename : string
Return values
bool —sellingUnit()
protected
sellingUnit() : SellingUnitInterface
Tags
Return values
SellingUnitInterface —sellingUnitReadService()
protected
sellingUnitReadService() : SellingUnitReadServiceInterface
Return values
SellingUnitReadServiceInterface —send_mail()
protected
send_mail() : mixed
Return values
mixed —set_deprecated_array()
protected
set_deprecated_array() : mixed
Return values
mixed —set_validation_rules()
protected
set_validation_rules() : mixed
Return values
mixed —generateSecretAntiSpamToken()
will generate random id and timestamp when the form is allowed to be processed value will be stored in session, under key "sast" (Secret Anti Spam Token), so it can be validated by "sendAntiSpamInputIsValid" upon sending
private
generateSecretAntiSpamToken() : string
Tags
Return values
string —sendAntiSpamInputIsValid()
Validates if transmitted Secret Anti Spam Token is the stored one and if enough time has passed since originally generating it
private
sendAntiSpamInputIsValid(string $value) : bool
Parameters
- $value : string
-
transmitted value of input named "ae6b85682663ab4570bd10c67b83d21fe77cdf97"