- Class name: HelperListCore
- Parent class: Helper
- Source: classes/HelperList.php line 28
- $_defaultOrderBy
- $_filter
- $_list
- $_pagination
- $_tmpTableFilter
- $actions
- $ajax_params
- $bulk_actions
- $cache_lang
- $colorOnBackground
- $content_tpl
- $deleted
- $fieldsDisplay
- $footer_tpl
- $header_tpl
- $identifier
- $identifiersDnd
- $is_cms
- $is_dnd_identifier
- $listTotal
- $list_skip_actions
- $no_back
- $no_link
- $orderBy
- $orderWay
- $simple_header
- $specificConfirmDelete
- $title
- $tpl_delete_link_vars
- $base_folder
- $base_tpl
- $context
- $currentIndex
- $override_folder
- $ps_help_context
- $show_toolbar
- $table
- $token
- $toolbar_btn
- $toolbar_fix
- $tpl
- $tpl_vars
- __construct
- buildHtmlOptions
- createTemplate
- displayAssoShop
- displayDeleteLink
- displayDetailsLink
- displayDuplicateLink
- displayEditLink
- displayEnableLink
- displayListContent
- displayListFooter
- displayListHeader
- displayViewLink
- generate
- generateList
- l
- renderAdminCategorieTree
- selectInput
- setTpl
public string $_defaultOrderBy = false
- Visibility: public
- Source: classes/HelperList.php line 49.
protected array $_filter
- Visibility: protected
- Source: classes/HelperList.php line 37.
protected array $_list = array()
- Visibility: protected
- Source: classes/HelperList.php line 31.
protected array $_pagination = array(20, 50, 100, 300)
- Visibility: protected
- Source: classes/HelperList.php line 43.
protected array $_tmpTableFilter = ''
- Visibility: protected
- Source: classes/HelperList.php line 40.
public array $actions = array()
- Visibility: public
- Source: classes/HelperList.php line 87.
public mixed $ajax_params = array()
- Visibility: public
- Source: classes/HelperList.php line 120.
public mixed $bulk_actions = false
- Visibility: public
- Source: classes/HelperList.php line 92.
public array $cache_lang = array()
- Visibility: public
- This property is static.
- Source: classes/HelperList.php line 62.
public mixed $colorOnBackground
- Visibility: public
- Source: classes/HelperList.php line 94.
protected mixed $content_tpl = 'list_content.tpl'
- Visibility: protected
- Source: classes/HelperList.php line 83.
protected mixed $deleted
- Visibility: protected
- Source: classes/HelperList.php line 59.
protected mixed $fieldsDisplay
- Visibility: protected
- Source: classes/HelperList.php line 77.
protected mixed $footer_tpl = 'list_footer.tpl'
- Visibility: protected
- Source: classes/HelperList.php line 84.
protected mixed $header_tpl = 'list_header.tpl'
- Visibility: protected
- Source: classes/HelperList.php line 82.
public mixed $identifier
- Visibility: public
- Source: classes/HelperList.php line 57.
protected mixed $identifiersDnd = array('id_product' => 'id_product', 'id_category' => 'id_category_to_move', 'id_cms_category' => 'id_cms_category_to_move', 'id_cms' => 'id_cms', 'id_attribute' => 'id_attribute', 'id_attribute_group' => 'id_attribute_group', 'id_carrier' => 'id_carrier', 'id_tab' => 'id_tab', 'id_feature' => 'id_feature')
- Visibility: protected
- Source: classes/HelperList.php line 96.
protected mixed $is_cms = false
- Visibility: protected
- Source: classes/HelperList.php line 64.
protected mixed $is_dnd_identifier = false
- Visibility: protected
- Source: classes/HelperList.php line 66.
public integer $listTotal
- Visibility: public
- Source: classes/HelperList.php line 34.
public array $list_skip_actions = array()
- Visibility: public
- Source: classes/HelperList.php line 90.
public boolean $no_back = true
- Visibility: public
- Source: classes/HelperList.php line 118.
public boolean $no_link = false
- Visibility: public
- Source: classes/HelperList.php line 80.
public string $orderBy
- Visibility: public
- Source: classes/HelperList.php line 46.
public string $orderWay
- Visibility: public
- Source: classes/HelperList.php line 55.
public boolean $simple_header = false
- Visibility: public
- Source: classes/HelperList.php line 112.
public mixed $specificConfirmDelete
- Visibility: public
- Source: classes/HelperList.php line 93.
public \if $title = null
- Visibility: public
- Source: classes/HelperList.php line 109.
public array $tpl_delete_link_vars = array()
- Visibility: public
- Source: classes/HelperList.php line 52.
public string $base_folder
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 47.
public string $base_tpl = 'content.tpl'
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 60.
public mixed $context
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 43.
public mixed $currentIndex
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 35.
public string $override_folder
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 50.
public mixed $ps_help_context
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 40.
public mixed $show_toolbar = true
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 42.
public mixed $table
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 36.
public mixed $token
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 38.
public mixed $toolbar_btn
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 39.
public mixed $toolbar_fix = false
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 44.
protected \smartyTemplate $tpl
- Visibility: protected
- This property is defined by HelperCore.
- Source: classes/Helper.php line 55.
public mixed $tpl_vars = array()
- Visibility: public
- This property is defined by HelperCore.
- Source: classes/Helper.php line 62.
mixed HelperListCore::__construct()
- Visibility: public
- Source: classes/HelperList.php line 122
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.php line 263
- $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.php line 80
- $tpl_name string - filename
mixed HelperCore::displayAssoShop($type)
- Visibility: protected
- This method is defined by HelperCore.
- Source: classes/Helper.php line 302
- $type mixed
mixed HelperListCore::displayDeleteLink($token, $id)
Display delete action link
- Visibility: protected
- Source: classes/HelperList.php line 445
- $token mixed
- $id mixed
mixed HelperListCore::displayDetailsLink($token, $id)
Display action show details of a table row This action need an ajax request with a return like this: { use_parent_structure: true // If false, data need to be an html data: [ {field_name: 'value'} ], fields_display: // attribute $fieldsDisplay of the admin controller } or somethins like this: { use_parent_structure: false // If false, data need to be an html data: '
My html content
', fields_display: // attribute $fieldsDisplay of the admin controller }- Visibility: protected
- Source: classes/HelperList.php line 390
- $token mixed
- $id mixed
mixed HelperListCore::displayDuplicateLink($token, $id)
Display duplicate action link
- Visibility: protected
- Source: classes/HelperList.php line 348
- $token mixed
- $id mixed
mixed HelperListCore::displayEditLink($token, $id)
Display edit action link
- Visibility: protected
- Source: classes/HelperList.php line 426
- $token mixed
- $id mixed
mixed HelperListCore::displayEnableLink(string $token, integer $id, integer $value, string $active, integer $id_category, integer $id_product)
Fetch the template for action enable
- Visibility: protected
- Source: classes/HelperList.php line 178
- $token string
- $id integer
- $value integer - state enabled or not
- $active string - status
- $id_category integer
- $id_product integer
mixed HelperListCore::displayListContent($token)
- Visibility: public
- Source: classes/HelperList.php line 189
- $token mixed
mixed HelperListCore::displayListFooter($token)
Close list table and submit button
- Visibility: public
- Source: classes/HelperList.php line 608
- $token mixed
mixed HelperListCore::displayListHeader($token)
Display list header (filtering, pagination and column names)
- Visibility: public
- Source: classes/HelperList.php line 467
- $token mixed
mixed HelperListCore::displayViewLink($token, $id)
Display view action link
- Visibility: protected
- Source: classes/HelperList.php line 408
- $token mixed
- $id 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.php line 94
string HelperListCore::generateList(array $list, $fields_display)
Return an html list given the data to fill it up
- Visibility: public
- Source: classes/HelperList.php line 137
- $list array - entries to display (rows)
- $fields_display 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.php line 282
- $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.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::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.php line 219
- $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.php line 69
- $tpl mixed