@@ -85,6 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * Implements getFields API method. |
87 | 87 | * |
88 | + * @param string $module |
|
88 | 89 | * @return Response The Response object |
89 | 90 | */ |
90 | 91 | public function getFields($module) |
@@ -144,7 +145,7 @@ discard block |
||
144 | 145 | * @param $sortOrderString |
145 | 146 | * @param \DateTime $lastModifiedTime |
146 | 147 | * @param $selectColumns |
147 | - * @param $fromIndex |
|
148 | + * @param integer $fromIndex |
|
148 | 149 | * @param $toIndex |
149 | 150 | * |
150 | 151 | * @return Response The Response object |
@@ -210,10 +211,10 @@ discard block |
||
210 | 211 | * Implements getRecords API method. |
211 | 212 | * |
212 | 213 | * @param $module |
213 | - * @param $id |
|
214 | - * @param $parentModule |
|
215 | - * @param null $fromIndex |
|
216 | - * @param null $toIndex |
|
214 | + * @param string $id |
|
215 | + * @param string $parentModule |
|
216 | + * @param integer $fromIndex |
|
217 | + * @param integer $toIndex |
|
217 | 218 | * |
218 | 219 | * @return Response |
219 | 220 | * |
@@ -242,7 +243,7 @@ discard block |
||
242 | 243 | * @param int $fromIndex |
243 | 244 | * @param int $toIndex |
244 | 245 | * @param \DateTime $lastModifiedTime |
245 | - * @param null $selectColumns |
|
246 | + * @param string|null $selectColumns |
|
246 | 247 | * |
247 | 248 | * @return Response |
248 | 249 | * |
@@ -309,6 +310,7 @@ discard block |
||
309 | 310 | * @param bool $wfTrigger |
310 | 311 | * @param int $duplicateCheck |
311 | 312 | * @param bool $isApproval |
313 | + * @param \SimpleXMLElement $xmlData |
|
312 | 314 | * |
313 | 315 | * @return Response |
314 | 316 | * |
@@ -361,8 +363,8 @@ discard block |
||
361 | 363 | * Implements uploadFile API method. |
362 | 364 | * |
363 | 365 | * @param $module |
364 | - * @param $id |
|
365 | - * @param $content |
|
366 | + * @param string $id |
|
367 | + * @param string $content |
|
366 | 368 | * |
367 | 369 | * @return Response |
368 | 370 | * |
@@ -380,7 +382,7 @@ discard block |
||
380 | 382 | * Implements downloadFile API method. |
381 | 383 | * |
382 | 384 | * @param $module |
383 | - * @param $id |
|
385 | + * @param string $id |
|
384 | 386 | * |
385 | 387 | * @return Response |
386 | 388 | * |
@@ -406,9 +408,7 @@ discard block |
||
406 | 408 | * |
407 | 409 | * @param string $module The module to use |
408 | 410 | * @param string $command Command to call |
409 | - * @param array $params Options |
|
410 | - * @param \SimpleXMLElement|string $data Data to send [optional] |
|
411 | - * @param array $options Options to add for configurations [optional] |
|
411 | + * @param array $postParams Options |
|
412 | 412 | * |
413 | 413 | * @return Response |
414 | 414 | */ |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | /** |
445 | 445 | * Get the current request uri. |
446 | 446 | * |
447 | - * @param $module The module to use |
|
447 | + * @param string $module The module to use |
|
448 | 448 | * @param string $command Command for get uri |
449 | 449 | * |
450 | 450 | * @return string |
@@ -84,6 +84,13 @@ discard block |
||
84 | 84 | return $namespace.'\\'.$daoClassName; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $namespace |
|
89 | + * @param string $className |
|
90 | + * @param string $moduleName |
|
91 | + * @param string $targetDirectory |
|
92 | + * @param string $moduleSingular |
|
93 | + */ |
|
87 | 94 | public function generateBean($fields, $namespace, $className, $moduleName, $targetDirectory, $moduleSingular) |
88 | 95 | { |
89 | 96 | |
@@ -211,7 +218,6 @@ discard block |
||
211 | 218 | * Returns a unique identifier from the name. |
212 | 219 | * |
213 | 220 | * @param $name |
214 | - * @param array $usedNames |
|
215 | 221 | */ |
216 | 222 | private function getUniqueIdentifier($name, array $usedIdentifiers) |
217 | 223 | { |
@@ -228,6 +234,15 @@ discard block |
||
228 | 234 | } |
229 | 235 | } |
230 | 236 | |
237 | + /** |
|
238 | + * @param string $namespace |
|
239 | + * @param string $className |
|
240 | + * @param string $daoClassName |
|
241 | + * @param string $moduleName |
|
242 | + * @param string $targetDirectory |
|
243 | + * @param string $moduleSingular |
|
244 | + * @param string $modulePlural |
|
245 | + */ |
|
231 | 246 | public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory, $moduleSingular, $modulePlural) |
232 | 247 | { |
233 | 248 | // if (class_exists($namespace."\\".$className)) { |
@@ -346,6 +361,10 @@ discard block |
||
346 | 361 | return $str; |
347 | 362 | } |
348 | 363 | |
364 | + /** |
|
365 | + * @param string $description |
|
366 | + * @param string $type |
|
367 | + */ |
|
349 | 368 | private static function registerProperty(PhpClass $class, $name, $description, $type) |
350 | 369 | { |
351 | 370 | if (!$class->hasProperty($name)) { |