<?php
/**
* ---------------------------------------------------------------------------------
*
* This file is part of the 'giftonordermodule' module feature (main || related module)
* Developped for Prestashop platform.
* You are not allowed to use it on several site
* You are not allowed to redistribute this module
* This header must not be removed
*
* @category  giftonordermodule
* @author    OleaCorner <contact@oleacorner.com> <www.oleacorner.com>
* @copyright OleaCorner
* @version   4.3
* @license   XXX
*         
* ---------------------------------------------------------------------------------
*/

class Shop extends ShopCore
{

	protected static function init()
	{
		parent::init();
	
		// Oleacorner for module MaxiPromo
		Shop::addTableAssociation('giftonorder', array('type' => 'shop'));
		// End Oleacorner
	
	}
	
	/* Oleacorner : function before 1.5.2 */
	public static function addTableAssociation($table_name, $table_details)
	{
		if (version_compare ('1.5.3', _PS_VERSION_) <= 0)
			return parent::addTableAssociation($table_name, $table_details);
	
		else
		{
			if (!isset(Shop::$asso_tables[$table_name]))
				Shop::$asso_tables[$table_name] = $table_details;
			else
				return false;
			return true;
		}
			
	}
	
}

