本文整理匯總了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);
}