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


PHP Mage_Core_Model_Abstract::_construct方法代码示例

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


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

示例1: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('adjicon/icon');
     $this->_iconPath = Mage::getBaseDir('media') . DS . 'icons' . DS;
     $this->setResizeOptions($this->_getDafaultResizeOptions());
 }
开发者ID:ravitechrlabs,项目名称:em,代码行数:7,代码来源:Icon.php

示例2: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('listrak/product_attribute_set_map');
     //set the default values
     $this->setData('use_config_categories_source', 1);
 }
开发者ID:RxOuchy,项目名称:LDS_Client_Solutions,代码行数:7,代码来源:Map.php

示例3: _construct

 public function _construct()
 {
     parent::_construct();
     if (!static::$_api) {
         static::$_api = Mage::getSingleton('eltrino_diamantedesk/api');
     }
 }
开发者ID:eltrino,项目名称:DiamanteDeskMagentoExtension,代码行数:7,代码来源:Users.php

示例4: _construct

 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");
 }
开发者ID:rcclaudrey,项目名称:dev,代码行数:27,代码来源:Import.php

示例5: _construct

 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'));
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:8,代码来源:Rules.php

示例6: _construct

 /**
 * Loading Default Constructor
 */
 public function _construct()
 {
     /**
      * Loading Parent Constructor 
      */
     parent::_construct();
     $this->_init('onestepcheckout/onestepcheckout');
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:11,代码来源:Onestepcheckout.php

示例7: _construct

 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');
 }
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:8,代码来源:Managebanners.php

示例8: _construct

 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');
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:8,代码来源:TempDbTable.php

示例9: _construct

 public function _construct()
 {
     if ($this->getProfileId()) {
         $profile = Mage::getModel('xtento_orderexport/profile')->load($this->getProfileId());
         $this->setProfile($profile);
     }
     parent::_construct();
 }
开发者ID:xiaoguizhidao,项目名称:autotech_design,代码行数:8,代码来源:Export.php

示例10: _construct

 public function _construct()
 {
     parent::_construct();
     if ($storeId = Mage::app()->getStore()->getId()) {
         $this->setStoreId($storeId);
     }
     $this->_init('productfile/productfile');
 }
开发者ID:Thinlt,项目名称:simicart,代码行数:8,代码来源:Productfile.php

示例11: _construct

 /**
  * 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);
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:11,代码来源:Mturbo.php

示例12: _construct

 /**
  * 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');
 }
开发者ID:vdimitrovv,项目名称:dotmailer-magento-extension,代码行数:12,代码来源:Rules.php

示例13: _construct

 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();
 }
开发者ID:sergeifilippov,项目名称:magento-slack,代码行数:9,代码来源:Abstract.php

示例14: _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());
     }
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:10,代码来源:Pdf.php

示例15: _construct

 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();
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:10,代码来源:Abstract.php


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