@@ -141,6 +141,9 @@ |
||
| 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); |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | 'product_image' => 'speckcatalog_product_image_service', |
| 19 | 19 | ); |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $name |
|
| 23 | + */ |
|
| 21 | 24 | public function getService($name) |
| 22 | 25 | { |
| 23 | 26 | if (!array_key_exists($name, $this->services)) { |
@@ -59,6 +62,9 @@ discard block |
||
| 59 | 62 | return new ViewModel(array('images' => $images)); |
| 60 | 63 | } |
| 61 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $helperName |
|
| 67 | + */ |
|
| 62 | 68 | public function getViewHelper($helperName) |
| 63 | 69 | { |
| 64 | 70 | return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName); |
@@ -175,8 +175,8 @@ discard block |
||
| 175 | 175 | /** |
| 176 | 176 | * Set the label position |
| 177 | 177 | * |
| 178 | - * @param $labelPosition |
|
| 179 | - * @return FormRow |
|
| 178 | + * @param string $labelPosition |
|
| 179 | + * @return CatalogManagerFormRow |
|
| 180 | 180 | * @throws \Zend\Form\Exception\InvalidArgumentException |
| 181 | 181 | */ |
| 182 | 182 | public function setLabelPosition($labelPosition) |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * Are the errors rendered by this helper ? |
| 211 | 211 | * |
| 212 | 212 | * @param bool $renderErrors |
| 213 | - * @return FormRow |
|
| 213 | + * @return CatalogManagerFormRow |
|
| 214 | 214 | */ |
| 215 | 215 | public function setRenderErrors($renderErrors) |
| 216 | 216 | { |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * Set the attributes for the row label |
| 231 | 231 | * |
| 232 | 232 | * @param array $labelAttributes |
| 233 | - * @return FormRow |
|
| 233 | + * @return CatalogManagerFormRow |
|
| 234 | 234 | */ |
| 235 | 235 | public function setLabelAttributes($labelAttributes) |
| 236 | 236 | { |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | * Set the class that is added to element that have errors |
| 253 | 253 | * |
| 254 | 254 | * @param string $inputErrorClass |
| 255 | - * @return FormRow |
|
| 255 | + * @return CatalogManagerFormRow |
|
| 256 | 256 | */ |
| 257 | 257 | public function setInputErrorClass($inputErrorClass) |
| 258 | 258 | { |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | } |
| 139 | 139 | } else { |
| 140 | 140 | if ($this->renderErrors) { |
| 141 | - $markup = $elementString; //. $elementErrors; |
|
| 141 | + $markup = $elementString; //. $elementErrors; |
|
| 142 | 142 | } else { |
| 143 | 143 | $markup = $elementString; |
| 144 | 144 | } |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | return $this->selectManyModels($select); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $tableName |
|
| 32 | + */ |
|
| 30 | 33 | public function insert($choice, $tableName = null, HydratorInterface $hydrator = null) |
| 31 | 34 | { |
| 32 | 35 | $choiceId = parent::insert($choice, $tableName, $hydrator); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @param $choiceId |
|
| 26 | + * @param integer $choiceId |
|
| 27 | 27 | * @return self |
| 28 | 28 | */ |
| 29 | 29 | public function setChoiceId($choiceId) |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @param $priceOverrideFixed |
|
| 98 | + * @param integer|null $priceOverrideFixed |
|
| 99 | 99 | * @return self |
| 100 | 100 | */ |
| 101 | 101 | public function setPriceOverrideFixed($priceOverrideFixed) |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | - * @param $priceDiscountFixed |
|
| 116 | + * @param integer|null $priceDiscountFixed |
|
| 117 | 117 | * @return self |
| 118 | 118 | */ |
| 119 | 119 | public function setPriceDiscountFixed($priceDiscountFixed) |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | - * @param $priceDiscountPercent |
|
| 134 | + * @param integer|null $priceDiscountPercent |
|
| 135 | 135 | * @return self |
| 136 | 136 | */ |
| 137 | 137 | public function setPriceDiscountPercent($priceDiscountPercent) |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * @return priceNoCharge |
|
| 144 | + * @return integer |
|
| 145 | 145 | */ |
| 146 | 146 | public function getPriceNoCharge() |
| 147 | 147 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | - * @param $priceNoCharge |
|
| 152 | + * @param integer $priceNoCharge |
|
| 153 | 153 | * @return self |
| 154 | 154 | */ |
| 155 | 155 | public function setPriceNoCharge($priceNoCharge) |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * @return sortWeight |
|
| 162 | + * @return integer |
|
| 163 | 163 | */ |
| 164 | 164 | public function getSortWeight() |
| 165 | 165 | { |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | */ |
| 155 | 155 | public function setPriceNoCharge($priceNoCharge) |
| 156 | 156 | { |
| 157 | - $this->priceNoCharge = (bool)$priceNoCharge; |
|
| 157 | + $this->priceNoCharge = (bool) $priceNoCharge; |
|
| 158 | 158 | return $this; |
| 159 | 159 | } |
| 160 | 160 | |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | /** |
| 267 | - * @return manufacturer |
|
| 267 | + * @return \SpeckContact\Entity\Company|null |
|
| 268 | 268 | */ |
| 269 | 269 | public function getManufacturer() |
| 270 | 270 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | /** |
| 295 | - * @return parent |
|
| 295 | + * @return AbstractModel |
|
| 296 | 296 | */ |
| 297 | 297 | public function getParent() |
| 298 | 298 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @return parent |
|
| 65 | + * @return AbstractModel |
|
| 66 | 66 | */ |
| 67 | 67 | public function getParent() |
| 68 | 68 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @return enabled |
|
| 86 | + * @return integer |
|
| 87 | 87 | */ |
| 88 | 88 | public function getEnabled() |
| 89 | 89 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | protected $parent; |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * @return parent |
|
| 13 | + * @return AbstractModel |
|
| 14 | 14 | */ |
| 15 | 15 | public function getParent() |
| 16 | 16 | { |
@@ -10,6 +10,10 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | protected $serviceLocator; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $name |
|
| 15 | + * @param \SpeckCatalog\Model\Product $model |
|
| 16 | + */ |
|
| 13 | 17 | public function getForm($name = null, $model = null, $data = null) |
| 14 | 18 | { |
| 15 | 19 | $form = $this->formFromServiceManager($name); |
@@ -38,6 +42,10 @@ discard block |
||
| 38 | 42 | return $this->getServiceLocator()->get($filterName); |
| 39 | 43 | } |
| 40 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $name |
|
| 47 | + * @param \SpeckCatalog\Model\Product $model |
|
| 48 | + */ |
|
| 41 | 49 | public function getKeyFields($name, $model = null, $parentKeyFields = false) |
| 42 | 50 | { |
| 43 | 51 | $form = $this->formFromServiceManager($name); |