@@ -186,8 +186,8 @@ |
||
186 | 186 | * |
187 | 187 | * @access public |
188 | 188 | * @param string $host |
189 | - * @param bool|int $port |
|
190 | - * @param bool|int $tval |
|
189 | + * @param boolean $port |
|
190 | + * @param boolean $tval |
|
191 | 191 | * @param string $username |
192 | 192 | * @param string $password |
193 | 193 | * @param int $debug_level |
@@ -842,7 +842,7 @@ discard block |
||
842 | 842 | * |
843 | 843 | * @param string $data The data to send |
844 | 844 | * @access public |
845 | - * @return int|bool The number of bytes sent to the server or FALSE on error |
|
845 | + * @return integer The number of bytes sent to the server or FALSE on error |
|
846 | 846 | */ |
847 | 847 | public function client_send($data) |
848 | 848 | { |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | * Get the latest error. |
858 | 858 | * |
859 | 859 | * @access public |
860 | - * @return array |
|
860 | + * @return string |
|
861 | 861 | */ |
862 | 862 | public function getError() |
863 | 863 | { |
@@ -153,6 +153,9 @@ discard block |
||
153 | 153 | } |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @return string |
|
158 | + */ |
|
156 | 159 | public function displayField() |
157 | 160 | { |
158 | 161 | $displayField = $this->getDisplayField(); |
@@ -176,7 +179,7 @@ discard block |
||
176 | 179 | } |
177 | 180 | |
178 | 181 | /** |
179 | - * @return Ajde_Db_Adapter_Abstract |
|
182 | + * @return Ajde_Db_PDO |
|
180 | 183 | */ |
181 | 184 | public function getConnection() |
182 | 185 | { |
@@ -224,6 +227,9 @@ discard block |
||
224 | 227 | return $this->loadByFields([$pk => $value]); |
225 | 228 | } |
226 | 229 | |
230 | + /** |
|
231 | + * @param string $field |
|
232 | + */ |
|
227 | 233 | public function loadByField($field, $value) |
228 | 234 | { |
229 | 235 | return $this->loadByFields([$field => $value]); |
@@ -429,7 +435,7 @@ discard block |
||
429 | 435 | |
430 | 436 | /** |
431 | 437 | * |
432 | - * @param array $fields |
|
438 | + * @param string[] $fields |
|
433 | 439 | */ |
434 | 440 | public function setEncryptedFields($fields) |
435 | 441 | { |
@@ -734,6 +740,9 @@ discard block |
||
734 | 740 | return new $parentModelName(); |
735 | 741 | } |
736 | 742 | |
743 | + /** |
|
744 | + * @param string $column |
|
745 | + */ |
|
737 | 746 | public function getParentTable($column) |
738 | 747 | { |
739 | 748 | $fk = $this->getTable()->getFK($column); |
@@ -864,6 +873,9 @@ discard block |
||
864 | 873 | |
865 | 874 | // TREE SORT FUNCTIONS |
866 | 875 | |
876 | + /** |
|
877 | + * @param string $collectionName |
|
878 | + */ |
|
867 | 879 | public function sortTree($collectionName, $parentField = 'parent', $levelField = 'level', $sortField = 'sort') |
868 | 880 | { |
869 | 881 | $collection = new $collectionName(); |
@@ -874,6 +886,11 @@ discard block |
||
874 | 886 | $this->_recurseChildren($collection, $collectionName, $parentField, $levelField, $sortField); |
875 | 887 | } |
876 | 888 | |
889 | + /** |
|
890 | + * @param string $parentField |
|
891 | + * @param string $levelField |
|
892 | + * @param string $sortField |
|
893 | + */ |
|
877 | 894 | private function _recurseChildren( |
878 | 895 | $collection, |
879 | 896 | $collectionName, |
@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | return $this->_model; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param Ajde_Model $model |
|
39 | + */ |
|
37 | 40 | public function setModel($model) |
38 | 41 | { |
39 | 42 | $this->_model = $model; |
@@ -84,6 +87,9 @@ discard block |
||
84 | 87 | return $this->_value; |
85 | 88 | } |
86 | 89 | |
90 | + /** |
|
91 | + * @param string|null $value |
|
92 | + */ |
|
87 | 93 | public function validate($fieldOptions, $value) |
88 | 94 | { |
89 | 95 | $this->_value = $value; |
@@ -35,7 +35,6 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * |
38 | - * @param mixed $name |
|
39 | 38 | * @param mixed $value |
40 | 39 | * @return mixed |
41 | 40 | */ |
@@ -83,6 +82,9 @@ discard block |
||
83 | 82 | empty($value); |
84 | 83 | } |
85 | 84 | |
85 | + /** |
|
86 | + * @param string $key |
|
87 | + */ |
|
86 | 88 | public function hasEmpty($key) |
87 | 89 | { |
88 | 90 | return $this->has($key) && $this->isEmpty($key); |
@@ -164,6 +166,9 @@ discard block |
||
164 | 166 | return preg_replace_callback('/_([a-z])/', $func, $str); |
165 | 167 | } |
166 | 168 | |
169 | + /** |
|
170 | + * @param string $classname |
|
171 | + */ |
|
167 | 172 | public static function classnameToUppercase($classname) |
168 | 173 | { |
169 | 174 | return str_replace(' ', '_', ucwords(str_replace('_', ' ', $classname))); |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | $this->_url = $url; |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
30 | 33 | public function getTitle() |
31 | 34 | { |
32 | 35 | return $this->_title; |
@@ -42,6 +45,9 @@ discard block |
||
42 | 45 | return $this->_message; |
43 | 46 | } |
44 | 47 | |
48 | + /** |
|
49 | + * @return string |
|
50 | + */ |
|
45 | 51 | public function getUrl() |
46 | 52 | { |
47 | 53 | return $this->_url; |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | return $this->get('type'); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param integer $position |
|
29 | + */ |
|
27 | 30 | public function setPosition($position) |
28 | 31 | { |
29 | 32 | $this->set('position', $position); |
@@ -64,6 +67,9 @@ discard block |
||
64 | 67 | return false; |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param string $filename |
|
72 | + */ |
|
67 | 73 | protected static function exist($filename) |
68 | 74 | { |
69 | 75 | if (is_file($filename)) { |
@@ -89,6 +95,9 @@ discard block |
||
89 | 95 | return base64_decode($string); |
90 | 96 | } |
91 | 97 | |
98 | + /** |
|
99 | + * @param string $string |
|
100 | + */ |
|
92 | 101 | public static function _urlEncode($string) |
93 | 102 | { |
94 | 103 | // return self::_rotUrl($string); |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | $this->_type = $this->extension(); |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param integer $width |
|
32 | + */ |
|
30 | 33 | public function getUrl($width = null, $height = null, $crop = false) |
31 | 34 | { |
32 | 35 | $this->setWidth($width); |
@@ -169,6 +172,9 @@ discard block |
||
169 | 172 | return $this->getGeneratedFilename(); |
170 | 173 | } |
171 | 174 | |
175 | + /** |
|
176 | + * @param boolean $crop |
|
177 | + */ |
|
172 | 178 | public function getGeneratedFilename($width = null, $height = null, $crop = null) |
173 | 179 | { |
174 | 180 | if ( |
@@ -311,6 +317,9 @@ discard block |
||
311 | 317 | return $this->resize($height, $width, true); |
312 | 318 | } |
313 | 319 | |
320 | + /** |
|
321 | + * @param string $target |
|
322 | + */ |
|
314 | 323 | public function save($target) |
315 | 324 | { |
316 | 325 | switch ($this->_type) { |
@@ -374,6 +383,14 @@ discard block |
||
374 | 383 | return $path_info['filename']; |
375 | 384 | } |
376 | 385 | |
386 | + /** |
|
387 | + * @param resource $dst_image |
|
388 | + * @param resource|null $src_image |
|
389 | + * @param integer $dst_x |
|
390 | + * @param integer $dst_y |
|
391 | + * @param integer $src_x |
|
392 | + * @param integer $src_y |
|
393 | + */ |
|
377 | 394 | protected function fastimagecopyresampled( |
378 | 395 | &$dst_image, |
379 | 396 | $src_image, |
@@ -79,6 +79,9 @@ discard block |
||
79 | 79 | return $this->get('arguments'); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $filename |
|
84 | + */ |
|
82 | 85 | protected static function exist($filename) |
83 | 86 | { |
84 | 87 | if (is_file($filename)) { |
@@ -131,6 +134,12 @@ discard block |
||
131 | 134 | return $this->_filename; |
132 | 135 | } |
133 | 136 | |
137 | + /** |
|
138 | + * @param string $base |
|
139 | + * @param string $type |
|
140 | + * @param string $action |
|
141 | + * @param string $format |
|
142 | + */ |
|
134 | 143 | public static function getFilenameFromStatic($base, $type, $action, $format) |
135 | 144 | { |
136 | 145 | return self::_getFilename($base, $type, $action, $format); |