@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | return $this->link; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $sql |
|
63 | + */ |
|
61 | 64 | public function query($sql) |
62 | 65 | { |
63 | 66 | try { |
@@ -273,6 +276,8 @@ discard block |
||
273 | 276 | * @param resource database link |
274 | 277 | * @param boolean return objects or arrays |
275 | 278 | * @param string SQL query that was run |
279 | + * @param PDOStatement $result |
|
280 | + * @param PDO $link |
|
276 | 281 | */ |
277 | 282 | public function __construct($result, $link, $object = true, $sql) |
278 | 283 | { |
@@ -396,6 +401,9 @@ discard block |
||
396 | 401 | return $field_names; |
397 | 402 | } |
398 | 403 | |
404 | + /** |
|
405 | + * @param integer $offset |
|
406 | + */ |
|
399 | 407 | public function seek($offset) |
400 | 408 | { |
401 | 409 | // To request a scrollable cursor for your PDOStatement object, you must |
@@ -61,6 +61,9 @@ |
||
61 | 61 | return false; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $sql |
|
66 | + */ |
|
64 | 67 | public function query($sql) |
65 | 68 | { |
66 | 69 | // Only cache if it's turned on, and only cache if it's not a write statement |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @chainable |
34 | 34 | * @param object Event_Subject |
35 | - * @return object |
|
35 | + * @return Event_Observer |
|
36 | 36 | */ |
37 | 37 | public function update(SplSubject $caller) |
38 | 38 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * Detaches this observer from the subject. |
51 | 51 | * |
52 | 52 | * @chainable |
53 | - * @return object |
|
53 | + * @return Event_Observer |
|
54 | 54 | */ |
55 | 55 | public function remove() |
56 | 56 | { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @chainable |
22 | 22 | * @param object Event_Observer |
23 | - * @return object |
|
23 | + * @return Event_Subject |
|
24 | 24 | */ |
25 | 25 | public function attach(SplObserver $obj) |
26 | 26 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @chainable |
41 | 41 | * @param object Event_Observer |
42 | - * @return object |
|
42 | + * @return Event_Subject |
|
43 | 43 | */ |
44 | 44 | public function detach(SplObserver $obj) |
45 | 45 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @chainable |
56 | 56 | * @param mixed message string, object, or array |
57 | - * @return object |
|
57 | + * @return Event_Subject |
|
58 | 58 | */ |
59 | 59 | public function notify($message) |
60 | 60 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * Handles retrieval of pre-save image properties |
130 | 130 | * |
131 | 131 | * @param string property name |
132 | - * @return mixed |
|
132 | + * @return string |
|
133 | 133 | */ |
134 | 134 | public function __get($property) |
135 | 135 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * @param integer width |
151 | 151 | * @param integer height |
152 | 152 | * @param integer one of: Image::NONE, Image::AUTO, Image::WIDTH, Image::HEIGHT |
153 | - * @return object |
|
153 | + * @return Image_Core |
|
154 | 154 | */ |
155 | 155 | public function resize($width, $height, $master = null) |
156 | 156 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param integer height |
193 | 193 | * @param integer top offset, pixel value or one of: top, center, bottom |
194 | 194 | * @param integer left offset, pixel value or one of: left, center, right |
195 | - * @return object |
|
195 | + * @return Image_Core |
|
196 | 196 | */ |
197 | 197 | public function crop($width, $height, $top = 'center', $left = 'center') |
198 | 198 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * Allows rotation of an image by 180 degrees clockwise or counter clockwise. |
231 | 231 | * |
232 | 232 | * @param integer degrees |
233 | - * @return object |
|
233 | + * @return Image_Core |
|
234 | 234 | */ |
235 | 235 | public function rotate($degrees) |
236 | 236 | { |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * |
261 | 261 | * @throws Kohana_Exception |
262 | 262 | * @param integer direction |
263 | - * @return object |
|
263 | + * @return Image_Core |
|
264 | 264 | */ |
265 | 265 | public function flip($direction) |
266 | 266 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Change the quality of an image. |
278 | 278 | * |
279 | 279 | * @param integer quality as a percentage |
280 | - * @return object |
|
280 | + * @return Image_Core |
|
281 | 281 | */ |
282 | 282 | public function quality($amount) |
283 | 283 | { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * Sharpen an image. |
291 | 291 | * |
292 | 292 | * @param integer amount to sharpen, usually ~20 is ideal |
293 | - * @return object |
|
293 | + * @return Image_Core |
|
294 | 294 | */ |
295 | 295 | public function sharpen($amount) |
296 | 296 | { |
@@ -372,6 +372,7 @@ discard block |
||
372 | 372 | * |
373 | 373 | * @param string type of property |
374 | 374 | * @param mixed property value |
375 | + * @param string $type |
|
375 | 376 | * @return boolean |
376 | 377 | */ |
377 | 378 | protected function valid_size($type, & $value) |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * Allows serialization of only the object data and state, to prevent |
152 | 152 | * "stale" objects being unserialized, which also requires less memory. |
153 | 153 | * |
154 | - * @return array |
|
154 | + * @return string[] |
|
155 | 155 | */ |
156 | 156 | public function __sleep() |
157 | 157 | { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * can be nested using 'object1:object2' syntax |
419 | 419 | * |
420 | 420 | * @param string $target_path |
421 | - * @return void |
|
421 | + * @return ORM_Core |
|
422 | 422 | */ |
423 | 423 | public function with($target_path) |
424 | 424 | { |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | * Saves the current object. |
615 | 615 | * |
616 | 616 | * @chainable |
617 | - * @return ORM |
|
617 | + * @return ORM_Core |
|
618 | 618 | */ |
619 | 619 | public function save() |
620 | 620 | { |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | * relationships that have been created with other objects. |
716 | 716 | * |
717 | 717 | * @chainable |
718 | - * @return ORM |
|
718 | + * @return ORM_Core |
|
719 | 719 | */ |
720 | 720 | public function delete($id = null) |
721 | 721 | { |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | * |
737 | 737 | * @chainable |
738 | 738 | * @param array ids to delete |
739 | - * @return ORM |
|
739 | + * @return ORM_Core |
|
740 | 740 | */ |
741 | 741 | public function delete_all($ids = null) |
742 | 742 | { |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | * Unloads the current object and clears the status. |
762 | 762 | * |
763 | 763 | * @chainable |
764 | - * @return ORM |
|
764 | + * @return ORM_Core |
|
765 | 765 | */ |
766 | 766 | public function clear() |
767 | 767 | { |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | * |
792 | 792 | * @chainable |
793 | 793 | * @param boolean force reloading |
794 | - * @return ORM |
|
794 | + * @return ORM_Core |
|
795 | 795 | */ |
796 | 796 | public function reload_columns($force = false) |
797 | 797 | { |
@@ -945,7 +945,7 @@ discard block |
||
945 | 945 | * |
946 | 946 | * @chainable |
947 | 947 | * @param string SQL query to clear |
948 | - * @return ORM |
|
948 | + * @return ORM_Core |
|
949 | 949 | */ |
950 | 950 | public function clear_cache($sql = null) |
951 | 951 | { |
@@ -1067,7 +1067,7 @@ discard block |
||
1067 | 1067 | * |
1068 | 1068 | * @chainable |
1069 | 1069 | * @param array values to load |
1070 | - * @return ORM |
|
1070 | + * @return ORM_Core |
|
1071 | 1071 | */ |
1072 | 1072 | public function load_values(array $values) |
1073 | 1073 | { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * |
291 | 291 | * @param string|array key, or array of values |
292 | 292 | * @param mixed value (if keys is not an array) |
293 | - * @return void |
|
293 | + * @return false|null |
|
294 | 294 | */ |
295 | 295 | public function set($keys, $val = false) |
296 | 296 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @param string|array key, or array of values |
319 | 319 | * @param mixed value (if keys is not an array) |
320 | - * @return void |
|
320 | + * @return false|null |
|
321 | 321 | */ |
322 | 322 | public function set_flash($keys, $val = false) |
323 | 323 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @chainable |
77 | 77 | * @param array new array to validate |
78 | - * @return Validation |
|
78 | + * @return Validation_Core |
|
79 | 79 | */ |
80 | 80 | public function copy(array $array) |
81 | 81 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @chainable |
178 | 178 | * @param string rule name |
179 | - * @return object |
|
179 | + * @return Validation_Core |
|
180 | 180 | */ |
181 | 181 | public function allow_empty_rules($rules) |
182 | 182 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Converts a filter, rule, or callback into a fully-qualified callback array. |
194 | 194 | * |
195 | - * @return mixed |
|
195 | + * @return callable |
|
196 | 196 | */ |
197 | 197 | protected function callback($callback) |
198 | 198 | { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @chainable |
239 | 239 | * @param callback filter |
240 | 240 | * @param string fields to apply filter to, use TRUE for all fields |
241 | - * @return object |
|
241 | + * @return Validation_Core |
|
242 | 242 | */ |
243 | 243 | public function pre_filter($filter, $field = true) |
244 | 244 | { |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * @chainable |
270 | 270 | * @param callback filter |
271 | 271 | * @param string fields to apply filter to, use TRUE for all fields |
272 | - * @return object |
|
272 | + * @return Validation_Core |
|
273 | 273 | */ |
274 | 274 | public function post_filter($filter, $field = true) |
275 | 275 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @chainable |
301 | 301 | * @param string field name |
302 | 302 | * @param callback rules (one or more arguments) |
303 | - * @return object |
|
303 | + * @return Validation_Core |
|
304 | 304 | */ |
305 | 305 | public function add_rules($field, $rules) |
306 | 306 | { |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | * @chainable |
351 | 351 | * @param string field name |
352 | 352 | * @param callbacks callbacks (unlimited number) |
353 | - * @return object |
|
353 | + * @return Validation_Core |
|
354 | 354 | */ |
355 | 355 | public function add_callbacks($field, $callbacks) |
356 | 356 | { |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | * @chainable |
554 | 554 | * @param string input name |
555 | 555 | * @param string unique error name |
556 | - * @return object |
|
556 | + * @return Validation_Core |
|
557 | 557 | */ |
558 | 558 | public function add_error($field, $name) |
559 | 559 | { |
@@ -27,7 +27,8 @@ discard block |
||
27 | 27 | * @param string view name |
28 | 28 | * @param array pre-load data |
29 | 29 | * @param string type of file: html, css, js, etc. |
30 | - * @return object |
|
30 | + * @param string $name |
|
31 | + * @return View |
|
31 | 32 | */ |
32 | 33 | public static function factory($name = null, $data = null, $type = null) |
33 | 34 | { |
@@ -73,7 +74,8 @@ discard block |
||
73 | 74 | * @chainable |
74 | 75 | * @param string view filename |
75 | 76 | * @param string view file type |
76 | - * @return object |
|
77 | + * @param string $name |
|
78 | + * @return View_Core |
|
77 | 79 | */ |
78 | 80 | public function set_filename($name, $type = null) |
79 | 81 | { |
@@ -105,7 +107,7 @@ discard block |
||
105 | 107 | * |
106 | 108 | * @param string|array name of variable or an array of variables |
107 | 109 | * @param mixed value when using a named variable |
108 | - * @return object |
|
110 | + * @return View_Core |
|
109 | 111 | */ |
110 | 112 | public function set($name, $value = null) |
111 | 113 | { |
@@ -158,7 +160,8 @@ discard block |
||
158 | 160 | * |
159 | 161 | * @param string name of variable |
160 | 162 | * @param mixed variable to assign by reference |
161 | - * @return object |
|
163 | + * @param string $name |
|
164 | + * @return View_Core |
|
162 | 165 | */ |
163 | 166 | public function bind($name, & $var) |
164 | 167 | { |