- Class name: HelperFormCore
- Parent class: Helper
- Source: classes/helper/HelperForm.php line 30
- $allow_employee_form_lang
- $back_url
- $default_form_language
- $fields_form
- $fields_value
- $first_call
- $id
- $languages
- $name_controller
- $show_cancel_button
- $submit_action
- $title
- $token
- $base_folder
- $base_tpl
- $bootstrap
- $context
- $currentIndex
- $identifier
- $module
- $override_folder
- $ps_help_context
- $show_toolbar
- $table
- $toolbar_btn
- $toolbar_scroll
- $tpl
- $tpl_vars
- __construct
- createTemplate
- generate
- generateForm
- getFieldsRequired
- l
- renderAdminCategorieTree
- renderAssoShop
- renderCategoryTree
- renderModulesList
- renderRequiredFields
- renderShopList
- setTpl
public mixed $allow_employee_form_lang = null
- Visibility: public
- Source: classes/helper/HelperForm.php line 51.
public mixed $back_url = '#'
- Visibility: public
- Source: classes/helper/HelperForm.php line 53.
public mixed $default_form_language = null
- Visibility: public
- Source: classes/helper/HelperForm.php line 50.
protected array $fields_form = array()
- Visibility: protected
- Source: classes/helper/HelperForm.php line 36.
public array $fields_value = array()
- Visibility: public
- Source: classes/helper/HelperForm.php line 39.
public mixed $first_call = true
- Visibility: public
- Source: classes/helper/HelperForm.php line 33.
public mixed $id
- Visibility: public
- Source: classes/helper/HelperForm.php line 32.
public mixed $languages = null
- Visibility: public
- Source: classes/helper/HelperForm.php line 49.
public mixed $name_controller = ''
- Visibility: public
- Source: classes/helper/HelperForm.php line 40.
public mixed $show_cancel_button = false
- Visibility: public
- Source: classes/helper/HelperForm.php line 52.
public string $submit_action
- Visibility: public
- Source: classes/helper/HelperForm.php line 46.
public string $title = null
- Visibility: public
- Source: classes/helper/HelperForm.php line 43.
public mixed $token
- Visibility: public
- Source: classes/helper/HelperForm.php line 48.
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 $bootstrap = false
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 39.
public mixed $context
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 37.
public mixed $currentIndex
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 29.
public mixed $identifier
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 31.
public \Module $module
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 44.
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 34.
public mixed $show_toolbar = true
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 36.
public mixed $table = 'configuration'
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 30.
public mixed $toolbar_btn
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 33.
public mixed $toolbar_scroll = false
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/helper/Helper.php line 38.
protected \Smarty_Internal_Template $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 HelperFormCore::__construct()
- Visibility: public
- Source: classes/helper/HelperForm.php line 55
\Smarty_Internal_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 HelperFormCore::generate()
- Visibility: public
- Source: classes/helper/HelperForm.php line 68
mixed HelperFormCore::generateForm($fields_form)
- Visibility: public
- Source: classes/helper/HelperForm.php line 62
- $fields_form mixed
mixed HelperFormCore::getFieldsRequired()
Return true if there are required fields
- Visibility: public
- Source: classes/helper/HelperForm.php line 268
string HelperCore::l(mixed $string, string $class, boolean $addslashes, boolean $htmlentities)
use translations files to replace english expression.
- Visibility: protected
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 299
- $string mixed - term or expression in english
- $class string
- $addslashes boolean - 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 119
- $translations mixed
- $selected_cat mixed
- $input_name mixed
- $use_radio mixed
- $use_search mixed
- $disabled_categories mixed
- $use_in_popup mixed
string HelperFormCore::renderAssoShop($disable_shared, $template_directory)
Render an area to determinate shop association
- Visibility: public
- Source: classes/helper/HelperForm.php line 287
- $disable_shared mixed
- $template_directory mixed
string HelperCore::renderCategoryTree(array $root, array $selected_cat, string $input_name, boolean $use_radio, boolean $use_search, array $disabled_categories)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 166
- $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 array - 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
mixed HelperCore::renderModulesList($modules_list)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 350
- $modules_list mixed
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 318
- $class_name string
- $identifier string
- $table_fields array
string HelperCore::renderShopList()
Render shop list
- Visibility: public
- This method is static.
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 374
mixed HelperCore::setTpl($tpl)
- Visibility: public
- This method is defined by HelperCore.
- Source: classes/helper/Helper.php line 69
- $tpl mixed