public function __construct()
 {
     parent::__construct();
     $this->add("user");
     $this->add("uri");
     $this->add("items", null, true);
 }
示例#2
0
文件: Menu.php 项目: Auwibana/babesk
 public function __construct($name, $display_name, $path)
 {
     require_once 'AdminMenuProcessing.php';
     require_once 'AdminMenuInterface.php';
     parent::__construct($name, $display_name, $path);
     $this->smartyPath = PATH_SMARTY_TPL . '/web' . $path;
 }
示例#3
0
 /**
  * Construct Method
  */
 public function __construct()
 {
     $this->name = 'globkurier';
     $this->tab = 'shipping_logistics';
     $this->version = '1.1';
     $this->author = 'GlobKurier | Solik Tomasz <info[at]tomaszsolik.pl>';
     $this->need_instance = 0;
     parent::__construct();
     $this->displayName = $this->l('GlobKurier.pl');
     $this->description = $this->l('Save up to 80% off on UPS, DPD, K-EX, DHL with GlobKurier module!');
     $this->confirmUninstall = $this->l('Warning: all the data saved in your database will be deleted. Are you sure you want uninstall this module?');
     /* Backward compatibility */
     if (version_compare(_PS_VERSION_, '1.5.0.0', '<')) {
         require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
     }
     // Custom value
     $this->login = Configuration::get($this->name . '_LOGIN');
     $this->password = Configuration::get($this->name . '_PASSWORD');
     $this->apikey = Configuration::get($this->name . '_API_KEY');
     $this->arr_login_err = array();
     $this->arr_login_result = array();
     $this->arr_register_err = array();
     $this->arr_register_result = array();
     $this->arr_apikey_err = array();
     $this->arr_apikey_result = array();
     $this->arr_order_err = array();
     $this->arr_order_result = array();
     $this->arr_order_products = array();
     $this->arr_addons_err = array();
     $this->arr_addons_result = array();
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->add("hornav");
     $this->add("header");
     $this->add("items", null, true);
 }
