Public and overloadable methods

Table of content

/*<![CDATA[*/ div.rbtoc1597308498792 {padding: 0px;} div.rbtoc1597308498792 ul {list-style: disc;margin-left: 0px;} div.rbtoc1597308498792 li {margin-left: 0px;padding-left: 0px;} /*]]>*/

Public and overloadable methods

With its overriding system, PrestaShop makes it possible to override many of its core functions. But overriding cannot be done if you do not know which method to replace. This list should help you.

You can learn more about overriding PrestaShop by reading the following articles:

If you do not want to replace a method, but simply add to it, remember to call the parent eponymous method somewhere in your method.

class Product extends ProductCore
{
	public function __construct($id_product = NULL, $full = false, $id_lang = NULL)
	{
		echo 'Hello World !';
		parent::__construct($id_product, $full, $id_lang);
	}
}

AdminTabCore (AdminTab.php)

ConfigurationCore (Configuration.php)

CookieCore (Cookie.php)

DbCore (Db.php)

FrontControllerCore (FrontController.php)

LinkCore (Link.php)

MailCore (Mail.php)

ObjectModelCore (ObjectModel.php)

This is the main object from PrestaShop's object model. Any overriding of its methods is bound to influence how all the other classes and methods act. Use carefully.

PDFCode (PDF.php)

ToolsCore (Tools.php)

ValidateCore.php

Last updated