Skip to content

Latest commit

 

History

History
5276 lines (2591 loc) · 130 KB

class.AdminThemesControllerCore.md

File metadata and controls

5276 lines (2591 loc) · 130 KB

Class AdminThemesControllerCore

Contents

Constants

Properties

Methods

Constants

MAX_NAME_LENGTH

const MAX_NAME_LENGTH = 128

Properties

$check_features

public mixed $check_features = array('ccc' => array('attributes' => array('available' => array('value' => 'true', 'check_if_not_valid' => array('PS_CSS_THEME_CACHE' => 0, 'PS_JS_THEME_CACHE' => 0, 'PS_HTML_THEME_COMPRESSION' => 0, 'PS_JS_HTML_THEME_COMPRESSION' => 0))), 'error' => 'This theme may not correctly use PrestaShop\'s "combine, compress and cache" options.', 'tab' => 'AdminPerformance'), 'guest_checkout' => array('attributes' => array('available' => array('value' => 'true', 'check_if_not_valid' => array('PS_GUEST_CHECKOUT_ENABLED' => 0))), 'error' => 'This theme may not correctly use PrestaShop\'s "guest checkout" feature.', 'tab' => 'AdminPreferences'), 'one_page_checkout' => array('attributes' => array('available' => array('value' => 'true', 'check_if_not_valid' => array('PS_ORDER_PROCESS_TYPE' => 0))), 'error' => 'This theme may not correctly use PrestaShop\'s "one-page checkout" feature.', 'tab' => 'AdminPreferences'), 'store_locator' => array('attributes' => array('available' => array('value' => 'true', 'check_if_not_valid' => array('PS_STORES_SIMPLIFIED' => 0, 'PS_STORES_DISPLAY_FOOTER' => 0))), 'error' => 'This theme may not correctly use PrestaShop\'s "store locator" feature.', 'tab' => 'AdminStores'))

$check_features is a multidimensional array used to check [theme]/config.xml values, and also checks prestashop current configuration if not match.

$check_features_version

public mixed $check_features_version = '1.4'

This value is used in isThemeCompatible method. only version node with an higher version number will be used in [theme]/config.xml

$className

public mixed $className = 'Theme'

$img_error

private mixed $img_error

$table

public mixed $table = 'theme'

$toolbar_scroll

protected mixed $toolbar_scroll = false

$_defaultOrderBy

protected string $_defaultOrderBy = false

$_defaultOrderWay

protected mixed $_defaultOrderWay = 'ASC'

$_default_pagination

protected integer $_default_pagination = 50

$_filter

protected array $_filter

$_filterHaving

protected mixed $_filterHaving

$_group

protected string $_group

$_having

protected string $_having

$_includeContainer

protected mixed $_includeContainer = true

$_join

protected string $_join

$_languages

public mixed $_languages = array()

$_list

protected array $_list = array()

$_listTotal

protected integer $_listTotal

$_listsql

protected string $_listsql = ''

$_orderBy

protected string $_orderBy

$_orderWay

protected string $_orderWay

$_pagination

protected array $_pagination = array(20, 50, 100, 300, 1000)

$_redirect

protected boolean $_redirect = true

$_select

protected string $_select

$_tmpTableFilter

protected array $_tmpTableFilter = ''

$_where

protected string $_where

$action

protected mixed $action

$actions

protected array $actions = array()

$actions_available

protected array $actions_available = array('view', 'edit', 'duplicate', 'delete')

$admin_webpath

public mixed $admin_webpath

$allow_employee_form_lang

public mixed $allow_employee_form_lang

$allow_export

protected mixed $allow_export = false

$base_tpl_form

public mixed $base_tpl_form = null

$base_tpl_view

public mixed $base_tpl_view = null

$bo_theme

protected mixed $bo_theme

$bootstrap

public mixed $bootstrap = false

$boxes

protected array $boxes

$breadcrumbs

protected mixed $breadcrumbs

Current breadcrumb position as an array of tab names

$bulk_actions

protected array $bulk_actions

$cache_lang

public array $cache_lang = array()

$colorOnBackground

protected mixed $colorOnBackground

$confirmations

public mixed $confirmations = array()

$content

