2007-2015 PrestaShop
NOTICE OF LICENSE
This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
DISCLAIMER
Do not edit or add to this file if you wish to upgrade PrestaShop to newer versions in the future. If you wish to customize PrestaShop for your needs please refer to http://www.prestashop.com for more information.
- Class name: FrontControllerCore
- Parent class: Controller
- Source: classes/controller/FrontController.php line 27
- $auth
- $authRedirection
- $cart
- $cookie
- $currentCustomerGroups
- $display_column_left
- $display_column_right
- $errors
- $guestAllowed
- $initialized
- $iso
- $link
- $maintenance
- $n
- $nb_items_per_page
- $orderBy
- $orderWay
- $p
- $restrictedCountry
- $smarty
- $ssl
- $ajax
- $content_only
- $context
- $controller_type
- $css_files
- $display_footer
- $display_header
- $js_files
- $json
- $php_errors
- $php_self
- $redirect_after
- $status
- $template
- __construct
- addCSS
- addColorsToProductList
- addJS
- addJquery
- addJqueryPlugin
- addJqueryUI
- addMedia
- ajaxDie
- canonicalRedirection
- checkAccess
- checkLiveEditAccess
- display
- displayContent
- displayFooter
- displayHeader
- displayMaintenancePage
- displayRestrictedCountryPage
- geolocationManagement
- getColorsListCacheId
- getController
- getCurrentCustomerGroups
- getLayout
- getLiveEditFooter
- getOverrideTemplate
- getOverrideThemeDir
- getTemplatePath
- getThemeDir
- init
- initContent
- initCursedPage
- initFooter
- initHeader
- initLogoAndFavicon
- isCached
- isInWhitelistForGeolocation
- isTokenValid
- isXmlHttpRequest
- myErrorHandler
- pagination
- postProcess
- process
- productSort
- recoverCart
- redirect
- removeCSS
- removeJS
- removeMedia
- run
- setMedia
- setMobileMedia
- setMobileTemplate
- setTemplate
- smartyOutputContent
- sslRedirection
- useMobileTheme
- viewAccess
public mixed $auth = false
- Visibility: public
- Source: classes/controller/FrontController.php line 43.
public mixed $authRedirection = false
- Visibility: public
- Source: classes/controller/FrontController.php line 45.
protected mixed $cart
- Visibility: protected
- This property is static.
- Source: classes/controller/FrontController.php line 34.
protected mixed $cookie
- Visibility: protected
- This property is static.
- Source: classes/controller/FrontController.php line 34.
protected mixed $currentCustomerGroups
- Visibility: protected
- This property is static.
- Source: classes/controller/FrontController.php line 56.
public mixed $display_column_left = true
- Visibility: public
- Source: classes/controller/FrontController.php line 51.
public mixed $display_column_right = true
- Visibility: public
- Source: classes/controller/FrontController.php line 52.
public mixed $errors = array()
- Visibility: public
- Source: classes/controller/FrontController.php line 29.
public mixed $guestAllowed = false
- Visibility: public
- Source: classes/controller/FrontController.php line 44.
public mixed $initialized = false
- Visibility: public
- This property is static.
- Source: classes/controller/FrontController.php line 54.
public mixed $iso
- Visibility: public
- Source: classes/controller/FrontController.php line 36.
protected mixed $link
- Visibility: protected
- This property is static.
- Source: classes/controller/FrontController.php line 34.
protected mixed $maintenance = false
- Visibility: protected
- Source: classes/controller/FrontController.php line 49.
public mixed $n
- Visibility: public
- Source: classes/controller/FrontController.php line 41.
public mixed $nb_items_per_page
- Visibility: public
- Source: classes/controller/FrontController.php line 58.
public mixed $orderBy
- Visibility: public
- Source: classes/controller/FrontController.php line 38.
public mixed $orderWay
- Visibility: public
- Source: classes/controller/FrontController.php line 39.
public mixed $p
- Visibility: public
- Source: classes/controller/FrontController.php line 40.
protected mixed $restrictedCountry = false
- Visibility: protected
- Source: classes/controller/FrontController.php line 48.
protected mixed $smarty
- Visibility: protected
- This property is static.
- Source: classes/controller/FrontController.php line 34.
public mixed $ssl = false
- Visibility: public
- Source: classes/controller/FrontController.php line 46.
public boolean $ajax = false
- Visibility: public
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 75.
protected string $content_only = false
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 70.
protected \Context $context
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 35.
public mixed $controller_type
- Visibility: public
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 81.
public array $css_files = array()
- Visibility: public
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 40.
protected string $display_footer
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 65.
protected boolean $display_header
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 55.
public array $js_files = array()
- Visibility: public
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 45.
protected mixed $json = false
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 76.
public array $php_errors = array()
- Visibility: public
- This property is static.
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 50.
public mixed $php_self
- Visibility: public
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 82.
protected mixed $redirect_after = null
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 79.
protected mixed $status = ''
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 77.
protected string $template
- Visibility: protected
- This property is defined by ControllerCore.
- Source: classes/controller/Controller.php line 60.
mixed FrontControllerCore::__construct()
- Visibility: public
- Source: classes/controller/FrontController.php line 60
mixed FrontControllerCore::addCSS($css_uri, string $css_media_type, integer $offset, boolean $check_path)
Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory
- Visibility: public
- Source: classes/controller/FrontController.php line 1092
- $css_uri mixed
- $css_media_type string
- $offset integer
- $check_path boolean
mixed FrontControllerCore::addColorsToProductList($products)
- Visibility: public
- Source: classes/controller/FrontController.php line 1310
- $products mixed
mixed FrontControllerCore::addJS($js_uri, boolean $check_path)
Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory
- Visibility: public
- Source: classes/controller/FrontController.php line 1108
- $js_uri mixed
- $check_path boolean
void ControllerCore::addJquery($version, $folder, $minifier)
Add a new javascript file in page header.
- Visibility: public
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 371
- $version mixed
- $folder mixed
- $minifier mixed
mixed ControllerCore::addJqueryPlugin($name, null $folder, boolean $css)
Add a new javascript file in page header.
- Visibility: public
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 403
- $name mixed
- $folder null
- $css boolean
void ControllerCore::addJqueryUI($component, $theme, $check_dependencies)
Add a new javascript file in page header.
- Visibility: public
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 382
- $component mixed
- $theme mixed
- $check_dependencies mixed
mixed FrontControllerCore::addMedia($media_uri, $css_media_type, $offset, $remove, $check_path)
- Visibility: public
- Source: classes/controller/FrontController.php line 1022
- $media_uri mixed
- $css_media_type mixed
- $offset mixed
- $remove mixed
- $check_path mixed
mixed ControllerCore::ajaxDie($value, $controller, $method)
- Visibility: protected
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 513
- $value mixed
- $controller mixed
- $method mixed
mixed FrontControllerCore::canonicalRedirection($canonical_url)
- Visibility: protected
- Source: classes/controller/FrontController.php line 643
- $canonical_url mixed
boolean FrontControllerCore::checkAccess()
- Visibility: public
- Source: classes/controller/FrontController.php line 93
mixed FrontControllerCore::checkLiveEditAccess()
- Visibility: public
- Source: classes/controller/FrontController.php line 851
mixed FrontControllerCore::display()
- Visibility: public
- Source: classes/controller/FrontController.php line 534
mixed FrontControllerCore::displayContent()
1.4 retrocompatibility
- Visibility: public
- Source: classes/controller/FrontController.php line 530
mixed FrontControllerCore::displayFooter($display)
- Visibility: public
- Source: classes/controller/FrontController.php line 507
- $display mixed
mixed FrontControllerCore::displayHeader($display)
- Visibility: public
- Source: classes/controller/FrontController.php line 469
- $display mixed
mixed FrontControllerCore::displayMaintenancePage()
- Visibility: protected
- Source: classes/controller/FrontController.php line 592
mixed FrontControllerCore::displayRestrictedCountryPage()
- Visibility: protected
- Source: classes/controller/FrontController.php line 615
mixed FrontControllerCore::geolocationManagement($default_country)
- Visibility: protected
- Source: classes/controller/FrontController.php line 685
- $default_country mixed
mixed FrontControllerCore::getColorsListCacheId($id_product)
- Visibility: protected
- Source: classes/controller/FrontController.php line 1347
- $id_product mixed
mixed ControllerCore::getController(string $class_name, boolean $auth, boolean $ssl)
Get an instance of a controller
- Visibility: public
- This method is static.
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 133
- $class_name string
- $auth boolean
- $ssl boolean
mixed FrontControllerCore::getCurrentCustomerGroups()
- Visibility: public
- This method is static.
- Source: classes/controller/FrontController.php line 963
boolean|string FrontControllerCore::getLayout()
Returns the layout corresponding to the current page by using the override system Ex: On the url: http://localhost/index.php?id_product=1&controller=product, this method will check if the layout exists in the following files (in that order), and return the first found:
- /themes/default/override/layout-product-1.tpl
- /themes/default/override/layout-product.tpl
- /themes/default/layout.tpl
- Visibility: public
- Source: classes/controller/FrontController.php line 1209
mixed FrontControllerCore::getLiveEditFooter()
- Visibility: public
- Source: classes/controller/FrontController.php line 860
boolean FrontControllerCore::getOverrideTemplate()
Returns the template corresponding to the current page.
By default this method return false but could easily be overridden in a specific controller
- Visibility: public
- Source: classes/controller/FrontController.php line 1171
mixed FrontControllerCore::getOverrideThemeDir()
- Visibility: protected
- Source: classes/controller/FrontController.php line 1192
mixed FrontControllerCore::getTemplatePath($template)
- Visibility: public
- Source: classes/controller/FrontController.php line 1232
- $template mixed
mixed FrontControllerCore::getThemeDir()
- Visibility: protected
- Source: classes/controller/FrontController.php line 1187
mixed FrontControllerCore::init()
- Visibility: public
- Source: classes/controller/FrontController.php line 108
mixed FrontControllerCore::initContent()
- Visibility: public
- Source: classes/controller/FrontController.php line 446
mixed FrontControllerCore::initCursedPage()
- Visibility: public
- Source: classes/controller/FrontController.php line 513
mixed FrontControllerCore::initFooter()
- Visibility: public
- Source: classes/controller/FrontController.php line 831
mixed FrontControllerCore::initHeader()
- Visibility: public
- Source: classes/controller/FrontController.php line 812
array FrontControllerCore::initLogoAndFavicon()
Return an array with specific logo and favicon, if mobile device
- Visibility: public
- Source: classes/controller/FrontController.php line 1293
mixed ControllerCore::isCached($template, $cacheId, $compileId)
- Visibility: protected
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 471
- $template mixed
- $cacheId mixed
- $compileId mixed
mixed FrontControllerCore::isInWhitelistForGeolocation()
- Visibility: protected
- This method is static.
- Source: classes/controller/FrontController.php line 982
boolean FrontControllerCore::isTokenValid()
Check if token is valid
- Visibility: public
- Source: classes/controller/FrontController.php line 1014
boolean ControllerCore::isXmlHttpRequest()
- Visibility: public
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 425
mixed ControllerCore::myErrorHandler($errno, $errstr, $errfile, $errline)
- Visibility: public
- This method is static.
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 479
- $errno mixed
- $errstr mixed
- $errfile mixed
- $errline mixed
mixed FrontControllerCore::pagination($total_products)
- Visibility: public
- Source: classes/controller/FrontController.php line 904
- $total_products mixed
mixed FrontControllerCore::postProcess()
- Visibility: public
- Source: classes/controller/FrontController.php line 442
mixed FrontControllerCore::process()
- Visibility: public
- Source: classes/controller/FrontController.php line 518
mixed FrontControllerCore::productSort()
- Visibility: public
- Source: classes/controller/FrontController.php line 877
mixed FrontControllerCore::recoverCart()
- Visibility: protected
- Source: classes/controller/FrontController.php line 1118
mixed FrontControllerCore::redirect()
- Visibility: public
- Source: classes/controller/FrontController.php line 522
mixed FrontControllerCore::removeCSS($css_uri, $css_media_type, $check_path)
- Visibility: public
- Source: classes/controller/FrontController.php line 1097
- $css_uri mixed
- $css_media_type mixed
- $check_path mixed
mixed FrontControllerCore::removeJS($js_uri, $check_path)
- Visibility: public
- Source: classes/controller/FrontController.php line 1113
- $js_uri mixed
- $check_path mixed
mixed FrontControllerCore::removeMedia($media_uri, $css_media_type, $check_path)
- Visibility: public
- Source: classes/controller/FrontController.php line 1079
- $media_uri mixed
- $css_media_type mixed
- $check_path mixed
mixed ControllerCore::run()
Start controller process (this method shouldn't be overriden !)
- Visibility: public
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 161
mixed FrontControllerCore::setMedia()
- Visibility: public
- Source: classes/controller/FrontController.php line 767
mixed FrontControllerCore::setMobileMedia()
Specific medias for mobile device.
if autoload directory is present in the mobile theme, these files will not be loaded
- Visibility: public
- Source: classes/controller/FrontController.php line 746
mixed FrontControllerCore::setMobileTemplate($template)
This checks if the template set is available for mobile themes, otherwise the front template is choosen.
- Visibility: public
- Source: classes/controller/FrontController.php line 1258
- $template mixed
mixed FrontControllerCore::setTemplate($default_template)
This is overrided to manage is behaviour if a customer access to the site with mobile device.
- Visibility: public
- Source: classes/controller/FrontController.php line 1150
- $default_template mixed
mixed ControllerCore::smartyOutputContent($content)
- Visibility: protected
- This method is defined by ControllerCore.
- Source: classes/controller/Controller.php line 430
- $content mixed
mixed FrontControllerCore::sslRedirection()
- Visibility: protected
- Source: classes/controller/FrontController.php line 627
mixed FrontControllerCore::useMobileTheme()
- Visibility: protected
- Source: classes/controller/FrontController.php line 1176
boolean FrontControllerCore::viewAccess()
- Visibility: public
- Source: classes/controller/FrontController.php line 103