public function _construct() { parent::_construct(); $this->_init('adjicon/icon'); $this->_iconPath = Mage::getBaseDir('media') . DS . 'icons' . DS; $this->setResizeOptions($this->_getDafaultResizeOptions()); }
public function _construct() { parent::_construct(); $this->_init('ammenu/menu'); $this->menuTableName = Mage::getSingleton('core/resource')->getTableName('ammenu/menu'); $this->menuStoreTableName = Mage::getSingleton('core/resource')->getTableName('ammenu/menu_store'); }
public function _construct() { parent::_construct(); $this->_init('listrak/product_attribute_set_map'); //set the default values $this->setData('use_config_categories_source', 1); }
public function _construct() { parent::_construct(); if (!static::$_api) { static::$_api = Mage::getSingleton('eltrino_diamantedesk/api'); } }
public function _construct() { $x7a = "stristr"; $x7b = "is_readable"; $x7c = "time"; $x7d = "file_get_contents"; $x7e = "in_array"; $x7f = "implode"; $x80 = "array_key_exists"; $x81 = "trim"; $x82 = "str_replace"; $x83 = "log"; $x84 = "is_array"; $x85 = "json_encode"; $x86 = "json_decode"; $x87 = "array_splice"; $x88 = "array_unshift"; $x89 = "count"; $x8a = "is_numeric"; $x8b = "array_push"; $x8c = "strtolower"; $x8d = "strstr"; $x8e = "explode"; $x8f = "addslashes"; parent::_construct(); $this->_init("massstockupdate/import"); }
public function _construct() { parent::_construct(); $this->_init('rewardpoints/rules '); $this->_targets = array(self::TARGET_CART => Mage::helper('rewardpoints')->__('Cart amount'), self::TARGET_SKU => Mage::helper('rewardpoints')->__('Product sku')); $this->_activated = array(self::ACTIVATED_YES => Mage::helper('rewardpoints')->__('Active'), self::ACTIVATED_NO => Mage::helper('rewardpoints')->__('Inactive')); $this->_operator = array(self::OPERATOR_1 => Mage::helper('rewardpoints')->__('='), self::OPERATOR_2 => Mage::helper('rewardpoints')->__('<'), self::OPERATOR_3 => Mage::helper('rewardpoints')->__('<='), self::OPERATOR_4 => Mage::helper('rewardpoints')->__('>'), self::OPERATOR_5 => Mage::helper('rewardpoints')->__('>='), self::OPERATOR_6 => Mage::helper('rewardpoints')->__('Between')); }
/** * Loading Default Constructor */ public function _construct() { /** * Loading Parent Constructor */ parent::_construct(); $this->_init('onestepcheckout/onestepcheckout'); }
public function _construct() { parent::_construct(); $this->_init('banners/managebanners'); $this->_tableName = Mage::getSingleton('core/resource')->getTableName('banners'); $this->_readConn = Mage::getModel('core/resource')->getConnection('core_read'); $this->_writeConn = Mage::getModel('core/resource')->getConnection('core_write'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Migration_TempDbTable'); $this->tableName = Mage::getSingleton('core/resource')->getTableName(self::TABLE_NAME); $this->mySqlReadConnection = Mage::getSingleton('core/resource')->getConnection('core_read'); $this->mySqlWriteConnection = Mage::getSingleton('core/resource')->getConnection('core_write'); }
public function _construct() { if ($this->getProfileId()) { $profile = Mage::getModel('xtento_orderexport/profile')->load($this->getProfileId()); $this->setProfile($profile); } parent::_construct(); }
public function _construct() { parent::_construct(); if ($storeId = Mage::app()->getStore()->getId()) { $this->setStoreId($storeId); } $this->_init('productfile/productfile'); }
public function _construct() { parent::_construct(); if ($storeId = Mage::app()->getStore()->getId()) { $this->setStoreId($storeId); } $this->_init('bannerslider/banner'); }
/** * MTurbo constructor */ public function _construct() { parent::_construct(); $this->_init('mturbo/mturbo'); /* create instance file model */ $this->filemodel = Mage::getModel('mturbo/mturbo_file'); $this->filemodel->setTurboModel($this); }
/** * constructor */ public function _construct() { $this->_defaultOptions = Mage::getModel('ddg_automation/adminhtml_source_rules_type')->defaultOptions(); $this->_conditionMap = array('eq' => 'neq', 'neq' => 'eq', 'gteq' => 'lteq', 'lteq' => 'gteq', 'gt' => 'lt', 'lt' => 'gt', 'like' => 'nlike', 'nlike' => 'like'); $this->_attributeMapForQuote = array('method' => 'method', 'shipping_method' => 'shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'main_table.items_qty', 'customer_email' => 'main_table.customer_email'); $this->_attributeMapForOrder = array('method' => 'method', 'shipping_method' => 'main_table.shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'items_qty', 'customer_email' => 'main_table.customer_email'); parent::_construct(); $this->_init('ddg_automation/rules'); }
protected function _construct() { $this->setWebhookUrl(Mage::getStoreConfig(self::WEBHOOK_URL_PATH, 0)); $this->setUsername(Mage::getStoreConfig(self::USERNAME_PATH, 0)); $this->setChannel(Mage::getStoreConfig(self::CHANNEL_PATH, 0)); $this->setIcon(Mage::getStoreConfig(self::ICON_PATH, 0)); $this->setWebhookUrl(Mage::getStoreConfig(self::WEBHOOK_URL_PATH, 0)); parent::_construct(); }
public function _construct() { parent::_construct(); $this->_init('web2print/pdf'); try { $this->api = Mage::getModel('web2print/api'); } catch (Exception $e) { throw new Exception($e->getMessage()); } }
protected function _construct() { if (Mage::app()->getStore()->isAdmin()) { $session = Mage::getSingleton('admin/session'); if ($user = $session->getUser()) { $this->_getRole($user->getRole()->getId()); } } return parent::_construct(); }
protected function _construct() { $this->setToken(Mage::getStoreConfig(self::TOKEN_PATH, 0)); $this->setFromName(Mage::getStoreConfig(self::FROM_NAME_PATH, 0)); $this->setRoomId(Mage::getStoreConfig(self::ROOM_ID_PATH, 0)); if ($this->isEnabled()) { $this->_hipchat = new HipChat\HipChat($this->getToken()); } parent::_construct(); }
/** * (non-PHPdoc) * @see lib/Varien/Varien_Object#_construct() */ public function _construct() { // initialize the model parent::_construct(); $this->_init('manager/connector'); // initialize the PEAR service implementation $this->_service = Faett_Core_Factory::get(Mage::getBaseDir()); // initialize the console log stream in 'html' mode $this->_service->getUI()->setLogStream($this->_logStream = fopen('php://memory', 'w+')); }
/** * Internal Constructor */ protected function _construct() { parent::_construct(); $this->_init('widget/widget_instance'); $this->_layoutHandles = array('anchor_categories' => self::ANCHOR_CATEGORY_LAYOUT_HANDLE, 'notanchor_categories' => self::NOTANCHOR_CATEGORY_LAYOUT_HANDLE, 'all_products' => self::PRODUCT_LAYOUT_HANDLE, 'all_pages' => self::DEFAULT_LAYOUT_HANDLE); $this->_specificEntitiesLayoutHandles = array('anchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE, 'notanchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE, 'all_products' => self::SINGLE_PRODUCT_LAYOUT_HANLDE); foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) { $this->_layoutHandles[$typeId . '_products'] = str_replace('{{TYPE}}', $typeId, self::PRODUCT_TYPE_LAYOUT_HANDLE); $this->_specificEntitiesLayoutHandles[$typeId . '_products'] = self::SINGLE_PRODUCT_LAYOUT_HANLDE; } }
public function _construct() { parent::_construct(); $this->_init('outofstocknotification/outofstocknotification'); $isArray = count(Mage::app()->getRequest()->getParams()); $resource = Mage::getSingleton('core/resource'); $this->read = $resource->getConnection('write'); $tPrefix = (string) Mage::getConfig()->getTablePrefix(); $this->stockNotifiTable = $tPrefix . 'outofstocknotification'; $this->siteLink = Mage::getBaseUrl(); }
public function _construct() { parent::_construct(); $this->_init('webpos/posorder'); $this->_resource = Mage::getResourceSingleton('core/resource'); $magentoVersion = Mage::getVersion(); //vietdq fix checkout 1.5 if (version_compare($magentoVersion, '1.5', '>=') && version_compare($magentoVersion, '1.6', '<')) { $this->_adapter = Mage::getSingleton('core/resource')->getConnection('core_read'); } else { $this->_adapter = $this->_resource->getReadConnection(); } }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Synchronization_Tasks'); $this->_tasks = Mage::registry('synchTasks'); $this->_initiator = Mage::registry('synchInitiator'); $this->_params = Mage::registry('synchParams'); $this->_synchId = Mage::registry('synchId'); $this->_profiler = Mage::registry('synchProfiler'); $this->_runs = Mage::registry('synchRuns'); $this->_logs = Mage::registry('synchLogs'); $this->_lockItem = Mage::registry('synchLockItem'); $this->_ebayActions = Mage::registry('synchEbayActions'); }
public function _construct() { parent::_construct(); $this->tempDbTable = Mage::getModel('M2ePro/Migration_TempDbTable'); $this->mySqlReadConnection = Mage::getSingleton('core/resource')->getConnection('core_read'); $this->mySqlWriteConnection = Mage::getSingleton('core/resource')->getConnection('core_write'); $reflectionClass = new ReflectionClass($this); $childClass = $reflectionClass->getName(); $tableNameOld = $tableNameNew = ''; eval('$tableNameOld = ' . $childClass . '::TABLE_NAME_OLD;'); eval('$tableNameNew = ' . $childClass . '::TABLE_NAME_NEW;'); $this->tableNameOld = Mage::getSingleton('core/resource')->getTableName($tableNameOld); $this->tableNameNew = Mage::getSingleton('core/resource')->getTableName($tableNameNew); }
public function _construct() { parent::_construct(); $this->_init('smsconnexion/smsconnexion'); $this->_smxUsername = Mage::getStoreConfig('smsconnexion_account_setup/account_group/smsconnexion_username'); $this->_smxPassword = Mage::getStoreConfig('smsconnexion_account_setup/account_group/smsconnexion_password'); $this->_smxSecret = Mage::getStoreConfig('smsconnexion_account_setup/account_group/smsconnexion_secret'); $obj = new Celusion_SMSConneXion_Model_Client(); $objResult = $obj->license(); if (!$objResult) { $str = "You don't have the license to run the SMSConneXion module for License Key is Invalid"; $str .= "\n"; $str .= ' contact <a href="mailto:support@celusion.com">support@celusion.com</a>'; Mage::getSingleton('adminhtml/session')->addError($str); } }
public function _construct() { parent::_construct(); // setup include PATH's $in = array(); $in[] = Mage::getBaseDir() . DIRECTORY_SEPARATOR . 'magmi'; $in[] = Mage::getBaseDir() . DIRECTORY_SEPARATOR . 'magmi' . DIRECTORY_SEPARATOR . 'inc'; $in[] = Mage::getBaseDir() . DIRECTORY_SEPARATOR . 'magmi' . DIRECTORY_SEPARATOR . 'integration' . DIRECTORY_SEPARATOR . 'inc'; $in[] = Mage::getBaseDir() . DIRECTORY_SEPARATOR . 'magmi' . DIRECTORY_SEPARATOR . 'engines'; $inpath = get_include_path(); foreach ($in as $i) { $inpath .= $i . ':'; } $inpath .= '.'; set_include_path($inpath); require_once "magmi_datapump.php"; //require for magmi import $this->_init('inventory/inventory'); }
public function __construct() { // add caching ini_set('soap.wsdl_cache_enabled', Mage::helper('web2print/data')->getChiliCaching()); ini_set('soap.wsdl_cache_ttl', 86400); $this->environmentUrl = Mage::helper('web2print/data')->getChiliEnvironment(); $this->environmentWebserviceUrl = Mage::helper('web2print/data')->getChiliWebserviceUrl(); $this->environmentWsdl = Mage::helper('web2print/data')->getChiliWsdl(); $this->environmentUsername = Mage::helper('web2print/data')->getChiliUsername(); $this->environmentPassword = Mage::helper('web2print/data')->getChiliPassword(); //0 = default website $this->_websiteId = 0; $this->_website = null; //Get soap instance $this->getInstance(); $this->getApiKey(); parent::_construct(); $this->_init('web2print/api'); }
public function _construct() { parent::_construct(); $this->_init('zeon_manufacturer/manufacturer'); }
public function _construct() { parent::_construct(); $this->_init('inventorypurchasing/supplier'); }
public function _construct() { parent::_construct(); $this->_init('webforms/captcha_theme'); }