public mixed $content

$controller_name

public \current $controller_name

$currentIndex

public mixed $currentIndex

$default_form_language

public mixed $default_form_language

$deleted

protected boolean $deleted = false

$display

protected mixed $display

$errors

public array $errors = array()

$explicitSelect

protected string $explicitSelect = false

$fieldImageSettings

public array $fieldImageSettings = array()

$fields_form

protected array $fields_form

$fields_form_override

protected \override $fields_form_override

$fields_list

protected array $fields_list

$fields_options

protected array $fields_options = array()

$fields_value

public mixed $fields_value = false

$filter

protected boolean $filter

$filter_modules_list

protected array $filter_modules_list = null

$helper

protected \Helper $helper

$id

public integer $id = -1

$id_object

protected integer $id_object

$identifier

protected string $identifier = false

$identifier_name

protected mixed $identifier_name = 'name'

$imageType

public string $imageType = 'jpg'

$informations

public mixed $informations = array()

$is_cms

protected mixed $is_cms = false

$is_prestashop_up

protected mixed $is_prestashop_up = true

$lang

public boolean $lang = false

$layout

public mixed $layout = 'layout.tpl'

$list_id

public mixed $list_id

$list_natives_modules

protected mixed $list_natives_modules = array()

$list_no_link

protected boolean $list_no_link = false

$list_partners_modules

protected mixed $list_partners_modules = array()

$list_simple_header

protected \define $list_simple_header

$list_skip_actions

protected array $list_skip_actions = array()

$lite_display

protected mixed $lite_display = false

$logged_on_addons

protected mixed $logged_on_addons = false

$meta_title

protected mixed $meta_title = array()

$modals

public mixed $modals = array()

$modules_list

protected array $modules_list = array()

$multiple_fieldsets

public boolean $multiple_fieldsets = false

$multishop_context

public mixed $multishop_context = -1

$multishop_context_group

public mixed $multishop_context_group = true

$noLink

protected mixed $noLink

$object

protected \instanciation $object

$page_header_toolbar_btn

public mixed $page_header_toolbar_btn = array()

$page_header_toolbar_title

public mixed $page_header_toolbar_title

$path

public mixed $path

$position_group_identifier

protected mixed $position_group_identifier

$position_identifier

protected string $position_identifier

$required_database

public mixed $required_database = false

$required_fields

public array $required_fields = array()

$row_hover

protected boolean $row_hover = true

$shopLink

protected mixed $shopLink

$shopLinkType

public string $shopLinkType

$shopShareDatas

public mixed $shopShareDatas = false

$show_form_cancel_button

public mixed $show_form_cancel_button

$show_page_header_toolbar

public mixed $show_page_header_toolbar = false

$show_toolbar

protected boolean $show_toolbar = true

$show_toolbar_options

protected boolean $show_toolbar_options = false

$specificConfirmDelete

protected mixed $specificConfirmDelete = null

$submit_action

protected \override $submit_action

$tabAccess

public array $tabAccess

$tab_modules_list

protected mixed $tab_modules_list = array('default_list' => array(), 'slider_list' => array())

$template

public mixed $template = 'content.tpl'

$token

public string $token

$toolbar_btn

protected array $toolbar_btn = null

$toolbar_title

protected \define $toolbar_title

$tpl_delete_link_vars

public mixed $tpl_delete_link_vars = array()

$tpl_folder

public mixed $tpl_folder

$tpl_form_vars

public mixed $tpl_form_vars = array()

$tpl_list_vars

public mixed $tpl_list_vars = array()

$tpl_option_vars

public mixed $tpl_option_vars = array()

$tpl_required_fields_vars

public mixed $tpl_required_fields_vars = array()

$tpl_view_vars

public mixed $tpl_view_vars = array()

$translationsTab

protected mixed $translationsTab = array()

Display modules list

$warnings

public mixed $warnings = array()

$ajax

public boolean $ajax = false

$content_only

protected string $content_only = false

$context

protected \Context $context

$controller_type

public mixed $controller_type

$css_files

public array $css_files = array()

$display_footer

protected string $display_footer

$display_header

protected boolean $display_header

$js_files

public array $js_files = array()

$json

