@@ -141,6 +141,8 @@ discard block |
||
141 | 141 | * @param resource gd image color identifier for start color |
142 | 142 | * @param resource gd image color identifier for end color |
143 | 143 | * @param string direction: 'horizontal' or 'vertical', 'random' by default |
144 | + * @param integer $color1 |
|
145 | + * @param integer $color2 |
|
144 | 146 | * @return void |
145 | 147 | */ |
146 | 148 | public function image_gradient($color1, $color2, $direction = null) |
@@ -197,7 +199,7 @@ discard block |
||
197 | 199 | * Returns the img html element or outputs the image to the browser. |
198 | 200 | * |
199 | 201 | * @param boolean html output |
200 | - * @return mixed html string or void |
|
202 | + * @return string|null html string or void |
|
201 | 203 | */ |
202 | 204 | public function image_render($html) |
203 | 205 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * Outputs the Captcha image. |
28 | 28 | * |
29 | 29 | * @param boolean html output |
30 | - * @return mixed |
|
30 | + * @return string|null |
|
31 | 31 | */ |
32 | 32 | public function render($html) |
33 | 33 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * Outputs the Captcha image. |
28 | 28 | * |
29 | 29 | * @param boolean html output |
30 | - * @return mixed |
|
30 | + * @return string|null |
|
31 | 31 | */ |
32 | 32 | public function render($html) |
33 | 33 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * Outputs the Captcha image. |
28 | 28 | * |
29 | 29 | * @param boolean html output |
30 | - * @return mixed |
|
30 | + * @return string|null |
|
31 | 31 | */ |
32 | 32 | public function render($html) |
33 | 33 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * Outputs the Captcha riddle. |
49 | 49 | * |
50 | 50 | * @param boolean html output |
51 | - * @return mixed |
|
51 | + * @return string |
|
52 | 52 | */ |
53 | 53 | public function render($html) |
54 | 54 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * Outputs the Captcha riddle. |
38 | 38 | * |
39 | 39 | * @param boolean html output |
40 | - * @return mixed |
|
40 | + * @return string |
|
41 | 41 | */ |
42 | 42 | public function render($html) |
43 | 43 | { |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | * Fetches SQL type information about a field, in a generic format. |
349 | 349 | * |
350 | 350 | * @param string field datatype |
351 | - * @return array |
|
351 | + * @return string |
|
352 | 352 | */ |
353 | 353 | protected function sql_type($str) |
354 | 354 | { |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | /** |
460 | 460 | * Returns the insert id from the result. |
461 | 461 | * |
462 | - * @return mixed |
|
462 | + * @return integer |
|
463 | 463 | */ |
464 | 464 | public function insert_id() |
465 | 465 | { |
@@ -480,6 +480,7 @@ discard block |
||
480 | 480 | * |
481 | 481 | * @param boolean return rows as objects |
482 | 482 | * @param mixed type |
483 | + * @param boolean $object |
|
483 | 484 | * @return array |
484 | 485 | */ |
485 | 486 | abstract public function result_array($object = null, $type = false); |
@@ -82,6 +82,9 @@ discard block |
||
82 | 82 | return false; |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $sql |
|
87 | + */ |
|
85 | 88 | public function query($sql) |
86 | 89 | { |
87 | 90 | // Only cache if it's turned on, and only cache if it's not a write statement |
@@ -174,7 +177,7 @@ discard block |
||
174 | 177 | * functionality, a fancy query needs to be built. |
175 | 178 | * |
176 | 179 | * @param unknown_type $limit |
177 | - * @return unknown |
|
180 | + * @return string |
|
178 | 181 | */ |
179 | 182 | public function limit($limit, $offset=null) |
180 | 183 | { |
@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | return false; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $sql |
|
79 | + */ |
|
77 | 80 | public function query($sql) |
78 | 81 | { |
79 | 82 | // Only cache if it's turned on, and only cache if it's not a write statement |
@@ -326,6 +329,7 @@ discard block |
||
326 | 329 | * @param resource database link |
327 | 330 | * @param boolean return objects or arrays |
328 | 331 | * @param string SQL query that was run |
332 | + * @param resource $result |
|
329 | 333 | */ |
330 | 334 | public function __construct($result, $link, $object = true, $sql) |
331 | 335 | { |