Skip to content

Latest commit

 

History

History
1236 lines (604 loc) · 27.3 KB

class.DiscountControllerCore.md

File metadata and controls

1236 lines (604 loc) · 27.3 KB

Class DiscountControllerCore

Contents

Properties

Methods

Properties

$auth

public mixed $auth = true

$authRedirection

public mixed $authRedirection = 'discount'

$php_self

public mixed $php_self = 'discount'

$ssl

public mixed $ssl = true

$cart

protected mixed $cart

$cookie

protected mixed $cookie

$currentCustomerGroups

protected mixed $currentCustomerGroups

$display_column_left

public mixed $display_column_left = true

$display_column_right

public mixed $display_column_right = true

$errors

public mixed $errors = array()

$guestAllowed

public mixed $guestAllowed = false

$initialized

public mixed $initialized = false

$iso

public mixed $iso

$link

protected mixed $link

$maintenance

protected mixed $maintenance = false

$n

public mixed $n

$nb_items_per_page

public mixed $nb_items_per_page

$orderBy

public mixed $orderBy

$orderWay

public mixed $orderWay

$p

public mixed $p

$restrictedCountry

protected mixed $restrictedCountry = false

$smarty

protected mixed $smarty

$ajax

protected boolean $ajax = false

$content_only

protected string $content_only = false

$context

protected \Context $context

$css_files

public array $css_files = array()

$display_footer

protected string $display_footer

$display_header

protected boolean $display_header

$hook_list

public mixed $hook_list = array()

hook_list is used with liveEdit

$js_files

public array $js_files = array()

$json

protected mixed $json = false

$redirect_after

protected mixed $redirect_after = null

$status

protected mixed $status = ''

$template

protected string $template

Methods

__construct

mixed FrontControllerCore::__construct()

addCSS

mixed FrontControllerCore::addCSS($css_uri, $css_media_type)

Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory

Arguments

  • $css_uri mixed
  • $css_media_type mixed

addJS

mixed FrontControllerCore::addJS($js_uri)

Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory

Arguments

  • $js_uri mixed

addJquery

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

Add a new javascript file in page header.

Arguments

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

addJqueryPlugin

void ControllerCore::addJqueryPlugin($name, $folder)

Add a new javascript file in page header.

Arguments

  • $name mixed
  • $folder mixed

addJqueryUI

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

Add a new javascript file in page header.

Arguments

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

canonicalRedirection

mixed FrontControllerCore::canonicalRedirection($canonicalURL)

Arguments

  • $canonicalURL mixed

checkAccess

void FrontControllerCore::checkAccess()

checkAccess

display

mixed FrontControllerCore::display()

displayFooter

mixed FrontControllerCore::displayFooter($display)

Arguments

  • $display mixed

displayHeader

mixed FrontControllerCore::displayHeader($display)

Arguments

  • $display mixed

displayMaintenancePage

mixed FrontControllerCore::displayMaintenancePage()

displayRestrictedCountryPage

mixed FrontControllerCore::displayRestrictedCountryPage()

geolocationManagement

mixed FrontControllerCore::geolocationManagement($defaultCountry)

Arguments

  • $defaultCountry 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

getCurrentCustomerGroups

mixed FrontControllerCore::getCurrentCustomerGroups()

getLiveEditFooter

mixed FrontControllerCore::getLiveEditFooter()

init

mixed FrontControllerCore::init()

initContent

mixed DiscountControllerCore::initContent()

Assign template vars related to page content

initCursedPage

mixed FrontControllerCore::initCursedPage()

initFooter

mixed FrontControllerCore::initFooter()

initHeader

mixed FrontControllerCore::initHeader()

isInWhitelistForGeolocation

mixed FrontControllerCore::isInWhitelistForGeolocation()

isTokenValid

boolean FrontControllerCore::isTokenValid()

Check if token is valid

pagination

mixed FrontControllerCore::pagination($nbProducts)

Arguments

  • $nbProducts mixed

postProcess

mixed FrontControllerCore::postProcess()

preProcess

mixed FrontControllerCore::preProcess()

process

mixed FrontControllerCore::process()

productSort

mixed FrontControllerCore::productSort()

recoverCart

mixed FrontControllerCore::recoverCart()

redirect

mixed FrontControllerCore::redirect()

run

mixed ControllerCore::run()

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

setMedia

mixed FrontControllerCore::setMedia()

setTemplate

mixed ControllerCore::setTemplate($template)

Arguments

  • $template mixed