protected mixed $json = false

$php_errors

public array $php_errors = array()

$php_self

public mixed $php_self

$redirect_after

protected mixed $redirect_after = null

$status

protected mixed $status = ''

Methods

__construct

mixed AdminThemesControllerCore::__construct()

_checkConfigForFeatures

\error AdminThemesControllerCore::_checkConfigForFeatures($arrFeatures, mixed $configItem)

_checkConfigForFeatures

Arguments

  • $arrFeatures mixed
  • $configItem mixed - will precise the attribute which not matches. If empty, will check every attributes

_childValidation

mixed AdminControllerCore::_childValidation()

Overload this method for custom checking

_isThemeCompatible

boolean AdminThemesControllerCore::_isThemeCompatible(string $theme_dir)

This function checks if the theme designer has thunk to make his theme compatible 1.4, and noticed it on the $theme_dir/config.xml file. If not, some new functionnalities has to be desactivated

Arguments

  • $theme_dir string - theme directory

addCSS

true ControllerCore::addCSS(mixed $css_uri, string $css_media_type, integer $offset, boolean $check_path)

Add a new stylesheet in page header.

Arguments

  • $css_uri mixed - Path to css file, or list of css files like this : array(array(uri => media_type), ...)
  • $css_media_type string
  • $offset integer
  • $check_path boolean

addFiltersToBreadcrumbs

mixed AdminControllerCore::addFiltersToBreadcrumbs()

addJS

void ControllerCore::addJS(mixed $js_uri, boolean $check_path)

Add a new javascript file in page header.

Arguments

  • $js_uri mixed
  • $check_path boolean

addJquery

void ControllerCore::addJquery($version, $folder, $minifier)

Add a new javascript file in page header.

Arguments

  • $version mixed
  • $folder mixed
  • $minifier mixed

addJqueryPlugin

mixed ControllerCore::addJqueryPlugin($name, null $folder, boolean $css)

Add a new javascript file in page header.

Arguments

  • $name mixed
  • $folder null
  • $css boolean

addJqueryUI

void ControllerCore::addJqueryUI($component, $theme, $check_dependencies)

Add a new javascript file in page header.

Arguments

  • $component mixed
  • $theme mixed
  • $check_dependencies mixed

addMetaTitle

mixed AdminControllerCore::addMetaTitle(string $entry)

Add an entry to the meta title.

Arguments

  • $entry string - New entry.

addPageHeaderToolBarModulesListButton

mixed AdminControllerCore::addPageHeaderToolBarModulesListButton()

addRowAction

mixed AdminControllerCore::addRowAction($action)

Declare an action to use for each row in the list

Arguments

  • $action mixed

addRowActionSkipList

mixed AdminControllerCore::addRowActionSkipList($action, $list)

Add an action to use for each row in the list

Arguments

  • $action mixed
  • $list mixed

addToolBarModulesListButton

mixed AdminControllerCore::addToolBarModulesListButton()

afterAdd

mixed AdminControllerCore::afterAdd($object)

Arguments

  • $object mixed

afterDelete

boolean AdminControllerCore::afterDelete(object $object, $oldId)

Called before deletion

Arguments

  • $object object - Object
  • $oldId mixed

afterImageUpload

boolean AdminControllerCore::afterImageUpload()

Check rights to view the current tab

afterUpdate

mixed AdminControllerCore::afterUpdate($object)

Arguments

  • $object mixed

ajaxDie

mixed ControllerCore::ajaxDie($value, $controller, $method)

Arguments

  • $value mixed
  • $controller mixed
  • $method mixed

ajaxProcessGetAddonsThemes

mixed AdminThemesControllerCore::ajaxProcessGetAddonsThemes()

ajaxProcessGetModuleQuickView

mixed AdminControllerCore::ajaxProcessGetModuleQuickView()

ajaxProcessLeftMeta

mixed AdminThemesControllerCore::ajaxProcessLeftMeta()

ajaxProcessOpenHelp

mixed AdminControllerCore::ajaxProcessOpenHelp()

ajaxProcessRightMeta

mixed AdminThemesControllerCore::ajaxProcessRightMeta()

archiveThisFile

