本文整理汇总了PHP中Mage_Core_Model_Mysql4_Collection_Abstract::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Mysql4_Collection_Abstract::_construct方法的具体用法?PHP Mage_Core_Model_Mysql4_Collection_Abstract::_construct怎么用?PHP Mage_Core_Model_Mysql4_Collection_Abstract::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Mysql4_Collection_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Mysql4_Collection_Abstract::_construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
public function _construct()
{
parent::_construct();
$this->_init('slideshow/category');
$this->_map['fields']['category_id'] = 'main_table.category_id';
$this->_map['fields']['store'] = 'store_table.store_id';
}
示例2: _construct
public function _construct()
{
parent::_construct();
$this->_init('gosf/gosf');
$this->_map['fields']['value_id'] = 'main_table.value_id';
//$this->_map['fields']['store'] = 'store_table.store_id';
}
示例3: __construct
/**
* Initialize custom resource model
*/
public function __construct()
{
parent::_construct();
$this->setModel('adminhtml/report_item');
$this->_resource = Mage::getResourceModel('sales/order_item');
$this->setConnection($this->getResource()->getReadConnection());
}
示例4: __construct
/**
* Initialize custom resource model
*/
public function __construct()
{
parent::_construct();
$this->setModel('adminhtml/report_item');
$this->_resource = Mage::getResourceModel('advancedreports/salesbyhour')->init('advancedreports/salesbyhour');
$this->setConnection($this->getResource()->getReadConnection());
}
示例5: _construct
public function _construct()
{
parent::_construct();
$this->_init('payperrentals/rentalqueue');
if (!Mage::app()->isSingleStoreMode() && Mage::app()->getStore()->getId()) {
$this->setStoreId(Mage::app()->getStore()->getId());
}
}
示例6: _construct
public function _construct()
{
parent::_construct();
$this->_init('rocketweb_search/query');
$this->_map['fields']['query_id'] = 'main_table.query_id';
$this->_map['fields']['store'] = 'store_table.store_id';
$this->_map['fields']['sku'] = 'sku_table.store_id';
}
示例7: _construct
/**
* Constructor
*
* Configures collection
*/
protected function _construct()
{
parent::_construct();
$this->_subscriberTable = Mage::getSingleton('core/resource')->getTableName('newsletter/subscriber');
$this->_queueLinkTable = Mage::getSingleton('core/resource')->getTableName('newsletter/queue_link');
$this->_storeTable = Mage::getSingleton('core/resource')->getTableName('core/store');
$this->_init('newsletter/subscriber');
}
示例8: _construct
public function _construct()
{
parent::_construct();
if ($storeId = Mage::app()->getStore()->getId()) {
$this->setStoreId($storeId);
}
$this->_init('membership/package');
}
示例9: _construct
/**
* Load Default Constructor
*/
public function _construct()
{
/**
* Load Parent Constructor
*/
parent::_construct();
/**
* Initialize sellerreview Block
*/
$this->_init('marketplace/sellerreview');
}
示例10: _construct
/**
* Constructor
*
* Configures collection
*/
protected function _construct()
{
parent::_construct();
$this->_subscriberTable = Mage::getSingleton('core/resource')->getTableName('newsletter/subscriber');
$this->_queueLinkTable = Mage::getSingleton('core/resource')->getTableName('newsletter/queue_link');
$this->_storeTable = Mage::getSingleton('core/resource')->getTableName('core/store');
$this->_init('newsletter/subscriber');
// 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'] = 'IF(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';
}
示例11: _construct
public function _construct()
{
parent::_construct();
$this->_init('amseogooglesitemap/sitemap');
}