@@ -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 | */ |
@@ -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"); |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Sets primary key value. |
55 | 55 | * |
56 | - * @param mixed $recordId Key vaue. |
|
56 | + * @param integer $recordId Key vaue. |
|
57 | 57 | * |
58 | - * @return bool Success flag. |
|
58 | + * @return DBObject Success flag. |
|
59 | 59 | * @throws DBCoreException If object has no field with such name. |
60 | 60 | */ |
61 | 61 | public function setId($recordId) { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * @param bool $ignore Ignore unique indexes or not. |
256 | 256 | * @param bool Debug mode flag. |
257 | 257 | * |
258 | - * @return mixed Primary key value. |
|
258 | + * @return integer Primary key value. |
|
259 | 259 | * @throws DBCoreException If some database error occurred. |
260 | 260 | */ |
261 | 261 | public function insert($ignore = false, $debug = false) { |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | /** |
515 | 515 | * Deletes DB record for current DBObject. |
516 | 516 | * |
517 | - * @return mixed Number of affected rows (1 if some record was deleted, |
|
517 | + * @return integer Number of affected rows (1 if some record was deleted, |
|
518 | 518 | * 0 - if no) or FALSE if some error occurred. |
519 | 519 | */ |
520 | 520 | public function delete() { |