mixed AdminThemesControllerCore::archiveThisFile($obj, $file, $server_path, $archive_path)

Arguments

  • $obj mixed
  • $file mixed
  • $server_path mixed
  • $archive_path mixed

beforeAdd

boolean AdminControllerCore::beforeAdd(object $object)

Called before Add

Arguments

  • $object object - Object

beforeDelete

boolean AdminControllerCore::beforeDelete(object $object)

Called before deletion

Arguments

  • $object object - Object

beforeUpdateOptions

mixed AdminControllerCore::beforeUpdateOptions()

Can be overriden

checkAccess

mixed AdminControllerCore::checkAccess()

Check if the token is valid, else display a warning page

checkDocumentation

mixed AdminThemesControllerCore::checkDocumentation()

checkNames

mixed AdminThemesControllerCore::checkNames()

checkParentClass

mixed AdminThemesControllerCore::checkParentClass($name)

Arguments

  • $name mixed

checkPostedDatas

mixed AdminThemesControllerCore::checkPostedDatas()

checkToken

mixed AdminControllerCore::checkToken()

Check for security token

checkVersionsAndCompatibility

mixed AdminThemesControllerCore::checkVersionsAndCompatibility()

checkXmlFields

mixed AdminThemesControllerCore::checkXmlFields($xml_file)

Arguments

  • $xml_file mixed

copyFromPost

mixed AdminControllerCore::copyFromPost($object, string $table)

Copy datas from $_POST to object

Arguments

  • $object mixed
  • $table string - Object table

copyTheme

boolean AdminThemesControllerCore::copyTheme(string $base_theme_dir, string $target_theme_dir)

copy $base_theme_dir into $target_theme_dir.

Arguments

  • $base_theme_dir string - relative path to base dir
  • $target_theme_dir string - relative path to target dir

createTemplate

\Template AdminControllerCore::createTemplate(string $tpl_name)

Create a template from the override file, else from the base file.

Arguments

  • $tpl_name string - filename

display

mixed AdminControllerCore::display()

displayAjax

mixed AdminControllerCore::displayAjax()

displayFooter

mixed ControllerCore::displayFooter($display)

Arguments

  • $display mixed

displayHeader

mixed ControllerCore::displayHeader($display)

Arguments

  • $display mixed

displayInformation

mixed AdminControllerCore::displayInformation(string $msg)

add a info message to display at the top of the page

Arguments

  • $msg string

displayModuleOptions

mixed AdminControllerCore::displayModuleOptions($module, $output_type, $back)

Arguments

  • $module mixed
  • $output_type mixed
  • $back mixed

displayNoSmarty

mixed AdminControllerCore::displayNoSmarty()

displayRequiredFields

mixed AdminControllerCore::displayRequiredFields()

prepare the view to display the required fields form

displayWarning

mixed AdminControllerCore::displayWarning(string $msg)

add a warning message to display at the top of the page

Arguments

  • $msg string

downloadAddonsThemes

mixed AdminThemesControllerCore::downloadAddonsThemes()

extractTheme

mixed AdminThemesControllerCore::extractTheme($theme_zip_file, $sandbox)

Arguments

  • $theme_zip_file mixed
  • $sandbox mixed

fillModuleData

mixed AdminControllerCore::fillModuleData($module, $output_type, $back)

Arguments

  • $module mixed
  • $output_type mixed
  • $back mixed

filterTabModuleList

mixed AdminControllerCore::filterTabModuleList()

filterToField

mixed AdminControllerCore::filterToField($key, $filter)

Arguments

  • $key mixed
  • $filter mixed

formatHelperArray

mixed AdminThemesControllerCore::formatHelperArray($origin_arr)

Arguments

  • $origin_arr mixed

formatHelperValuesArray

mixed AdminThemesControllerCore::formatHelperValuesArray($originArr)

Arguments

  • $originArr mixed

generateArchive

mixed AdminThemesControllerCore::generateArchive()

generateXML

mixed AdminThemesControllerCore::generateXML($theme_to_export, $metas)

Arguments

  • $theme_to_export mixed
  • $metas mixed

getController

mixed ControllerCore::getController(string $class_name, boolean $auth, boolean $ssl)

Get an instance of a controller

