本文整理汇总了PHP中Mage_Catalog_Model_Resource_Product_Collection::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Catalog_Model_Resource_Product_Collection::__construct方法的具体用法?PHP Mage_Catalog_Model_Resource_Product_Collection::__construct怎么用?PHP Mage_Catalog_Model_Resource_Product_Collection::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Catalog_Model_Resource_Product_Collection
的用法示例。
在下文中一共展示了Mage_Catalog_Model_Resource_Product_Collection::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Collection constructor
*
* @param Mage_Core_Model_Registry $registryManager
* @param Mage_Catalog_Model_Product_Type_Configurable $productType
* @param Mage_Catalog_Helper_Product_Configuration $configurationHelper
* @param null $resource
*/
public function __construct(Mage_Core_Model_Registry $registryManager, Mage_Catalog_Model_Product_Type_Configurable $productType, Mage_Catalog_Helper_Product_Configuration $configurationHelper, $resource = null)
{
$this->_registryManager = $registryManager;
$this->_productType = $productType;
$this->_configurationHelper = $configurationHelper;
parent::__construct($resource);
}
示例2: __construct
/**
* Init main class options
*
*/
public function __construct()
{
$product = Mage::getResourceSingleton('catalog/product');
/* @var $product Mage_Catalog_Model_Entity_Product */
$this->setProductEntityId($product->getEntityIdField());
$this->setProductEntityTableName($product->getEntityTable());
$this->setProductEntityTypeId($product->getTypeId());
parent::__construct();
}
示例3: array
function __construct($resource = null)
{
parent::__construct($resource);
$this->_attributeEnumFilters = array();
$this->_attributeFiltersMin = array();
$this->_attributeFiltersMax = array();
$req = Mage::app()->getRequest();
$this->_curPage = $req->getParam('p', 1);
$limit = Mage::getStoreConfig('catalog/frontend/grid_per_page');
$limit = $req->getParam('limit', $limit);
$this->_limit = $limit == 'all' ? 1000 : $limit;
$this->_orderBy = $req->getParam('order');
$this->_orderDir = $req->getParam('dir');
$this->_facet = Mage::getModel('merlinsearch/facet');
}
示例4: __construct
/**
* Initialize factory
*
* @param Mage_Core_Model_Resource_Abstract $resource
* @param array $args
*/
public function __construct($resource = null, array $args = array())
{
parent::__construct($resource);
}