/** * Initialise the object variables */ public function __construct() { $this->oPrediggoConfig = PrediggoConfig::singleton(); $this->oPrediggoRecommendationConfig = PrediggoRecommendationConfig::singleton(); $this->sRepositoryPath = _PS_MODULE_DIR_ . 'prediggo/logs/'; $this->setPagesAccessible(); $this->setPageName(); }
/** * Initialise the object variables */ public function __construct() { parent::__construct(); $this->oPrediggoSearchConfig = PrediggoSearchConfig::singleton(); if (!$this->oPrediggoSearchConfig->search_active) { return false; } $this->oPrediggoConfig = PrediggoConfig::singleton(); $this->sRepositoryPath = _PS_MODULE_DIR_ . 'prediggo/logs/'; $this->oPrediggoCall = new PrediggoCall($this->oPrediggoConfig->web_site_id, $this->oPrediggoSearchConfig->server_url_search); $this->sQuery = Tools::getValue('q'); $this->sRefineOption = Tools::getValue('refineOption'); }
/** * Initialise the object variables */ public function __construct() { $this->name = 'prediggo'; $this->tab = 'front_office_features'; $this->version = '1.8'; $this->author = 'Croissance Net'; $this->need_instance = 1; parent::__construct(); $this->displayName = $this->l('Prediggo'); $this->description = $this->l('Offers interactive products recommendations in the front office'); /* Set the Configuration Object */ $this->oPrediggoConfig = PrediggoConfig::singleton(); $this->oPrediggoExportConfig = PrediggoExportConfig::singleton(); $this->oPrediggoRecommendationConfig = PrediggoRecommendationConfig::singleton(); $this->oPrediggoSearchConfig = PrediggoSearchConfig::singleton(); /* Set the main controllers */ $this->oDataExtractorController = new DataExtractorController($this); $this->oPrediggoCallController = new PrediggoCallController(); $this->aRecommendations = array(); // Check configuration of the server $this->checkServerConfiguration(); }