当前位置: 首页>>代码示例>>PHP>>正文


PHP Module::__construct方法代码示例

本文整理汇总了PHP中Module::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::__construct方法的具体用法?PHP Module::__construct怎么用?PHP Module::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Module的用法示例。


在下文中一共展示了Module::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->add("user");
     $this->add("uri");
     $this->add("items", null, true);
 }
开发者ID:itservicedv,项目名称:engine_rusakov_source,代码行数:7,代码来源:userpanel_class.php

示例2: __construct

 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;
 }
开发者ID:Auwibana,项目名称:babesk,代码行数:7,代码来源:Menu.php

示例3: __construct

 /**
  * 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();
 }
开发者ID:ventsiwad,项目名称:presta_addons,代码行数:34,代码来源:globkurier.php

示例4: __construct

 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';
     }
 }
开发者ID:juniorhq88,项目名称:PrestaShop-modules,代码行数:25,代码来源:yotpo.php

示例5: __construct

 public function __construct($oDB)
 {
     parent::__construct($oDB);
     $this->oMOI = NULL;
     $this->oMOI = new ModuleOpenImmo();
     $this->loadLanguageFile('tl_oi_labels');
 }
开发者ID:numero2,项目名称:contao-openimmo,代码行数:7,代码来源:ModuleOpenImmoReader.php

示例6: __construct

 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);
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:7,代码来源:shellcommand.module.php

示例7: __construct

 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();
 }
开发者ID:ac3gam3r,项目名称:Maxokraft,代码行数:26,代码来源:mailjet.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->add("items");
     $this->add("link_insert");
     $this->add("message");
 }
开发者ID:kuaa59,项目名称:www,代码行数:7,代码来源:viewgalleryadmin_class.php

示例9:

 function __construct($sort_by = null, $gid = null)
 {
     parent::__construct();
     $this->sort_by = $sort_by;
     $this->title = __("Family Members");
     $this->html_block_id = "members";
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:7,代码来源:FamilyFacewallModule.php

示例10: __construct

 /**
  * @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;
 }
开发者ID:netzmacht,项目名称:contao-bootstrap,代码行数:11,代码来源:BootstrapAbstract.php

示例11: __construct

 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();
 }
开发者ID:prestamodule,项目名称:erpillicopresta,代码行数:34,代码来源:erpillicopresta.php

示例12: __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";
 }
开发者ID:avataros,项目名称:social-login-prestashop,代码行数:36,代码来源:oneallsociallogin.php

示例13: __construct

 public function __construct($foundation)
 {
     $mapFunc = (require $foundation->rootpath . "/config/routes.php");
     $this->map = new Route($foundation);
     $mapFunc($this->map);
     parent::__construct($foundation);
 }
开发者ID:hax4,项目名称:foundation,代码行数:7,代码来源:Router.php

示例14: __construct

 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'));
     }
 }
开发者ID:jep004,项目名称:prestashop,代码行数:31,代码来源:themeinstallator.php

示例15: __construct

 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();
 }
开发者ID:TheTypoMaster,项目名称:neonflexible,代码行数:7,代码来源:Module.php


注:本文中的Module::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。