示例#5
0
 public function __construct()
 {
     $version_mask = explode('.', _PS_VERSION_, 3);
     $version_test = $version_mask[0] > 0 && $version_mask[1] > 4;
     $this->name = 'yotpo';
     $this->tab = $version_test ? 'advertising_marketing' : 'Reviews';
     $this->version = '1.3.2';
     if ($version_test) {
         $this->author = 'Yotpo';
     }
     $this->need_instance = 1;
     parent::__construct();
     $this->displayName = $this->l('Yotpo - Social Reviews and Testimonials');
     $this->description = $this->l('The #1 reviews add-on for SMBs. Generate beautiful, trusted reviews for your shop.');
     $this->_yotpo_module_path = _PS_MODULE_DIR_ . $this->name;
     if (!Configuration::get('yotpo_app_key')) {
         $this->warning = $this->l('Set your API key in order the Yotpo module to work correctly');
     }
     if (!defined('_PS_BASE_URL_')) {
         define('_PS_BASE_URL_', 'http://' . (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']));
     }
     if (file_exists($this->_yotpo_module_path . '/YotpoSnippetCache.php')) {
         include_once $this->_yotpo_module_path . '/YotpoSnippetCache.php';
     }
 }
 public function __construct($oDB)
 {
     parent::__construct($oDB);
     $this->oMOI = NULL;
     $this->oMOI = new ModuleOpenImmo();
     $this->loadLanguageFile('tl_oi_labels');
 }
示例#7
0
 public function __construct(database $db, user $user, $mediaid = '', $layoutid = '', $regionid = '', $lkid = '')
 {
     // Must set the type of the class
     $this->type = 'shellcommand';
     // Must call the parent class
     parent::__construct($db, $user, $mediaid, $layoutid, $regionid, $lkid);
 }
示例#8
0
 public function __construct()
 {
     //$this->getAdminFullUrl();
     // Default module variable
     $this->name = 'mailjet';
     $this->displayName = 'Mailjet';
     $this->description = $this->l('Create contact lists and client segment groups, drag-n-drop newsletters, define client re-engagement triggers, follow and analyze all email user interaction, minimize negative user engagement events (blocked, unsubs and spam) and optimise deliverability and revenue generation. Get started today with 6000 free emails per month.');
     $this->author = 'PrestaShop';
     $this->version = '3.2.5';
     $this->module_key = '59cce32ad9a4b86c46e41ac95f298076';
     $this->tab = 'advertising_marketing';
     // Parent constructor
     parent::__construct();
     // Backward compatibility
     if (version_compare(_PS_VERSION_, '1.5', '<')) {
         require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
     }
     if ($this->active) {
         $this->module_access['uri'] = __PS_BASE_URI__ . 'modules/' . $this->name . '/';
         $this->module_access['dir'] = _PS_MODULE_DIR_ . $this->name . '/';
         $this->initAccountSettings();
         MailJetLog::init();
         $this->initTriggers();
     }
     $this->initContext();
 }
示例#9
0
 public function __construct()
 {
     parent::__construct();
     $this->add("items");
     $this->add("link_insert");
     $this->add("message");
 }
 function __construct($sort_by = null, $gid = null)
 {
     parent::__construct();
     $this->sort_by = $sort_by;
     $this->title = __("Family Members");
     $this->html_block_id = "members";
 }
 /**
  * @param        $objElement
  * @param string $strColumn
  */
 public function __construct($objElement, $strColumn = 'main')
 {
     parent::__construct($objElement, $strColumn);
     $this->arrData = new Attributes($this->arrData);
     $this->arrData->registerNamespaceAttributes($this->arrBootstrapAttributes);
     $this->cssDefinitioin = $this->cssID;
 }
 public function __construct()
 {
     // these two classes extends ErpIllicopresta
     require_once _PS_MODULE_DIR_ . 'erpillicopresta/config/Licence.php';
     require_once _PS_MODULE_DIR_ . 'erpillicopresta/classes/ErpConfiguration.php';
     // Get ISO Lang
     $this->context = Context::getContext();
     // Only iso_code "fr" or "en" are allowed (by default)
     $this->iso_code = $this->context->language->iso_code != 'fr' ? 'en' : 'fr';
     $this->bootstrap = true;
     $this->diplayFormHasLicence = true;
     // display form to ask if merchant has a licence number
     $this->blockLicence = false;
     // block licence if fatal error
     $this->name = 'erpillicopresta';
     $this->tab = 'administration';
     $this->version = '3.0.2';
     $this->author = 'illicopresta';
     $this->displayName = $this->l('1 Click ERP Illicopresta');
     $this->description = $this->l('Save time in managing your E-Shop with the first ERP FREE and flexible(customer orders, Shipment, Suppliers, Stock management and export, inventory, ...).');
     $this->is_1_6 = version_compare(_PS_VERSION_, '1.6') > 0 ? true : false;
     $this->trash_category_name = 'Divers';
     // list of stock mvt reason to install
     $this->stock_mvt_reason = array('Increase inventory' => array('sign' => 1, 'lang' => array('fr' => 'Augmentation d\'inventaire', 'en' => 'Increase of inventory')), 'Decrease inventory' => array('sign' => -1, 'lang' => array('fr' => 'Diminution d\'inventaire', 'en' => 'Decrease of inventory')), 'Reception cancelling' => array('sign' => -1, 'configuration_name' => 'ERP_RECEPTION_CANCELING_ID', 'lang' => array('fr' => 'Annulation de réception', 'en' => 'Cancellation of reception')));
     // list of original menu to enable/disable
     $this->original_menus = array('AdminOrders', 'AdminSupplyOrders', 'AdminSuppliers');
     // list of original menu for 1.6
     if ($this->is_1_6) {
         array_push($this->original_menus, 'AdminParentOrders');
     }
     // list of fileds name configuration
     $this->field_name_configuration = array('erp_exceptional_order_limit' => array('default' => '', 'deleteOnUninstall' => true), 'erp_comparison_period' => array('default' => 6, 'deleteOnUninstall' => true), 'erp_projected_period' => array('default' => 15, 'deleteOnUninstall' => true), 'erp_coefficients' => array('default' => '1.4;1.2;1;1;0.8;0.6', 'deleteOnUninstall' => true), 'erp_sales_forecast_choice' => array('default' => 0, 'deleteOnUninstall' => true), 'erp_rolling_months_nb_so' => array('default' => 6, 'deleteOnUninstall' => true), 'erp_generate_order_state_to' => array('default' => 4, 'deleteOnUninstall' => true), 'erp_generate_order_state' => array('default' => 3, 'deleteOnUninstall' => true), 'erp_so_state_to_send_mail' => array('default' => '', 'deleteOnUninstall' => true), 'erp_enable_sending_mail_supplier' => array('default' => 0, 'deleteOnUninstall' => true), 'erp_prefix_reference' => array('default' => 'SO', 'deleteOnUninstall' => true), 'erp_disable_original_menus' => array('default' => '0', 'deleteOnUninstall' => true), 'erp_state_to_send_mail_so' => array('default' => '2', 'deleteOnUninstall' => true), 'erp_contact_mail' => array('default' => '', 'deleteOnUninstall' => true), 'erp_licence_mail' => array('default' => '', 'deleteOnUninstall' => true), 'erp_knowledge_source' => array('default' => '', 'deleteOnUninstall' => true), 'erp_contact_name' => array('default' => '', 'deleteOnUninstall' => true), 'erp_contact_firstname' => array('default' => '', 'deleteOnUninstall' => true), 'erp_newsletter' => array('default' => 1, 'deleteOnUninstall' => true), 'erp_partner_code' => array('default' => '', 'deleteOnUninstall' => true), 'erp_commande_previsionnel' => array('default' => '', 'deleteOnUninstall' => true), 'erp_sales_forecast_choice' => array('default' => 0, 'deleteOnUninstall' => true), 'erp_rolling_months_nb_so' => array('default' => 6, 'deleteOnUninstall' => true), 'erp_prefix_reference_so' => array('default' => 'SO', 'deleteOnUninstall' => true), 'erp_reception_canceling_id' => array('default' => '', 'deleteOnUninstall' => true), 'erp_licence_validity' => array('default' => 0, 'deleteOnUninstall' => true), 'erp_msg_after_process' => array('default' => '', 'deleteOnUninstall' => true), 'erp_licence_install_error' => array('default' => 0, 'deleteOnUninstall' => true), 'erp_new_licence' => array('default' => '', 'deleteOnUninstall' => true), 'erp_licence_domaine_generate' => array('default' => '', 'deleteOnUninstall' => true), 'erp_configuration_ok' => array('default' => false, 'deleteOnUninstall' => true), 'erp_so_state_to_product_sales' => array('default' => 5, 'deleteOnUninstall' => true));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->name = 'oneallsociallogin';
     $this->tab = 'administration';
     $this->version = '1.2';
     $this->author = 'OneAll LLC';
     $this->need_instance = 0;
     $this->module_key = '2571f9dab09af193a8ca375a09133873';
     $this->secure_key = Tools::encrypt($this->name);
     parent::__construct();
     $this->displayName = $this->l('OneAll Social Login');
     $this->description = $this->l('Professionally developed and free module that allows your users to register and login to PrestaShop with their Social Network account (Twitter, Facebook, LinkedIn, Google ...)');
     $this->confirmUninstall = $this->l('Are you sure you want to uninstall Social Login?');
     // This is the first time that the class is used
     if (!Configuration::get('OASL_FIRST_INSTALL')) {
         // Setup default values
         Configuration::updateValue('OASL_FIRST_INSTALL', '1');
         Configuration::updateValue('OASL_API_HANDLER', 'curl');
         Configuration::updateValue('OASL_API_PORT', '443');
         Configuration::updateValue('OASL_PROVIDERS', 'facebook,twitter,google,linkedin');
         Configuration::updateValue('OASL_LINK_ACCOUNT_DISABLE', 0);
         Configuration::updateValue('OASL_HOOK_LEFT_DISABLE', 1);
         Configuration::updateValue('OASL_HOOK_LEFT_TITLE', $this->l('Connect with:'));
         Configuration::updateValue('OASL_HOOK_RIGHT_DISABLE', 0);
         Configuration::updateValue('OASL_HOOK_RIGHT_TITLE', $this->l('Connect with:'));
         Configuration::updateValue('OASL_DATA_HANDLING', 'verify');
         Configuration::updateValue('OASL_EMAIL_CUSTOMER_DISABLE', '0');
         Configuration::updateValue('OASL_EMAIL_ADMIN_DISABLE', '0');
     }
     // Requires includes
     require_once dirname(__FILE__) . "/includes/tools.php";
     require_once dirname(__FILE__) . "/includes/providers.php";
 }
示例#14
0
 public function __construct($foundation)
 {
     $mapFunc = (require $foundation->rootpath . "/config/routes.php");
     $this->map = new Route($foundation);
     $mapFunc($this->map);
     parent::__construct($foundation);
 }
示例#15
0
 public function __construct()
 {
     @set_time_limit(0);
     @ini_set('memory_limit', '2G');
     $this->name = 'themeinstallator';
     $this->version = '2.8.3';
     $this->author = 'PrestaShop';
     $this->need_instance = 0;
     if (version_compare(_PS_VERSION_, 1.4) >= 0) {
         $this->tab = 'administration';
     } else {
         $this->tab = 'Theme';
     }
     parent::__construct();
     $this->displayName = $this->l('Import/export a theme');
     $this->description = $this->l('Export or Install a theme and its modules on your shop.');
     if ($this->active && defined('_PS_ADMIN_DIR_')) {
         if (_PS_VERSION_ < '1.5') {
             global $currentIndex;
             $this->current_index = $currentIndex;
             require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
             /* Backward compatibility */
             $this->backwardCompatibilityChecks();
             $this->module_native = ThemeInstallator::NATIVE_MODULE_LIST_14;
         } else {
             $this->current_index = AdminController::$currentIndex;
             $this->module_native = ThemeInstallator::NATIVE_MODULE_LIST_15;
         }
         $this->action_form = $this->current_index . '&configure=' . $this->name . '&token=' . Tools::htmlentitiesUTF8(Tools::getValue('token'));
     }
 }
示例#16
0
 public function __construct()
 {
     // define path of directory module
     $this->module_dir = _PS_MODULE_DIR_ . $this->name . DIRECTORY_SEPARATOR;
     $this->module_uri = DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $this->name . DIRECTORY_SEPARATOR;
     parent::__construct();
 }
 /**
  * Construct.
  *
  * @param \ModuleModel $module Module model.
  * @param string       $column Column type.
  */
 public function __construct($module, $column = 'main')
 {
     parent::__construct($module, $column);
     if ($this->bootstrap_navbarTemplate != '') {
         $this->strTemplate = $this->bootstrap_navbarTemplate;
     }
 }
示例#18
0
 public function __construct()
 {
     $this->name = 'megaboxs';
     $this->arrHook = array('displayMegaboxs', 'displayFooter', 'displayHomeBottomColumn', 'displayBottomColumn', 'hookdisplayHome', 'displayLeftColumn', 'displayRightColumn');
     $this->arrLayout = array('default' => $this->l('Default'));
     $this->arrMenuType = array('link' => $this->l('Link'), 'image' => $this->l('Image'), 'html' => $this->l('Custom HTML'), 'module' => $this->l('Module'));
     $this->arrFlickrFeedapi = array('photos_public.gne' => $this->l('Public photos & video'), 'photos_friends.gne' => $this->l('Friends photostream'), 'photos_faves.gne' => $this->l('Public favorites from a user'), 'groups_discuss.gne' => $this->l('Group discussions'), 'groups_pool.gne' => $this->l('Group pools'), 'forums.gne' => $this->l('Forum discussions'), 'activity.gne' => $this->l('Recent activity on your photostream'), 'photos_comments.gne' => $this->l('Recent comments you made'));
     $this->arrGroupType = array('link' => $this->l('Link'), 'product' => $this->l('Product'), 'module' => $this->l('Module'), 'html' => $this->l('Html'), 'contact' => $this->l('Contact form'), 'twitter_feed' => $this->l('Twitter feed'), 'flickr_feed' => $this->l('Flickr feed'), 'store_map' => $this->l('Store map'));
     $this->arrProductOrderBy = array('seller' => $this->l('Seller'), 'price' => $this->l('Price'), 'discount' => $this->l('Discount'), 'date_add' => $this->l('Add Date'), 'position' => $this->l('Position'), 'review' => $this->l('Review'), 'view' => $this->l('View'), 'rate' => $this->l('Rates'));
     $this->arrProductOrderWay = array('asc' => $this->l('Ascending'), 'desc' => $this->l('Descending'));
     $this->arrProductOnCondition = array('all' => $this->l('All'), 'new' => $this->l('New'), 'used' => $this->l('Used'), 'refurbished' => $this->l('Refurbished'));
     $this->arrProductOnSale = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductOnNew = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductOnDiscount = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductType = array('auto' => $this->l('Auto'), 'manual' => $this->l('Manual'));
     $this->arrCol = array('0' => $this->l('None'), '1' => $this->l('Col 1'), '2' => $this->l('Col 2'), '3' => $this->l('Col 3'), '4' => $this->l('Col 4'), '5' => $this->l('Col 5'), '6' => $this->l('Col 6'), '7' => $this->l('Col 7'), '8' => $this->l('Col 8'), '9' => $this->l('Col 9'), '10' => $this->l('Col 10'), '11' => $this->l('Col 11'), '12' => $this->l('Col 12'));
     $this->secure_key = Tools::encrypt($this->name);
     $this->pathImage = dirname(__FILE__) . '/images/';
     if (Tools::usingSecureMode()) {
         $this->liveImage = _PS_BASE_URL_SSL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/';
     } else {
         $this->liveImage = _PS_BASE_URL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/';
     }
     $this->tab = 'front_office_features';
     $this->version = '1.0';
     $this->author = 'OVIC-SOFT';
     $this->bootstrap = true;
     parent::__construct();
     $this->displayName = $this->l('Mega boxs Module');
     $this->description = $this->l('Mega boxs Module');
     $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_);
     $this->datas = dirname(__FILE__) . '/datas/';
 }
示例#19
0
 function __construct($parent=false) {
     parent::__construct();
     if ($parent) {
         $this->parent = $parent;
         $this->stream = $parent->stream;
     }
 }
示例#20
0
 public function __construct()
 {
     parent::__construct();
     if (!User::loggedin()) {
         redirect('login');
     }
 }
 public function __construct()
 {
     $this->name = 'nqgatewayneteven';
     $tab_name = 'Tools';
     if (constant('_PS_VERSION_') >= 1.4) {
         $tab_name = 'market_place';
     }
     $this->tab = $tab_name;
     $this->version = '2.8';
     $this->author = 'NetEven';
     parent::__construct();
     $this->displayName = $this->l('NetEven');
     $this->description = $this->l('Vendez sur toutes les marketplaces depuis votre PrestaShop');
     $this->ps_versions_compliancy = array('min' => '1.4', 'max' => _PS_VERSION_);
     $this->feature_url = '/script/set-neteven-categories.php?token=' . Tools::encrypt(Configuration::get('PS_SHOP_NAME'));
     $this->order_url = '/script/import-order.php?token=' . Tools::encrypt(Configuration::get('PS_SHOP_NAME')) . '&active=1';
     $this->product_url = '/script/update-product.php?token=' . Tools::encrypt(Configuration::get('PS_SHOP_NAME')) . '&active=1';
     if (!$this->getSOAP()) {
         $this->warning = $this->l('SOAP should be installed for this module');
     }
     if (version_compare(_PS_VERSION_, '1.5', '<')) {
         require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php';
     }
     if (Module::isInstalled($this->name)) {
         $this->unInstallHookByVersion();
         $this->installHookByVersion();
         $this->installCarrier();
     }
 }
 function __construct()
 {
     parent::__construct();
     $this->title = __('Forums List');
     $this->class_name = get_class($this);
     $this->html_block_id = 'ForumsListModule';
 }
 function __construct()
 {
     parent::__construct();
     $this->title = __('Contacts');
     $this->outer_template = "outer_public_center_edit_profile_module.tpl";
     $this->contacts = array();
 }
示例#24
0
 public function __construct()
 {
     $this->name = 'watermark';
     $this->tab = 'administration';
     $this->version = '0.3';
     $this->author = 'PrestaShop';
     parent::__construct();
     $config = Configuration::getMultiple(array('WATERMARK_TYPES', 'WATERMARK_Y_ALIGN', 'WATERMARK_X_ALIGN', 'WATERMARK_TRANSPARENCY'));
     if (!isset($config['WATERMARK_TYPES'])) {
         $config['WATERMARK_TYPES'] = '';
     }
     $tmp = explode(',', $config['WATERMARK_TYPES']);
     foreach (ImageType::getImagesTypes('products') as $type) {
         if (in_array($type['id_image_type'], $tmp)) {
             $this->imageTypes[] = $type;
         }
     }
     $this->yAlign = isset($config['WATERMARK_Y_ALIGN']) ? $config['WATERMARK_Y_ALIGN'] : '';
     $this->xAlign = isset($config['WATERMARK_X_ALIGN']) ? $config['WATERMARK_X_ALIGN'] : '';
     $this->transparency = isset($config['WATERMARK_TRANSPARENCY']) ? $config['WATERMARK_TRANSPARENCY'] : 60;
     $this->displayName = $this->l('Watermark');
     $this->description = $this->l('Protect image by watermark.');
     $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
     if (!isset($this->transparency) || !isset($this->xAlign) || !isset($this->yAlign)) {
         $this->warning = $this->l('Watermark image must be uploaded in order for this module to work correctly.');
     }
 }
示例#25
0
 public function __construct()
 {
     global $smarty;
     $this->name = 'trustedshops';
     $this->tab = 'payment_security';
     $this->version = '1.3.3';
     parent::__construct();
     if (empty(self::$objects_list)) {
         TSBuyerProtection::setTranslationObject($this);
         $obj_ts_rating = new TrustedShopsRating();
         $obj_ts_buyerprotection = new TSBuyerProtection();
         $obj_ts_buyerprotection->_setEnvApi(TSBuyerProtection::ENV_PROD);
         self::$objects_list = array($obj_ts_rating, $obj_ts_buyerprotection);
         self::$objects_list[0]->setModuleName($this->name);
         self::$objects_list[0]->setSmarty($smarty);
     }
     if (!extension_loaded('soap')) {
         $this->warnings[] = $this->l('This module requires the SOAP PHP extension to function properly.');
     }
     foreach (self::$objects_list as $object) {
         $this->limited_countries = array_merge($this->limited_countries, $object->limited_countries);
         if (!empty($object->warnings)) {
             $this->warnings = array_merge($this->warnings, $object->warnings);
         }
     }
     if (!empty($this->warnings)) {
         $this->warning = implode(',<br />', $this->warnings) . '.';
     }
     $this->displayName = $this->l('Trusted Shops trust solutions');
     $this->description = $this->l('Build confidence in your online shop with the Trusted Shops quality seal, buyer protection and customer rating.');
     $this->confirmUninstall = $this->l('Are you sure you want to delete all your settings?');
 }
示例#26
0
 public function __construct()
 {
     $this->displayName = $this->l('FAQ Product Sheets - Questions about Products');
     $this->description = $this->l('Receive and answer your customer questions. Go to the menu Catalog - FAQ Product Questions to manage them.');
     $this->name = 'lgconsultas';
     $this->tab = 'front_office_features';
     $this->version = '1.2.1';
     $this->author = 'Línea Gráfica';
     $this->need_instance = 0;
     $this->module_key = '99a3669f4b5f0377e0a63e572ac04711';
     parent::__construct();
     if (substr_count(_PS_VERSION_, '1.6') > 0) {
         $this->bootstrap = true;
     } else {
         $this->bootstrap = false;
     }
     if (self::isInstalled($this->name)) {
         $this->id_lang = (int) Configuration::get('PS_LANG_DEFAULT');
         $this->iso_lang = pSQL(Language::getIsoById($this->id_lang));
         /* Check Mail Directory */
         if (!is_dir('../modules/' . $this->name . '/mails/' . $this->iso_lang . '/')) {
             $this->warning .= $this->l('directory') . ' "' . $this->iso_lang . '" does not exist ' . '../modules/' . $this->name . '/mails/' . $this->iso_lang . '/';
         }
     }
 }
示例#27
0
 function __construct()
 {
     parent::__construct();
     $this->config->load('fuel', TRUE);
     $this->load->module_library(FUEL_FOLDER, 'fuel_layouts');
     $this->load->module_model(FUEL_FOLDER, 'pagevariables_model');
 }
 function __construct()
 {
     parent::__construct();
     $this->title = __('Edit/Create Dynamic Page');
     $this->page = new DynamicPage();
     $this->page->initialize();
 }
 /**
  * Generate module
  */
 public function __construct($cfg)
 {
     $this->import('FrontendUser', 'User');
     $this->import("Database");
     parent::__construct($cfg);
     $this->xkn_event_sub_id = $this->arrData['xkn_event_sub_id'];
 }
示例#30
0
 public function __construct()
 {
     $this->name = 'megamenus';
     $this->arrHook = array('displayVerticalMenu', 'displayHorizontalMenu', 'displayLeftColumn', 'displayTopColumn', 'displayMegamenuLeft', 'displayMegamenuRight');
     $this->arrLayout = array('vertical_left' => $this->l('Vertical Left'), 'horizontal_top' => $this->l('Horizontal Top'));
     $this->arrMenuType = array('link' => $this->l('Link'), 'image' => $this->l('Image'), 'html' => $this->l('Custom HTML'), 'module' => $this->l('Module'));
     $this->arrGroupType = array('link' => $this->l('Link'), 'product' => $this->l('Product'), 'module' => $this->l('Module'));
     $this->arrProductOrderBy = array('seller' => $this->l('Seller'), 'price' => $this->l('Price'), 'discount' => $this->l('Discount'), 'date_add' => $this->l('Add Date'), 'position' => $this->l('Position'), 'review' => $this->l('Review'), 'rate' => $this->l('Rates'));
     $this->arrProductOrderWay = array('asc' => $this->l('Ascending'), 'desc' => $this->l('Descending'));
     $this->arrProductOnCondition = array('all' => $this->l('All'), 'new' => $this->l('New'), 'used' => $this->l('Used'), 'refurbished' => $this->l('Refurbished'));
     $this->arrProductOnSale = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductOnNew = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductOnDiscount = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes'));
     $this->arrProductType = array('auto' => $this->l('Auto'), 'manual' => $this->l('Manual'));
     $this->arrCol = array('0' => $this->l('None'), '1' => $this->l('Col 1'), '2' => $this->l('Col 2'), '3' => $this->l('Col 3'), '4' => $this->l('Col 4'), '5' => $this->l('Col 5'), '6' => $this->l('Col 6'), '7' => $this->l('Col 7'), '8' => $this->l('Col 8'), '9' => $this->l('Col 9'), '10' => $this->l('Col 10'), '11' => $this->l('Col 11'), '12' => $this->l('Col 12'));
     $this->secure_key = Tools::encrypt($this->name);
     $this->pathImage = dirname(__FILE__) . '/images/';
     if (Tools::usingSecureMode()) {
         $this->liveImage = _PS_BASE_URL_SSL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/';
     } else {
         $this->liveImage = _PS_BASE_URL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/';
     }
     $this->tab = 'front_office_features';
     $this->version = '2.0';
     $this->author = 'OVIC-SOFT';
     $this->bootstrap = true;
     parent::__construct();
     $this->displayName = $this->l('Mega menus Module');
     $this->description = $this->l('Mega menus Module');
     $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_);
     $this->datas = dirname(__FILE__) . '/datas/';
 }