@@ -141,6 +141,9 @@ discard block |
||
141 | 141 | return $this->getResponse()->setContent($html); |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param string $helperName |
|
146 | + */ |
|
144 | 147 | public function getViewHelper($helperName) |
145 | 148 | { |
146 | 149 | return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName); |
@@ -282,6 +285,9 @@ discard block |
||
282 | 285 | return $dash->__invoke($name); |
283 | 286 | } |
284 | 287 | |
288 | + /** |
|
289 | + * @return string |
|
290 | + */ |
|
285 | 291 | protected function camel($name) |
286 | 292 | { |
287 | 293 | $camel = new \Zend\Filter\Word\UnderscoreToCamelCase; |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | |
46 | 46 | public function find(array $data) |
47 | 47 | { |
48 | - $table = $this->getTableName(); |
|
49 | - if(isset($data['product_id'])) { |
|
50 | - $where = array('product_id' => $data['product_id']); |
|
48 | + $table = $this->getTableName(); |
|
49 | + if (isset($data['product_id'])) { |
|
50 | + $where = array('product_id' => $data['product_id']); |
|
51 | 51 | } else { |
52 | 52 | $where = array('item_number' => $data['item_number']); |
53 | 53 | } |
@@ -152,10 +152,10 @@ discard block |
||
152 | 152 | |
153 | 153 | $select = $this->getSelect($c_b_p) |
154 | 154 | ->columns(array('product_id', 'choice_id', 'option_id')) |
155 | - ->join($c_p_o, $c_p_o.'.option_id='.$c_b_p.'.option_id', array()) |
|
155 | + ->join($c_p_o, $c_p_o . '.option_id=' . $c_b_p . '.option_id', array()) |
|
156 | 156 | ->where(array( |
157 | - $c_b_p.'.product_id' => $builderProductId, |
|
158 | - $c_p_o.'.product_id' => $productId, |
|
157 | + $c_b_p . '.product_id' => $builderProductId, |
|
158 | + $c_p_o . '.product_id' => $productId, |
|
159 | 159 | )); |
160 | 160 | $rows = $this->selectMany($select); |
161 | 161 |
@@ -204,7 +204,7 @@ |
||
204 | 204 | |
205 | 205 | public function getListType() |
206 | 206 | { |
207 | - switch($this->optionTypeId) { |
|
207 | + switch ($this->optionTypeId) { |
|
208 | 208 | case 1: |
209 | 209 | return 'dropdown'; |
210 | 210 | case 2: |