Arguments

  • $class_name string
  • $auth boolean
  • $ssl boolean

getFieldValue

string AdminControllerCore::getFieldValue(object $obj, string $key, integer $id_lang)

Return field value if possible (both classical and multilingual fields)

Case 1 : Return value if present in $_POST / $_GET Case 2 : Return object value

Arguments

  • $obj object - Object
  • $key string - Field name
  • $id_lang integer - Language id (optional)

getFieldsValue

array AdminControllerCore::getFieldsValue(object $obj)

Return the list of fields value

Arguments

  • $obj object - Object

getLanguages

mixed AdminControllerCore::getLanguages()

getList

mixed AdminControllerCore::getList(integer $id_lang, string $order_by, $order_way, integer $start, integer $limit, $id_lang_shop)

Get the current objects' list form the database

Arguments

  • $id_lang integer - Language used for display
  • $order_by string - ORDER BY clause
  • $order_way mixed
  • $start integer - Offset in LIMIT clause
  • $limit integer - Row count in LIMIT clause
  • $id_lang_shop mixed

getModules

mixed AdminThemesControllerCore::getModules($xml)

Arguments

  • $xml mixed

getModulesList

mixed AdminControllerCore::getModulesList($filter_modules_list)

Arguments

  • $filter_modules_list mixed

getNativeModule

array AdminThemesControllerCore::getNativeModule(integer $type)

Arguments

  • $type integer - $type = 0 both native & partner (default) $type = 1 native $type = 2 partner

getSelectedAssoShop

array AdminControllerCore::getSelectedAssoShop(string $table)

Returns an array with selected shops and type (group or boutique shop)

Arguments

  • $table string

getTemplateFormVars

mixed AdminControllerCore::getTemplateFormVars()

getTemplateListVars

mixed AdminControllerCore::getTemplateListVars()

getTemplateViewVars

mixed AdminControllerCore::getTemplateViewVars()

hookModule

mixed AdminThemesControllerCore::hookModule($id_module, $module_hooks, $shop)

Arguments

  • $id_module mixed
  • $module_hooks mixed
  • $shop mixed

importThemeXmlConfig

array|string AdminThemesControllerCore::importThemeXmlConfig(\SimpleXMLElement $xml, boolean $theme_dir)

Arguments

  • $xml SimpleXMLElement
  • $theme_dir boolean - only used if the theme directory to import is already located on the shop

init

mixed AdminThemesControllerCore::init()

initBreadcrumbs

mixed AdminControllerCore::initBreadcrumbs($tab_id, $tabs)

Set breadcrumbs array for the controller page

Arguments

  • $tab_id mixed
  • $tabs mixed

initContent

mixed AdminThemesControllerCore::initContent()

initCursedPage

void AdminControllerCore::initCursedPage()

initialize the invalid doom page of death

initFooter

mixed AdminControllerCore::initFooter()

Assign smarty variables for the footer

initHeader

mixed AdminControllerCore::initHeader()

Assign smarty variables for the header

initModal

mixed AdminControllerCore::initModal()

initPageHeaderToolbar

mixed AdminThemesControllerCore::initPageHeaderToolbar()

initProcess

mixed AdminThemesControllerCore::initProcess()

initShopContext

mixed AdminControllerCore::initShopContext()

initTabModuleList

mixed AdminControllerCore::initTabModuleList()

init tab modules list and add button in toolbar

initToolbar

mixed AdminControllerCore::initToolbar()

assign default action in toolbar_btn smarty var, if they are not set.

uses override to specifically add, modify or remove items

initToolbarTitle

void AdminControllerCore::initToolbarTitle()

set default toolbar_title to admin breadcrumb

installTheme

mixed AdminThemesControllerCore::installTheme($theme_dir, $sandbox, $redirect)

Arguments

  • $theme_dir mixed
  • $sandbox mixed
  • $redirect mixed

isCached

mixed ControllerCore::isCached($template, $cacheId, $compileId)

Arguments

  • $template mixed
  • $cacheId mixed
  • $compileId mixed

isFresh

mixed AdminControllerCore::isFresh($file, $timeout)

Arguments

  • $file mixed
  • $timeout mixed

