| @@ 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. |
|
| @@ 100-118 (lines=19) @@ | ||
| 97 | * |
|
| 98 | * @return void |
|
| 99 | */ |
|
| 100 | public function init() |
|
| 101 | { |
|
| 102 | ||
| 103 | // initialize the prepared statements |
|
| 104 | $this->eavAttributeOptionValuesStmt = |
|
| 105 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUES)); |
|
| 106 | ||
| 107 | // initialize the prepared statements |
|
| 108 | $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt = |
|
| 109 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_OPTION_ID_AND_STORE_ID)); |
|
| 110 | ||
| 111 | // initialize the prepared statements |
|
| 112 | $this->eavAttributeOptionValueByAttributeCodeAndStoreIdAndValueStmt = |
|
| 113 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_ATTRIBUTE_CODE_AND_STORE_ID_AND_VALUE)); |
|
| 114 | ||
| 115 | // initialize the prepared statements |
|
| 116 | $this->eavAttributeOptionValueByEntityTypeIdAndAttributeCodeAndStoreIdAndValueStmt = |
|
| 117 | $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_CODE_AND_STORE_ID_AND_VALUE)); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * Return's the primary key name of the entity. |
|