PHP Class Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Category\Product\Position

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\Framework\Model\ResourceModel\Db\AbstractDb
Show file Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
getProductPositionsByCategory ( Magento\Catalog\Api\Data\CategoryInterface | integer $category ) : array Load product positions for the given category.
saveProductPositions ( Magento\Catalog\Api\Data\CategoryInterface $category ) : Position Save the product postions.

Protected Methods

Method Description
_construct ( )

Private Methods

Method Description
getBaseSelect ( ) : Zend_Db_Select Init a base select with the main table.

Method Details

_construct() protected method

protected _construct ( )

getProductPositionsByCategory() public method

Load product positions for the given category.
public getProductPositionsByCategory ( Magento\Catalog\Api\Data\CategoryInterface | integer $category ) : array
$category Magento\Catalog\Api\Data\CategoryInterface | integer Category.
return array

saveProductPositions() public method

Save the product postions.
public saveProductPositions ( Magento\Catalog\Api\Data\CategoryInterface $category ) : Position
$category Magento\Catalog\Api\Data\CategoryInterface Saved category.
return Position