Use this helper to generate preferences forms, with values stored in the configuration table
- Class name: HelperOptionsCore
- Parent class: Helper
- Source: classes/helper/HelperOptions.php line 31
- $required
- $base_folder
- $base_tpl
- $context
- $currentIndex
- $identifier
- $override_folder
- $ps_help_context
- $show_toolbar
- $table
- $title
- $token
- $toolbar_btn
- $toolbar_fix
- $tpl
- $tpl_vars
- __construct
- createTemplate
- displayOptionTypeDisabled
- displayOptionTypeImage
- displayOptionTypePrice
- generate
- generateOptions
- getOptionValue
- l
- renderAdminCategorieTree
- renderAssoShop
- renderCategoryTree
- renderRequiredFields
- setTpl
public mixed $required = false
- Visibility: public
- Source: classes/helper/HelperOptions.php line 33.
public string $base_folder
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 47.
public string $base_tpl = 'content.tpl'
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 60.
public mixed $context
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 43.
public mixed $currentIndex
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 35.
public mixed $identifier
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 37.
public string $override_folder
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 50.
public mixed $ps_help_context
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 40.
public mixed $show_toolbar = true
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 42.
public mixed $table
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 36.
public mixed $title
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 41.
public mixed $token
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 38.
public mixed $toolbar_btn
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 39.
public mixed $toolbar_fix = false
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 44.
protected \smartyTemplate $tpl
- Visibility: protected
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 55.
public mixed $tpl_vars = array()
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 62.
mixed HelperOptionsCore::__construct()
- Visibility: public
- Source: classes/helper/HelperOptions.php line 35
\Template HelperCore::createTemplate(string $tpl_name)
Create a template from the override file, else from the base file.
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 80
- $tpl_name string - filename
mixed HelperOptionsCore::displayOptionTypeDisabled($key, $field, $value)
Type = disabled
- Visibility: public
- Source: classes/helper/HelperOptions.php line 200
- $key mixed
- $field mixed
- $value mixed
mixed HelperOptionsCore::displayOptionTypeImage($key, $field, $value)
Type = image
- Visibility: public
- Source: classes/helper/HelperOptions.php line 163
- $key mixed
- $field mixed
- $value mixed
mixed HelperOptionsCore::displayOptionTypePrice($key, $field, $value)
Type = price
- Visibility: public
- Source: classes/helper/HelperOptions.php line 190
- $key mixed
- $field mixed
- $value mixed
void HelperCore::generate()
default behaviour for helper is to return a tpl fetched
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 101
string HelperOptionsCore::generateOptions($option_list)
Generate a form for options
- Visibility: public
- Source: classes/helper/HelperOptions.php line 47
- $option_list mixed
mixed HelperOptionsCore::getOptionValue($key, $field)
- Visibility: public
- Source: classes/helper/HelperOptions.php line 205
- $key mixed
- $field mixed
string HelperCore::l(mixed $string, string $class, \boolan $addslashes, boolean $htmlentities)
use translations files to replace english expression.
- Visibility: protected
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 293
- $string mixed - term or expression in english
- $class string
- $addslashes boolan - if set to true, the return value will pass through addslashes(). Otherwise, stripslashes().
- $htmlentities boolean - if set to true(default), the return value will pass through htmlentities($string, ENT_QUOTES, 'utf-8')
mixed HelperCore::renderAdminCategorieTree($translations, $selected_cat, $input_name, $use_radio, $use_search, $disabled_categories, $use_in_popup)
- Visibility: public
- This method is static.
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 110
- $translations mixed
- $selected_cat mixed
- $input_name mixed
- $use_radio mixed
- $use_search mixed
- $disabled_categories mixed
- $use_in_popup mixed
string HelperCore::renderAssoShop(string $type)
Render an area to determinate shop association
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 320
- $type string - 'shop' or 'group_shop'
string HelperCore::renderCategoryTree(array $root, \type $selected_cat, string $input_name, boolean $use_radio, boolean $use_search, array $disabled_categories, boolean $use_in_popup)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 157
- $root array - array with the name and ID of the tree root category, if null the Shop's root category will be used
- $selected_cat type - array of selected categories Format Array ( [0] => 1 [1] => 2 ) OR Array ( [1] => Array ( [id_category] => 1 [name] => Home page ) )
- $input_name string - name of input
- $use_radio boolean - use radio tree or checkbox tree
- $use_search boolean - display a find category search box
- $disabled_categories array
- $use_in_popup boolean
string HelperCore::renderRequiredFields(string $class_name, string $identifier, array $table_fields)
Render a form with potentials required fields
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 361
- $class_name string
- $identifier string
- $table_fields array
mixed HelperCore::setTpl($tpl)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 69
- $tpl mixed