?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/override/classes/



?? Go up: /home/webdevt/www/schtroumpf.fr/override

?? Viewing: Hook.php

<?php
/**
 * Copyright ETS Software Technology Co., Ltd
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 website only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future.
 *
 * @author ETS Software Technology Co., Ltd
 * @copyright  ETS Software Technology Co., Ltd
 * @license    Valid for 1 website (or project) for each purchase of license
 */
if (!defined('_PS_VERSION_')) { exit; }
class Hook extends HookCore
{   
    /*
    * module: ets_superspeed
    * date: 2024-01-02 03:47:14
    * version: 1.8.4
    */
    public static function exec($hook_name, $hook_args = array(), $id_module = null, $array_return = false, $check_exceptions = true,$use_push = false, $id_shop = null,$chain=false)
    {
        if(Tools::strtolower($hook_name)=='header' || Tools::strtolower($hook_name)=='displayheader' || !Module::isEnabled('ets_superspeed'))
            return parent::exec($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop,$chain);
        require_once(dirname(__FILE__).'/../../modules/ets_superspeed/classes/ext/ets_hook');
        $class='Ets_Hook';
        $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
        if (Tools::version_compare(_PS_VERSION_,'1.7','>=')) {
            $method='exec17';
            return call_user_func_array(array($class, $method),array($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop,$chain,$backtrace));
        }
        else
        {
            $method='exec16';
            return call_user_func_array(array($class, $method),array($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop));
        }
    }
}


??

??