| @@ 72-84 (lines=13) @@ | ||
| 69 | * |
|
| 70 | * @return void |
|
| 71 | */ |
|
| 72 | public function init() |
|
| 73 | { |
|
| 74 | ||
| 75 | // initialize the prepared statements |
|
| 76 | $this->eavAttributeSetStmt = |
|
| 77 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_SET)); |
|
| 78 | $this->eavAttributeSetsByEntityTypeIdStmt = |
|
| 79 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_SETS_BY_ENTITY_TYPE_ID)); |
|
| 80 | $this->eavAttributeSetByEntityTypeIdAndAttributeSetNameStmt = |
|
| 81 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_SET_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_SET_NAME)); |
|
| 82 | $this->eavAttributeSetByEntityTypeCodeAndAttributeSetNameStmt = |
|
| 83 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_SET_BY_ENTITY_TYPE_CODE_AND_ATTRIBUTE_SET_NAME)); |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Return's the EAV attribute set with the passed ID. |
|
| @@ 101-119 (lines=19) @@ | ||
| 98 | * |
|
| 99 | * @return void |
|
| 100 | */ |
|
| 101 | public function init() |
|
| 102 | { |
|
| 103 | ||
| 104 | // initialize the prepared statements |
|
| 105 | $this->eavAttributeOptionValuesStmt = |
|
| 106 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUES)); |
|
| 107 | ||
| 108 | // initialize the prepared statements |
|
| 109 | $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt = |
|
| 110 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_OPTION_ID_AND_STORE_ID)); |
|
| 111 | ||
| 112 | // initialize the prepared statements |
|
| 113 | $this->eavAttributeOptionValueByAttributeCodeAndStoreIdAndValueStmt = |
|
| 114 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_ATTRIBUTE_CODE_AND_STORE_ID_AND_VALUE)); |
|
| 115 | ||
| 116 | // initialize the prepared statements |
|
| 117 | $this->eavAttributeOptionValueByEntityTypeIdAndAttributeCodeAndStoreIdAndValueStmt = |
|
| 118 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_CODE_AND_STORE_ID_AND_VALUE)); |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * Return's the primary key name of the entity. |
|