isThemeInstalled

mixed AdminThemesControllerCore::isThemeInstalled($theme_name)

Arguments

  • $theme_name mixed

isXmlHttpRequest

boolean ControllerCore::isXmlHttpRequest()

jsonConfirmation

mixed AdminControllerCore::jsonConfirmation($message)

Shortcut to set up a json success payload

Arguments

  • $message mixed - success message

jsonError

mixed AdminControllerCore::jsonError($message)

Shortcut to set up a json error payload

Arguments

  • $message mixed - error message

l

string AdminControllerCore::l(mixed $string, string $class, \boolan $addslashes, boolean $htmlentities)

non-static method which uses AdminController::translate()

Arguments

  • $string mixed - term or expression in english
  • $class string - name of the class
  • $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')

loadObject

object|boolean AdminControllerCore::loadObject(boolean $opt)

Load class object using identifier in $_GET (if possible) otherwise return an empty object, or die

Arguments

  • $opt boolean - Return an empty object if load fail

myErrorHandler

mixed ControllerCore::myErrorHandler($errno, $errstr, $errfile, $errline)

Arguments

  • $errno mixed
  • $errstr mixed
  • $errfile mixed
  • $errline mixed

postImage

boolean AdminControllerCore::postImage(integer $id)

Overload this method for custom checking

Arguments

  • $id integer - Object id used for deleting images

postProcess

mixed AdminThemesControllerCore::postProcess()

This functions make checks about AdminThemes configuration edition only.

printResponsiveIcon

mixed AdminThemesControllerCore::printResponsiveIcon($value)

Arguments

  • $value mixed

processAdd

mixed AdminThemesControllerCore::processAdd()

processBulkAffectZone

mixed AdminControllerCore::processBulkAffectZone()

processBulkDelete

boolean AdminControllerCore::processBulkDelete()

Delete multiple items

processBulkDisableSelection

boolean AdminControllerCore::processBulkDisableSelection()

Disable multiple items

processBulkEnableSelection

boolean AdminControllerCore::processBulkEnableSelection()

Enable multiple items

processBulkStatusSelection

boolean AdminControllerCore::processBulkStatusSelection($status)

Toggle status of multiple items

Arguments

  • $status mixed

processDefaultLeftColumn

mixed AdminThemesControllerCore::processDefaultLeftColumn()

processDefaultRightColumn

mixed AdminThemesControllerCore::processDefaultRightColumn()

processDelete

mixed AdminThemesControllerCore::processDelete()

processDeleteImage

mixed AdminControllerCore::processDeleteImage()

Object Delete images

processExport

mixed AdminControllerCore::processExport($text_delimiter)

Arguments

  • $text_delimiter mixed

processExportTheme

mixed AdminThemesControllerCore::processExportTheme()

processFilter

mixed AdminControllerCore::processFilter()

Set the filters used for the list display

processImportTheme

mixed AdminThemesControllerCore::processImportTheme()

processLeftMeta

mixed AdminThemesControllerCore::processLeftMeta()

processPosition

mixed AdminControllerCore::processPosition()

Change object position

processResetFilters

mixed AdminControllerCore::processResetFilters($list_id)

Cancel all filters for this tab

Arguments

  • $list_id mixed

processResponsive

mixed AdminThemesControllerCore::processResponsive()

processRightMeta

mixed AdminThemesControllerCore::processRightMeta()

processSave

mixed AdminControllerCore::processSave()

Call the right method for creating or updating object

processStatus

mixed AdminControllerCore::processStatus()

Change object status (active, inactive)

processThemeInstall

mixed AdminThemesControllerCore::processThemeInstall()

processUpdate

mixed AdminThemesControllerCore::processUpdate()

processUpdateFields

mixed AdminControllerCore::processUpdateFields()

Change object required fields

processUpdateOptions

mixed AdminThemesControllerCore::processUpdateOptions()

recurseCopy

mixed AdminThemesControllerCore::recurseCopy($src, $dst)

Arguments

  • $src mixed
  • $dst mixed

redirect

mixed AdminControllerCore::redirect()

refresh

mixed AdminControllerCore::refresh($file_to_refresh, $external_file)

