@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * Creates a control used for repetition (used as a template). |
| 79 | - * @return TControl the control to be repeated |
|
| 79 | + * @return TActiveRadioButtonItem the control to be repeated |
|
| 80 | 80 | */ |
| 81 | 81 | protected function createRepeatedControl() |
| 82 | 82 | { |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @return TListItemType item type. |
|
| 72 | + * @return string item type. |
|
| 73 | 73 | */ |
| 74 | 74 | public function getItemType() |
| 75 | 75 | { |
@@ -52,6 +52,10 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent |
|
| 57 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record |
|
| 58 | + */ |
|
| 55 | 59 | public function createScaffoldInput($parent, $item, $column, $record) |
| 56 | 60 | { |
| 57 | 61 | $this->_parent = $parent; |
@@ -68,6 +72,10 @@ discard block |
||
| 68 | 72 | $label->setForControl(self::DEFAULT_ID); |
| 69 | 73 | } |
| 70 | 74 | |
| 75 | + /** |
|
| 76 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent |
|
| 77 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record |
|
| 78 | + */ |
|
| 71 | 79 | public function loadScaffoldInput($parent, $item, $column, $record) |
| 72 | 80 | { |
| 73 | 81 | $this->_parent = $parent; |
@@ -56,6 +56,9 @@ discard block |
||
| 56 | 56 | $this->reflect(); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param \ReflectionMethod $method |
|
| 61 | + */ |
|
| 59 | 62 | private function isPropertyMethod($method) |
| 60 | 63 | { |
| 61 | 64 | $methodName = $method->getName(); |
@@ -64,6 +67,9 @@ discard block |
||
| 64 | 67 | && isset($methodName[3]); |
| 65 | 68 | } |
| 66 | 69 | |
| 70 | + /** |
|
| 71 | + * @param \ReflectionMethod $method |
|
| 72 | + */ |
|
| 67 | 73 | private function isEventMethod($method) |
| 68 | 74 | { |
| 69 | 75 | $methodName = $method->getName(); |
@@ -236,8 +236,7 @@ discard block |
||
| 236 | 236 | public function runQueryForList($connection, $parameter, $sql, $result, $delegate = null) |
| 237 | 237 | { |
| 238 | 238 | $registry = $this->getManager()->getTypeHandlers(); |
| 239 | - $list = $result instanceof \ArrayAccess ? $result : |
|
| 240 | - $this->_statement->createInstanceOfListClass($registry); |
|
| 239 | + $list = $result instanceof \ArrayAccess ? $result : $this->_statement->createInstanceOfListClass($registry); |
|
| 241 | 240 | $connection->setActive(true); |
| 242 | 241 | $reader = $sql->query(); |
| 243 | 242 | //$reader = $this->executeSQLQueryLimit($connection, $sql, $max, $skip); |
@@ -313,8 +312,7 @@ discard block |
||
| 313 | 312 | foreach ($reader as $row) { |
| 314 | 313 | $obj = $this->applyResultMap($row); |
| 315 | 314 | $key = TPropertyAccess::get($obj, $keyProperty); |
| 316 | - $value = ($valueProperty === null) ? $obj : |
|
| 317 | - TPropertyAccess::get($obj, $valueProperty); |
|
| 315 | + $value = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty); |
|
| 318 | 316 | $param = new TResultSetMapItemParameter($key, $value, $parameter, $map); |
| 319 | 317 | $this->raiseRowDelegate($delegate, $param); |
| 320 | 318 | } |
@@ -323,8 +321,7 @@ discard block |
||
| 323 | 321 | foreach ($reader as $row) { |
| 324 | 322 | $obj = $this->applyResultMap($row); |
| 325 | 323 | $key = TPropertyAccess::get($obj, $keyProperty); |
| 326 | - $map[$key] = ($valueProperty === null) ? $obj : |
|
| 327 | - TPropertyAccess::get($obj, $valueProperty); |
|
| 324 | + $map[$key] = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty); |
|
| 328 | 325 | } |
| 329 | 326 | } |
| 330 | 327 | $this->onExecuteQuery($command); |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | * Execute the select key statement, used to obtain last insert ID. |
| 469 | 469 | * @param IDbConnection $connection database connection |
| 470 | 470 | * @param mixed $parameter insert statement parameter |
| 471 | - * @param TSqlMapSelectKey $selectKey select key statement |
|
| 471 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapSelectKey $selectKey select key statement |
|
| 472 | 472 | * @return string last insert ID. |
| 473 | 473 | */ |
| 474 | 474 | protected function executeSelectKey($connection, $parameter, $selectKey) |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | /** |
| 596 | 596 | * Apply the result to a TList or an array. |
| 597 | 597 | * @param array $row a result set row retrieved from the database |
| 598 | - * @param object $resultObject result object, array or list |
|
| 598 | + * @param \ArrayAccess $resultObject result object, array or list |
|
| 599 | 599 | * @return object result filled with data. |
| 600 | 600 | */ |
| 601 | 601 | protected function fillResultArrayList($row, $resultObject) |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | * Fills the result object according to result mappings. |
| 641 | 641 | * @param string $resultMapName result map name. |
| 642 | 642 | * @param array $row a result set row retrieved from the database |
| 643 | - * @param null|mixed $parentGroup |
|
| 643 | + * @param null|string $parentGroup |
|
| 644 | 644 | * @param null|&object $resultObject result object to fill, will create new instances if required. |
| 645 | 645 | * @return object result object filled with data. |
| 646 | 646 | */ |
@@ -181,8 +181,7 @@ |
||
| 181 | 181 | |
| 182 | 182 | public function validate() |
| 183 | 183 | { |
| 184 | - if (! |
|
| 185 | - ( |
|
| 184 | + if (!( |
|
| 186 | 185 | ($challenge = @$_POST[$this->getChallengeFieldName()]) |
| 187 | 186 | and |
| 188 | 187 | ($response = @$_POST[$this->getResponseFieldName()]) |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | */ |
| 227 | 227 | public function clear() |
| 228 | 228 | { |
| 229 | - for ($i = $this->_c - 1;$i >= 0;--$i) { |
|
| 229 | + for ($i = $this->_c - 1; $i >= 0; --$i) { |
|
| 230 | 230 | $this->removeAt($i); |
| 231 | 231 | } |
| 232 | 232 | } |
@@ -1235,7 +1235,7 @@ |
||
| 1235 | 1235 | public function onEndRequest() |
| 1236 | 1236 | { |
| 1237 | 1237 | $this->flushOutput(false); // flush all remaining content in the buffer |
| 1238 | - $this->saveGlobals(); // save global state |
|
| 1238 | + $this->saveGlobals(); // save global state |
|
| 1239 | 1239 | $this->raiseEvent('OnEndRequest', $this, null); |
| 1240 | 1240 | } |
| 1241 | 1241 | } |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * |
| 412 | 412 | * A global value is one that is persistent across users sessions and requests. |
| 413 | 413 | * @param string $key the name of the value to be returned |
| 414 | - * @param mixed $defaultValue the default value. If $key is not found, $defaultValue will be returned |
|
| 414 | + * @param integer $defaultValue the default value. If $key is not found, $defaultValue will be returned |
|
| 415 | 415 | * @return mixed the global value corresponding to $key |
| 416 | 416 | */ |
| 417 | 417 | public function getGlobalState($key, $defaultValue = null) |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | } |
| 670 | 670 | |
| 671 | 671 | /** |
| 672 | - * @param mixed $id |
|
| 672 | + * @param string $id |
|
| 673 | 673 | * @return IModule the module with the specified ID, null if not found |
| 674 | 674 | */ |
| 675 | 675 | public function getModule($id) |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | /** |
| 744 | - * @param THttpRequest $response the request module |
|
| 744 | + * @param THttpResponse $response the request module |
|
| 745 | 745 | */ |
| 746 | 746 | public function setResponse(THttpResponse $response) |
| 747 | 747 | { |
@@ -1096,7 +1096,7 @@ discard block |
||
| 1096 | 1096 | * Raises OnError event. |
| 1097 | 1097 | * This method is invoked when an exception is raised during the lifecycles |
| 1098 | 1098 | * of the application. |
| 1099 | - * @param mixed $param event parameter |
|
| 1099 | + * @param \Exception $param event parameter |
|
| 1100 | 1100 | */ |
| 1101 | 1101 | public function onError($param) |
| 1102 | 1102 | { |
@@ -481,7 +481,7 @@ |
||
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | foreach ($this->_d as $priority => $items) { |
| 484 | - for ($index = count($items) - 1;$index >= 0;$index--) { |
|
| 484 | + for ($index = count($items) - 1; $index >= 0; $index--) { |
|
| 485 | 485 | $this->removeAtIndexInPriority($index, $priority); |
| 486 | 486 | } |
| 487 | 487 | unset($this->_d[$priority]); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * Initializes the list with an array or an iterable object. |
| 85 | 85 | * @param null|array|Iterator $data the intial data. Default is null, meaning no initial data. |
| 86 | 86 | * @param bool $readOnly whether the list is read-only |
| 87 | - * @param numeric $defaultPriority the default priority of items without specified priorities. |
|
| 87 | + * @param integer $defaultPriority the default priority of items without specified priorities. |
|
| 88 | 88 | * @param int $precision the precision of the numeric priorities |
| 89 | 89 | * @throws TInvalidDataTypeException If data is not null and is neither an array nor an iterator. |
| 90 | 90 | */ |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * This must be called internally or when instantiated. |
| 149 | - * @param numeric $value sets the default priority of inserted items without a specified priority |
|
| 149 | + * @param integer $value sets the default priority of inserted items without a specified priority |
|
| 150 | 150 | */ |
| 151 | 151 | protected function setDefaultPriority($value) |
| 152 | 152 | { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | /** |
| 174 | 174 | * Returns an iterator for traversing the items in the list. |
| 175 | 175 | * This method is required by the interface \IteratorAggregate. |
| 176 | - * @return Iterator an iterator for traversing the items in the list. |
|
| 176 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
| 177 | 177 | */ |
| 178 | 178 | public function getIterator() |
| 179 | 179 | { |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | /** |
| 387 | 387 | * Removes an item from the priority list. |
| 388 | 388 | * The list will search for the item. The first matching item found will be removed from the list. |
| 389 | - * @param mixed $item item the item to be removed. |
|
| 389 | + * @param callable $item item the item to be removed. |
|
| 390 | 390 | * @param null|bool|float $priority priority of item to remove. without this parameter it defaults to false. |
| 391 | 391 | * A value of false means any priority. null will be filled in with the default priority. |
| 392 | 392 | * @throws TInvalidDataValueException If the item does not exist |
@@ -630,7 +630,7 @@ discard block |
||
| 630 | 630 | |
| 631 | 631 | /** |
| 632 | 632 | * Combines the map elements which have a priority below the parameter value |
| 633 | - * @param numeric $priority the cut-off priority. All items of priority less than this are returned. |
|
| 633 | + * @param integer $priority the cut-off priority. All items of priority less than this are returned. |
|
| 634 | 634 | * @param bool $inclusive whether or not the input cut-off priority is inclusive. Default: false, not inclusive. |
| 635 | 635 | * @return array the array of priorities keys with values of arrays of items that are below a specified priority. |
| 636 | 636 | * The priorities are sorted so important priorities, lower numerics, are first. |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | |
| 651 | 651 | /** |
| 652 | 652 | * Combines the map elements which have a priority above the parameter value |
| 653 | - * @param numeric $priority the cut-off priority. All items of priority greater than this are returned. |
|
| 653 | + * @param integer $priority the cut-off priority. All items of priority greater than this are returned. |
|
| 654 | 654 | * @param bool $inclusive whether or not the input cut-off priority is inclusive. Default: true, inclusive. |
| 655 | 655 | * @return array the array of priorities keys with values of arrays of items that are above a specified priority. |
| 656 | 656 | * The priorities are sorted so important priorities, lower numerics, are first. |