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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
_construct ( )

Private Methods

Méthode Description
getBaseSelect ( ) : Zend_Db_Select Init a base select with the main table.

Method Details

_construct() protected méthode

protected _construct ( )

getProductPositionsByCategory() public méthode

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.
Résultat array

saveProductPositions() public méthode

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