1 | <?php |
||
35 | class ProductMediaGalleryRepository extends AbstractRepository |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The prepared statement to load an existing product media gallery entity. |
||
40 | * |
||
41 | * @var \PDOStatement |
||
42 | */ |
||
43 | protected $productMediaGalleryStmt; |
||
44 | |||
45 | /** |
||
46 | * The prepared statement to load the existing product media gallery entities by the given SKU. |
||
47 | * |
||
48 | * @var \PDOStatement |
||
49 | */ |
||
50 | protected $productMediaGalleriesBySkuStmt; |
||
51 | |||
52 | /** |
||
53 | * Initializes the repository's prepared statements. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function init() |
||
69 | |||
70 | /** |
||
71 | * Load's the product media gallery with the passed attribute ID + value. |
||
72 | * |
||
73 | * @param integer $attributeId The attribute ID of the product media gallery to load |
||
74 | * @param string $value The value of the product media gallery to load |
||
75 | * |
||
76 | * @return array The product media gallery |
||
77 | */ |
||
78 | public function findOneByAttributeIdAndValue($attributeId, $value) |
||
91 | |||
92 | /** |
||
93 | * Load's the product media gallery entities with the passed SKU. |
||
94 | * |
||
95 | * @param string $sku The SKU to load the media gallery entities for |
||
96 | * |
||
97 | * @return array The product media gallery entities |
||
98 | */ |
||
99 | public function findAllBySku($sku) |
||
109 | } |
||
110 |