@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @param array $data |
| 57 | 57 | * @param null $layout |
| 58 | 58 | * @param string $templateType |
| 59 | - * @return mixed |
|
| 59 | + * @return string |
|
| 60 | 60 | * @throws \Exception |
| 61 | 61 | * @author dp <[email protected]> |
| 62 | 62 | * |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | use Ice\Core; |
| 13 | 13 | use Ice\Helper\Validator as Helper_Validator; |
| 14 | -use Ice\Widget\Model_Form; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Class Validator |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | /** |
| 147 | 147 | * Init resource class |
| 148 | 148 | * |
| 149 | - * @param Resource|string|null $resourceClass |
|
| 149 | + * @param null|resource $resourceClass |
|
| 150 | 150 | * @return $this |
| 151 | 151 | */ |
| 152 | 152 | public function setResourceClass($resourceClass = null) |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | - * @param $renderClass |
|
| 177 | + * @param string $renderClass |
|
| 178 | 178 | * @return Widget |
| 179 | 179 | */ |
| 180 | 180 | public function setRenderClass($renderClass = null) |
@@ -379,8 +379,8 @@ discard block |
||
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | /** |
| 382 | - * @param $name |
|
| 383 | - * @param null $default |
|
| 382 | + * @param string $name |
|
| 383 | + * @param integer $default |
|
| 384 | 384 | * @return mixed |
| 385 | 385 | */ |
| 386 | 386 | public function getOption($name = null, $default = null) |
@@ -393,8 +393,8 @@ discard block |
||
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | /** |
| 396 | - * @param $name |
|
| 397 | - * @param $value |
|
| 396 | + * @param string $name |
|
| 397 | + * @param integer $value |
|
| 398 | 398 | */ |
| 399 | 399 | public function setOption($name, $value) |
| 400 | 400 | { |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
| 410 | - * @param $partName |
|
| 410 | + * @param string|null $partName |
|
| 411 | 411 | * @return WidgetComponent|WidgetComponent_Widget |
| 412 | 412 | */ |
| 413 | 413 | public function getPart($partName) |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | } |
| 507 | 507 | |
| 508 | 508 | /** |
| 509 | - * @return string|null |
|
| 509 | + * @return string |
|
| 510 | 510 | */ |
| 511 | 511 | public function getTemplateClass() |
| 512 | 512 | { |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | * @param string $templateClass |
| 518 | 518 | * |
| 519 | 519 | * @todo: Написать обработчик (init) конфига, где будет отдельный вызов setTemplateClass |
| 520 | - * @return null|string |
|
| 520 | + * @return Widget |
|
| 521 | 521 | */ |
| 522 | 522 | public function setTemplateClass($templateClass = null) |
| 523 | 523 | { |
@@ -781,7 +781,7 @@ discard block |
||
| 781 | 781 | } |
| 782 | 782 | |
| 783 | 783 | /** |
| 784 | - * @return string |
|
| 784 | + * @return integer |
|
| 785 | 785 | */ |
| 786 | 786 | public function getToken() |
| 787 | 787 | { |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | /** |
| 912 | 912 | * Build div part |
| 913 | 913 | * |
| 914 | - * @param $columnName |
|
| 914 | + * @param string $columnName |
|
| 915 | 915 | * @param array $options |
| 916 | 916 | * @param string $template |
| 917 | 917 | * @return $this |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | /** |
| 938 | 938 | * Build p part |
| 939 | 939 | * |
| 940 | - * @param $columnName |
|
| 940 | + * @param string $columnName |
|
| 941 | 941 | * @param array $options |
| 942 | 942 | * @param string $template |
| 943 | 943 | * @return $this |
@@ -1138,7 +1138,7 @@ discard block |
||
| 1138 | 1138 | |
| 1139 | 1139 | /** |
| 1140 | 1140 | * @param $token |
| 1141 | - * @return bool |
|
| 1141 | + * @return boolean|null |
|
| 1142 | 1142 | * |
| 1143 | 1143 | * @todo: need implement |
| 1144 | 1144 | */ |
@@ -1191,9 +1191,9 @@ discard block |
||
| 1191 | 1191 | } |
| 1192 | 1192 | |
| 1193 | 1193 | /** |
| 1194 | - * @param $paramName string|null |
|
| 1194 | + * @param string $paramName string|null |
|
| 1195 | 1195 | * @param null $default |
| 1196 | - * @return mixed |
|
| 1196 | + * @return integer|null |
|
| 1197 | 1197 | */ |
| 1198 | 1198 | public function getAll($paramName = null, $default = null) |
| 1199 | 1199 | { |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Ice\Core; |
| 3 | 3 | |
| 4 | -use Ice\DataProvider\Request as DataProvider_Request; |
|
| 5 | 4 | use Ice\Exception\Access_Denied; |
| 6 | 5 | use Ice\Exception\Http; |
| 7 | 6 | use Ice\Exception\RouteNotFound; |
@@ -193,6 +193,9 @@ discard block |
||
| 193 | 193 | return $this; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | + /** |
|
| 197 | + * @return string |
|
| 198 | + */ |
|
| 196 | 199 | public function getId($postfix = '') |
| 197 | 200 | { |
| 198 | 201 | if ($postfix) { |
@@ -244,6 +247,9 @@ discard block |
||
| 244 | 247 | $this->offset = $offset; |
| 245 | 248 | } |
| 246 | 249 | |
| 250 | + /** |
|
| 251 | + * @param integer $offset |
|
| 252 | + */ |
|
| 247 | 253 | public function cloneComponent($offset) |
| 248 | 254 | { |
| 249 | 255 | $widgetComponent = clone $this; |
@@ -399,7 +405,7 @@ discard block |
||
| 399 | 405 | // } |
| 400 | 406 | |
| 401 | 407 | /** |
| 402 | - * @param $name |
|
| 408 | + * @param string $name |
|
| 403 | 409 | * @param $value |
| 404 | 410 | */ |
| 405 | 411 | public function setOption($name, $value) |
@@ -409,7 +415,7 @@ discard block |
||
| 409 | 415 | |
| 410 | 416 | /** |
| 411 | 417 | * @param string $classes |
| 412 | - * @return null |
|
| 418 | + * @return string |
|
| 413 | 419 | */ |
| 414 | 420 | public function getClassAttribute($classes = '') |
| 415 | 421 | { |
@@ -594,6 +600,9 @@ discard block |
||
| 594 | 600 | return $valueKey; |
| 595 | 601 | } |
| 596 | 602 | |
| 603 | + /** |
|
| 604 | + * @return string |
|
| 605 | + */ |
|
| 597 | 606 | public function render(Render $render = null) |
| 598 | 607 | { |
| 599 | 608 | if ($render === null) { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * |
| 141 | 141 | * @param $key |
| 142 | 142 | * @param int $step |
| 143 | - * @return mixed new value |
|
| 143 | + * @return integer new value |
|
| 144 | 144 | * |
| 145 | 145 | * @author dp <[email protected]> |
| 146 | 146 | * |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param $key |
| 159 | 159 | * @param int $step |
| 160 | - * @return mixed new value |
|
| 160 | + * @return integer new value |
|
| 161 | 161 | * |
| 162 | 162 | * @author dp <[email protected]> |
| 163 | 163 | * |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | * Connect to data provider |
| 179 | 179 | * |
| 180 | 180 | * @param $connection |
| 181 | - * @return boolean |
|
| 181 | + * @return DataProvider |
|
| 182 | 182 | * |
| 183 | 183 | * @author dp <[email protected]> |
| 184 | 184 | * |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | /** |
| 263 | 263 | * Connect to data provider |
| 264 | 264 | * |
| 265 | - * @param $connection |
|
| 265 | + * @param ArrayObject $connection |
|
| 266 | 266 | * @return boolean |
| 267 | 267 | * |
| 268 | 268 | * @author dp <[email protected]> |
@@ -256,6 +256,10 @@ |
||
| 256 | 256 | return (bool)$connection = $dataProvider->set([$key => $route])[$key]; |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | + /** |
|
| 260 | + * @param string $url |
|
| 261 | + * @param string $method |
|
| 262 | + */ |
|
| 259 | 263 | public function getRoute($url, $method) |
| 260 | 264 | { |
| 261 | 265 | list($matchedRoutes, $foundRoutes) = $this->getRoutes($url, $method); |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | * Connect to data provider |
| 173 | 173 | * |
| 174 | 174 | * @param $connection |
| 175 | - * @return boolean |
|
| 175 | + * @return \Ice\Core\Container |
|
| 176 | 176 | * |
| 177 | 177 | * @author anonymous <email> |
| 178 | 178 | * |