Arguments

  • $file_to_refresh mixed
  • $external_file mixed

removeCSS

mixed ControllerCore::removeCSS($css_uri, $css_media_type, $check_path)

Arguments

  • $css_uri mixed
  • $css_media_type mixed
  • $check_path mixed

removeJS

mixed ControllerCore::removeJS($js_uri, $check_path)

Arguments

  • $js_uri mixed
  • $check_path mixed

renderChooseThemeModule

mixed AdminThemesControllerCore::renderChooseThemeModule()

renderDetails

mixed AdminControllerCore::renderDetails()

Override to render the view page

renderExportTheme

mixed AdminThemesControllerCore::renderExportTheme()

renderExportTheme1

mixed AdminThemesControllerCore::renderExportTheme1()

renderForm

mixed AdminThemesControllerCore::renderForm()

renderImportTheme

mixed AdminThemesControllerCore::renderImportTheme()

renderKpis

mixed AdminControllerCore::renderKpis()

renderList

mixed AdminThemesControllerCore::renderList()

renderModal

mixed AdminControllerCore::renderModal()

renderModulesList

mixed AdminControllerCore::renderModulesList()

renderOptions

mixed AdminThemesControllerCore::renderOptions()

Function used to render the options for this controller

renderView

mixed AdminThemesControllerCore::renderView()

run

mixed ControllerCore::run()

Start controller process (this method shouldn't be overriden !)

setDeprecatedMedia

mixed AdminControllerCore::setDeprecatedMedia()

setHelperDisplay

void AdminControllerCore::setHelperDisplay(\Helper $helper)

this function set various display option for helper list

Arguments

setMedia

mixed AdminThemesControllerCore::setMedia()

setTemplate

mixed ControllerCore::setTemplate($template)

Arguments

  • $template mixed

smartyOutputContent

mixed ControllerCore::smartyOutputContent($content)

Arguments

  • $content mixed

updateAssoShop

mixed AdminControllerCore::updateAssoShop(integer $id_object)

Update the associations of shops

Arguments

  • $id_object integer

updateImages

mixed AdminThemesControllerCore::updateImages($xml)

Arguments

  • $xml mixed

updateLogo

boolean AdminThemesControllerCore::updateLogo($field_name, $logo_prefix)

Generic function which allows logo upload

Arguments

  • $field_name mixed
  • $logo_prefix mixed

updateOptionPsFavicon

mixed AdminThemesControllerCore::updateOptionPsFavicon()

Update PS_FAVICON

updateOptionPsLogo

mixed AdminThemesControllerCore::updateOptionPsLogo()

Update PS_LOGO

updateOptionPsLogoInvoice

mixed AdminThemesControllerCore::updateOptionPsLogoInvoice()

Update PS_LOGO_INVOICE

updateOptionPsLogoMail

mixed AdminThemesControllerCore::updateOptionPsLogoMail()

Update PS_LOGO_MAIL

updateOptionPsLogoMobile

mixed AdminThemesControllerCore::updateOptionPsLogoMobile()

Update PS_LOGO_MOBILE

updateOptionPsStoresIcon

mixed AdminThemesControllerCore::updateOptionPsStoresIcon()

Update PS_STORES_ICON

updateOptionThemeForShop

mixed AdminThemesControllerCore::updateOptionThemeForShop()

Update theme for current shop

uploadIco

mixed AdminThemesControllerCore::uploadIco($name, $dest)

Arguments

  • $name mixed
  • $dest mixed

uploadImage

mixed AdminControllerCore::uploadImage($id, $name, $dir, $ext, $width, $height)

Arguments

  • $id mixed
  • $name mixed
  • $dir mixed
  • $ext mixed
  • $width mixed
  • $height mixed

validateField

mixed AdminControllerCore::validateField($value, $field)

Arguments

  • $value mixed
  • $field mixed

validateRules

mixed AdminControllerCore::validateRules($class_name)

Manage page display (form, list.

..)

Arguments

  • $class_name mixed

viewAccess

boolean AdminControllerCore::viewAccess(boolean $disable)

Check rights to view the current tab

Arguments

  • $disable boolean

viewDetails

mixed AdminControllerCore::viewDetails()

Display object details