src/Repositories/CategoryProductRepository.php 1 location
|
@@ 57-68 (lines=12) @@
|
| 54 |
|
* |
| 55 |
|
* @return void |
| 56 |
|
*/ |
| 57 |
|
public function init() |
| 58 |
|
{ |
| 59 |
|
|
| 60 |
|
// load the utility class name |
| 61 |
|
$utilityClassName = $this->getUtilityClassName(); |
| 62 |
|
|
| 63 |
|
// initialize the prepared statements |
| 64 |
|
$this->categoryProductStmt = |
| 65 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::CATEGORY_PRODUCT)); |
| 66 |
|
$this->categoryProductsBySkuStmt = |
| 67 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::CATEGORY_PRODUCT_BY_SKU)); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* Return's the category product relation with the passed category/product ID. |
src/Repositories/ProductRepository.php 1 location
|
@@ 67-78 (lines=12) @@
|
| 64 |
|
* |
| 65 |
|
* @return void |
| 66 |
|
*/ |
| 67 |
|
public function init() |
| 68 |
|
{ |
| 69 |
|
|
| 70 |
|
// load the utility class name |
| 71 |
|
$utilityClassName = $this->getUtilityClassName(); |
| 72 |
|
|
| 73 |
|
// initialize the prepared statements |
| 74 |
|
$this->productStmt = |
| 75 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::PRODUCT)); |
| 76 |
|
$this->productsStmt = |
| 77 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::PRODUCTS)); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
/** |
| 81 |
|
* Return's the available products. |
src/Repositories/ProductVarcharRepository.php 1 location
|
@@ 58-69 (lines=12) @@
|
| 55 |
|
* |
| 56 |
|
* @return void |
| 57 |
|
*/ |
| 58 |
|
public function init() |
| 59 |
|
{ |
| 60 |
|
|
| 61 |
|
// load the utility class name |
| 62 |
|
$utilityClassName = $this->getUtilityClassName(); |
| 63 |
|
|
| 64 |
|
// initialize the prepared statements |
| 65 |
|
$this->productVarcharStmt = |
| 66 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::PRODUCT_VARCHAR)); |
| 67 |
|
$this->productVarcharByAttributeCodeAndEntityTypeIdAndStoreIdAndValueStmt = |
| 68 |
|
$this->getConnection()->prepare($this->getUtilityClass()->find($utilityClassName::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_VALUE)); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/** |
| 72 |
|
* Load's and return's the varchar attribute with the passed entity/attribute/store ID. |