本文整理汇总了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());
}
示例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);
}
示例3: _construct
public function _construct()
{
parent::_construct();
if (!static::$_api) {
static::$_api = Mage::getSingleton('eltrino_diamantedesk/api');
}
}
示例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");
}
示例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'));
}
示例6: _construct
/**
* Loading Default Constructor
*/
public function _construct()
{
/**
* Loading Parent Constructor
*/
parent::_construct();
$this->_init('onestepcheckout/onestepcheckout');
}
示例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');
}
示例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');
}
示例9: _construct
public function _construct()
{
if ($this->getProfileId()) {
$profile = Mage::getModel('xtento_orderexport/profile')->load($this->getProfileId());
$this->setProfile($profile);
}
parent::_construct();
}
示例10: _construct
public function _construct()
{
parent::_construct();
if ($storeId = Mage::app()->getStore()->getId()) {
$this->setStoreId($storeId);
}
$this->_init('productfile/productfile');
}
示例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);
}
示例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');
}
示例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();
}
示例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());
}
}
示例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();
}