TellAFriendThemeContentView
extends ThemeContentView
in package
Uses
AntiSpamUtilityTrait
Class ThemeContentView
Table of Contents
- $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
- $attributeIds : mixed
- $build_html : mixed
- $captchaObject : mixed
- $customerFirstName : mixed
- $customerId : mixed
- $customerLastName : mixed
- $email : mixed
- $escape_html : mixed
- $languagesId : mixed
- $message : mixed
- $name : mixed
- $post : mixed
- $privacyAccepted : mixed
- $productName : mixed
- $productsId : mixed
- $propertyValueIds : mixed
- $storedAntiSpamToken : null|string
- $antiSpamValue : 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
- getCaptchaObject() : Captcha
- getCustomerFirstName() : string
- getCustomerId() : int
- getCustomerLastName() : string
- getEmail() : string
- getLanguagesId() : int
- getMessage() : string
- getName() : string
- getPost() : array<string|int, mixed>
- getProductsId() : int
- 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_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_template_dir() : void
- Sets the template directory path.
- setAttributeIds() : mixed
- setCaptchaObject() : mixed
- setCustomerFirstName() : mixed
- setCustomerId() : mixed
- setCustomerLastName() : mixed
- setEmail() : mixed
- setHiddenAntiSpamValue() : void
- setLanguagesId() : mixed
- setMessage() : mixed
- setName() : mixed
- setPost() : mixed
- setPrivacyAccepted() : mixed
- setProductQuestionTemplate() : mixed
- setProductsId() : mixed
- setPropertyValueIds() : mixed
- _getAttributesAndProperties() : array<string|int, mixed>
- _getCustomerEmailSql() : string
- _getFormData() : array<string|int, mixed>
- _getProductsNameSql() : string
- _getSenderAddress() : string
- _prepareEmailForm() : mixed
- _prepareMail() : mixed
- _validateInput() : mixed|string|bool
- is_admin_file() : bool
- is_extension_file() : bool
- set_deprecated_array() : 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
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
= ''
$attributeIds
protected
mixed
$attributeIds
= []
$build_html
protected
mixed
$build_html
= rue
$captchaObject
protected
mixed
$captchaObject
$customerFirstName
protected
mixed
$customerFirstName
$customerId
protected
mixed
$customerId
$customerLastName
protected
mixed
$customerLastName
protected
mixed
$email
$escape_html
protected
mixed
$escape_html
= alse
$languagesId
protected
mixed
$languagesId
$message
protected
mixed
$message
$name
protected
mixed
$name
$post
protected
mixed
$post
$privacyAccepted
protected
mixed
$privacyAccepted
= 0
$productName
protected
mixed
$productName
$productsId
protected
mixed
$productsId
$propertyValueIds
protected
mixed
$propertyValueIds
= []
$storedAntiSpamToken
protected
null|string
$storedAntiSpamToken
=
ull
$antiSpamValue
private
string
$antiSpamValue
= ''
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 —getCaptchaObject()
public
getCaptchaObject() : Captcha
Return values
Captcha —Captcha Object
getCustomerFirstName()
public
getCustomerFirstName() : string
Return values
string —Customer First Name
getCustomerId()
public
getCustomerId() : int
Return values
int —Customer ID
getCustomerLastName()
public
getCustomerLastName() : string
Return values
string —Customer Last Name
getEmail()
public
getEmail() : string
Return values
string —POST of the E-Mail Address
getLanguagesId()
public
getLanguagesId() : int
Return values
int —Languages ID
getMessage()
public
getMessage() : string
Return values
string —getName()
public
getName() : string
Return values
string —POST of the Name
getPost()
public
getPost() : array<string|int, mixed>
Return values
array<string|int, mixed> —$post
getProductsId()
public
getProductsId() : int
Return values
int —Products ID
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_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_template_dir()
Sets the template directory path.
public
set_template_dir(mixed $p_dir_path) : void
Parameters
- $p_dir_path : mixed
Return values
void —setAttributeIds()
public
setAttributeIds(array<string|int, mixed> $ids) : mixed
Parameters
- $ids : array<string|int, mixed>
Return values
mixed —setCaptchaObject()
public
setCaptchaObject(Captcha $captchaObject) : mixed
Parameters
- $captchaObject : Captcha
-
Captcha Object
Return values
mixed —setCustomerFirstName()
public
setCustomerFirstName(string $p_customerFirstName) : mixed
Parameters
- $p_customerFirstName : string
-
Customer First Name
Return values
mixed —setCustomerId()
public
setCustomerId(int $p_customerId) : mixed
Parameters
- $p_customerId : int
-
Customer ID
Return values
mixed —setCustomerLastName()
public
setCustomerLastName(string $p_customerLastName) : mixed
Parameters
- $p_customerLastName : string
-
Customer Last Name
Return values
mixed —setEmail()
public
setEmail(string $p_email) : mixed
Parameters
- $p_email : string
-
POST of the E-Mail Address
Return values
mixed —setHiddenAntiSpamValue()
public
setHiddenAntiSpamValue(string $value) : void
Parameters
- $value : string
Return values
void —setLanguagesId()
public
setLanguagesId(int $p_languagesId) : mixed
Parameters
- $p_languagesId : int
-
Languages ID
Return values
mixed —setMessage()
public
setMessage(string $p_message) : mixed
Parameters
- $p_message : string
-
POST of the Message
Return values
mixed —setName()
public
setName(string $p_name) : mixed
Parameters
- $p_name : string
-
POST of the Name
Return values
mixed —setPost()
public
setPost(array<string|int, mixed> $p_post) : mixed
Parameters
- $p_post : array<string|int, mixed>
Return values
mixed —setPrivacyAccepted()
public
setPrivacyAccepted(string $p_privacyAccepted) : mixed
Parameters
- $p_privacyAccepted : string
-
POST of privacy checkbox
Return values
mixed —setProductQuestionTemplate()
public
setProductQuestionTemplate() : mixed
Return values
mixed —setProductsId()
public
setProductsId(int $p_productsId) : mixed
Parameters
- $p_productsId : int
-
Products ID
Return values
mixed —setPropertyValueIds()
public
setPropertyValueIds(array<string|int, mixed> $ids) : mixed
Parameters
- $ids : array<string|int, mixed>
Return values
mixed —_getAttributesAndProperties()
protected
_getAttributesAndProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —_getCustomerEmailSql()
protected
_getCustomerEmailSql() : string
Return values
string —$sql
_getFormData()
protected
_getFormData() : array<string|int, mixed>
Return values
array<string|int, mixed> —$formDataArray
_getProductsNameSql()
protected
_getProductsNameSql() : string
Return values
string —$sql
_getSenderAddress()
protected
_getSenderAddress() : string
Return values
string —$sender
_prepareEmailForm()
protected
_prepareEmailForm(string $product) : mixed
Parameters
- $product : string
Return values
mixed —_prepareMail()
protected
_prepareMail(string $email, string $sender, string $productLink) : mixed
Parameters
- $email : string
- $sender : string
- $productLink : string
Return values
mixed —_validateInput()
protected
_validateInput(string $product) : mixed|string|bool
Parameters
- $product : string
Return values
mixed|string|bool —$productLink
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 —set_deprecated_array()
protected
set_deprecated_array() : 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"