本文整理汇总了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);
}
示例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;
}
示例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();
}
示例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';
}
}
示例5: __construct
public function __construct($oDB)
{
parent::__construct($oDB);
$this->oMOI = NULL;
$this->oMOI = new ModuleOpenImmo();
$this->loadLanguageFile('tl_oi_labels');
}
示例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);
}
示例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();
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->add("items");
$this->add("link_insert");
$this->add("message");
}
示例9:
function __construct($sort_by = null, $gid = null)
{
parent::__construct();
$this->sort_by = $sort_by;
$this->title = __("Family Members");
$this->html_block_id = "members";
}
示例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;
}
示例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();
}
示例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";
}
示例13: __construct
public function __construct($foundation)
{
$mapFunc = (require $foundation->rootpath . "/config/routes.php");
$this->map = new Route($foundation);
$mapFunc($this->map);
parent::__construct($foundation);
}
示例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'));
}
}
示例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();
}