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
- buildHtmlOptions
- createTemplate
- displayOptionTypeDisabled
- displayOptionTypeImage
- displayOptionTypePrice
- generate
- generateOptions
- getOptionValue
- l
- renderAdminCategorieTree
- renderAssoShop
- renderRequiredFields
- selectInput
- 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
string HelperCore::buildHtmlOptions(array $html_options)
Create html a string containing html options eg: buildHtmlOptions(array('name' => 'myInputName', 'id' => 'myInputId')); return => 'name="myInputName" id="myInputId"'
- Visibility: protected
- This method is static.
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 269
- $html_options array
\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
@ TODO
- Visibility: public
- Source: classes/helper/HelperOptions.php line 206
- $key mixed
- $field mixed
- $value mixed
mixed HelperOptionsCore::displayOptionTypeImage($key, $field, $value)
Type = image @ TODO
- Visibility: public
- Source: classes/helper/HelperOptions.php line 166
- $key mixed
- $field mixed
- $value mixed
mixed HelperOptionsCore::displayOptionTypePrice($key, $field, $value)
Type = price @ TODO
- Visibility: public
- Source: classes/helper/HelperOptions.php line 194
- $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 94
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 211
- $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 288
- $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')
string HelperCore::renderAdminCategorieTree(\type $trads, \type $selected_cat, \type $input_name, $use_radio, $use_search, $disabled_categories)
- Visibility: public
- This method is static.
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 124
- $trads type - values of translations keys For the moment, translation are not automatic
- $selected_cat type - array of selected categories Format Array ( [0] => 1 [1] => 2 ) OR Array ( [1] => Array ( [id_category] => 1 [name] => Home page [link_rewrite] => home ) )
- $input_name type - name of input
- $use_radio mixed
- $use_search mixed
- $disabled_categories 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 315
- $type string - 'shop' or 'group_shop'
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 357
- $class_name string
- $identifier string
- $table_fields array
string HelperCore::selectInput(array $values, array $html_options, array $select_options)
Create a select input field
- Visibility: public
- This method is static.
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 225
- $values array
- $html_options array - any key => value options
- $select_options array - key: the array value that will be used as a key in my select (optional) value: the array value that will be used as a label in my select (optional) empty: the label displayed as an empty value (optional) selected: the key corresponding to the selected value (optional)
mixed HelperCore::setTpl($tpl)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 69
- $tpl mixed