@@ -24,6 +24,9 @@ |
||
| 24 | 24 | private $_messages = array(); |
| 25 | 25 | private $_errors = array(); |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param null|Route $tpl |
|
| 29 | + */ |
|
| 27 | 30 | public function __construct($tpl) { |
| 28 | 31 | if (!empty($tpl)) { |
| 29 | 32 | if (is_string($tpl)) { |
@@ -271,7 +271,6 @@ discard block |
||
| 271 | 271 | * Return parameters from the statment with dynamic number of parameters. |
| 272 | 272 | * |
| 273 | 273 | * @param resource $stmt Statement. |
| 274 | - * @param array $params Parameters. |
|
| 275 | 274 | */ |
| 276 | 275 | public static function bindResults($stmt) { |
| 277 | 276 | $resultSet = array(); |
@@ -769,7 +768,7 @@ discard block |
||
| 769 | 768 | /** |
| 770 | 769 | * Executes SQL query with single record and value result and return this value. |
| 771 | 770 | * |
| 772 | - * @param mixed $query SQL query template string or DBPreparedQuery object |
|
| 771 | + * @param string $query SQL query template string or DBPreparedQuery object |
|
| 773 | 772 | * if single parameter. |
| 774 | 773 | * @param string $types Types string (ex: "isdb"). |
| 775 | 774 | * @param array $params Parameters in the same order like types string. |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | private $dbObject = null; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $className |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct($className) { |
| 46 | 49 | if (is_object($className)) { |
| 47 | 50 | $className = get_class($className); |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | * css($propertyName, $propertyValue) Set the value of a CSS property |
| 137 | 137 | * |
| 138 | 138 | * @param string $propertyName Name of a CSS property. |
| 139 | - * @param mixed $propertyValue Value of a CSS property. |
|
| 139 | + * @param string $propertyValue Value of a CSS property. |
|
| 140 | 140 | * |
| 141 | 141 | * @return Value of the CSS property or NULL if property is not exists. |
| 142 | 142 | */ |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * Sets primary key value. |
| 60 | 60 | * |
| 61 | - * @param mixed $recordId Key vaue. |
|
| 61 | + * @param integer $recordId Key vaue. |
|
| 62 | 62 | * |
| 63 | 63 | * @throws DBCoreException If object has no field with such name. |
| 64 | 64 | * |
| 65 | - * @return bool Success flag. |
|
| 65 | + * @return DBObject Success flag. |
|
| 66 | 66 | */ |
| 67 | 67 | public function setId($recordId) |
| 68 | 68 | { |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | /** |
| 533 | 533 | * Deletes DB record for current DBObject. |
| 534 | 534 | * |
| 535 | - * @return mixed Number of affected rows (1 if some record was deleted, |
|
| 535 | + * @return integer Number of affected rows (1 if some record was deleted, |
|
| 536 | 536 | * 0 - if no) or FALSE if some error occurred. |
| 537 | 537 | */ |
| 538 | 538 | public function delete() |
@@ -98,7 +98,8 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Delete message from POP server. |
| 100 | 100 | * |
| 101 | - * @return int $messageId Id of the message. |
|
| 101 | + * @param integer $messageId |
|
| 102 | + * @return string $messageId Id of the message. |
|
| 102 | 103 | * |
| 103 | 104 | * @return string Response string. |
| 104 | 105 | */ |
@@ -111,7 +112,7 @@ discard block |
||
| 111 | 112 | /** |
| 112 | 113 | * Count messages in POP server. |
| 113 | 114 | * |
| 114 | - * @return type |
|
| 115 | + * @return integer |
|
| 115 | 116 | */ |
| 116 | 117 | public function countMessages() { |
| 117 | 118 | fwrite($this->connection, "STAT\r\n"); |
@@ -124,7 +125,7 @@ discard block |
||
| 124 | 125 | /** |
| 125 | 126 | * Return message header. |
| 126 | 127 | * |
| 127 | - * @return int $messageNumber Number of the message. |
|
| 128 | + * @return string $messageNumber Number of the message. |
|
| 128 | 129 | * |
| 129 | 130 | * @return string |
| 130 | 131 | */ |
@@ -159,9 +160,10 @@ discard block |
||
| 159 | 160 | /** |
| 160 | 161 | * Return message by number. |
| 161 | 162 | * |
| 162 | - * @return int $messageNumber Number of the message |
|
| 163 | + * @param integer $messageNumber |
|
| 164 | + * @return false|string $messageNumber Number of the message |
|
| 163 | 165 | * |
| 164 | - * @return string |
|
| 166 | + * @return false|string |
|
| 165 | 167 | */ |
| 166 | 168 | public function getMessage($messageNumber) { |
| 167 | 169 | fwrite($this->connection, "RETR $messageNumber\r\n"); |