本文整理汇总了PHP中Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的具体用法?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct怎么用?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Resource_Db_Collection_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
/**
* Slider Collection Resource Constructor
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('antoinek_slider/slider');
$this->_map['fields']['store'] = 'store_table.store_id';
$this->_map['fields']['slider_id'] = 'main_table.slider_id';
}
示例2: _construct
/**
* Constructor
*/
protected function _construct()
{
parent::_construct();
$this->_init('esendex_sms/event');
// Enable caching for collection
$cache = Mage::app()->getCacheInstance();
$this->initCache($cache, 'esendex_sms_collection', array(Esendex_Sms_Model_Event::CACHE_TAG));
}
示例3: _construct
protected function _construct()
{
parent::_construct();
/**
* Tell Magento the Model and Resource Model to use for this
* Collection. Since both aliases are the same we can ommit
* the second paramater if we wished.
*/
$this->_init('bhargav_accordion/accordion', 'bhargav_accordion/accordion');
}
示例4: _construct
/**
* Constructor
* Configures collection
*
*/
protected function _construct()
{
parent::_construct();
$this->_init('newsletter/subscriber');
$this->_queueLinkTable = $this->getTable('newsletter/queue_link');
$this->_storeTable = $this->getTable('core/store');
// defining mapping for fields represented in several tables
$this->_map['fields']['customer_lastname'] = 'customer_lastname_table.value';
$this->_map['fields']['customer_firstname'] = 'customer_firstname_table.value';
$this->_map['fields']['type'] = $this->getResource()->getReadConnection()->getCheckSql('main_table.customer_id = 0', 1, 2);
$this->_map['fields']['website_id'] = 'store.website_id';
$this->_map['fields']['group_id'] = 'store.group_id';
$this->_map['fields']['store_id'] = 'main_table.store_id';
}
示例5: _construct
/**
* Constructor
*
*/
protected function _construct()
{
parent::_construct();
$this->_init('salesrule/coupon');
}
示例6: _construct
/**
* constructor
*
* @access public
* @return void
*
*/
protected function _construct()
{
parent::_construct();
$this->_init('db1_anymarket/anymarketproducts');
$this->_map['fields']['store'] = 'store_table.store_id';
}
示例7: _construct
/**
* Define resource model
*/
protected function _construct()
{
parent::_construct();
$this->_init('Mage_Core_Model_Layout_Link', 'Mage_Core_Model_Resource_Layout_Link');
}
示例8: _construct
/**
* Collection constructor
*
*/
protected function _construct()
{
parent::_construct();
$this->_init('salesrule/rule_product');
}
示例9: _construct
public function _construct()
{
parent::_construct();
$this->_init('mycdn/job');
}
示例10: _construct
/**
* constructor.
*/
public function _construct()
{
parent::_construct();
$this->_init('ddg_automation/catalog');
}
示例11: _construct
protected function _construct()
{
parent::_construct();
$this->_init('ultimatenewmedia_social/review', 'ultimatenewmedia_social/review');
}
示例12: _construct
/**
* constructor
*
* @access public
* @return void
* @author Ultimate Module Creator
*/
public function _construct()
{
parent::_construct();
$this->_init('ibrams_cmsextended/cmspage_comment');
$this->_map['fields']['store'] = 'store_table.store_id';
}
示例13: _construct
/**
* constructor
* @access public
* @return void
* @author Marius Strajeru <marius.strajeru@gmail.com>
*/
public function _construct()
{
parent::_construct();
$this->_init('easylife_switcher/hashcode');
}
示例14: _construct
/**
* Define resource model
*
*/
protected function _construct()
{
parent::_construct();
$this->_init('core/variable');
}
示例15: _construct
public function _construct()
{
parent::_construct();
$this->_init('deal/deal');
$this->_map['fields']['store'] = 'store_table.store_id';
}