| @@ -55,6 +55,9 @@ discard block | ||
| 55 | 55 | |
| 56 | 56 | class absences_notifyOnRequestChangeCls | 
| 57 | 57 |  { | 
| 58 | + /** | |
| 59 | + * @param string $msg | |
| 60 | + */ | |
| 58 | 61 | function __construct(absences_Entry $entry, $msg) | 
| 59 | 62 |  	{ | 
| 60 | 63 | $this->message = $msg; | 
| @@ -122,6 +125,9 @@ discard block | ||
| 122 | 125 |  { | 
| 123 | 126 | private $res; | 
| 124 | 127 | |
| 128 | + /** | |
| 129 | + * @param string $msg | |
| 130 | + */ | |
| 125 | 131 | public function __construct(Array $row, $msg) | 
| 126 | 132 |  	{ | 
| 127 | 133 | global $babDB; | 
| @@ -409,6 +415,9 @@ discard block | ||
| 409 | 415 | public $display_pagination = false; | 
| 410 | 416 | |
| 411 | 417 | |
| 418 | + /** | |
| 419 | + * @param integer $max | |
| 420 | + */ | |
| 412 | 421 | protected function paginate($total, $max) | 
| 413 | 422 |  	{ | 
| 414 | 423 |  		$this->t_first_page = absences_translate('First page'); | 
| @@ -590,6 +599,9 @@ discard block | ||
| 590 | 599 | public $ide = null; | 
| 591 | 600 | |
| 592 | 601 | |
| 602 | + /** | |
| 603 | + * @param boolean $display_username | |
| 604 | + */ | |
| 593 | 605 | public function __construct($id_user, $display_username) | 
| 594 | 606 |  	{ | 
| 595 | 607 | require_once dirname(__FILE__).'/request.class.php'; | 
| @@ -1270,6 +1282,9 @@ discard block | ||
| 1270 | 1282 | } | 
| 1271 | 1283 | |
| 1272 | 1284 | |
| 1285 | + /** | |
| 1286 | + * @param string $name | |
| 1287 | + */ | |
| 1273 | 1288 | private function createQuantityProperty($right, $name) | 
| 1274 | 1289 |  		{ | 
| 1275 | 1290 | |
| @@ -1327,6 +1342,9 @@ discard block | ||
| 1327 | 1342 | } | 
| 1328 | 1343 | |
| 1329 | 1344 | |
| 1345 | +/** | |
| 1346 | + * @param integer $id_approb | |
| 1347 | + */ | |
| 1330 | 1348 | function absences_getWfName($id_approb) | 
| 1331 | 1349 |  { | 
| 1332 | 1350 | require_once $GLOBALS['babInstallPath'].'utilit/wfincl.php'; | 
| @@ -1508,7 +1526,7 @@ discard block | ||
| 1508 | 1526 | * return null : retour a la liste des agents | 
| 1509 | 1527 | * | 
| 1510 | 1528 | * | 
| 1511 | - * @return bool | null | |
| 1529 | + * @return null|boolean | null | |
| 1512 | 1530 | */ | 
| 1513 | 1531 | function absences_updateVacationPersonnel($id_user) | 
| 1514 | 1532 |  { | 
| @@ -1573,6 +1591,12 @@ discard block | ||
| 1573 | 1591 | class absences_notifyOnVacationChangeCls | 
| 1574 | 1592 |  { | 
| 1575 | 1593 | |
| 1594 | + /** | |
| 1595 | + * @param integer $quantity | |
| 1596 | + * @param string $date_begin | |
| 1597 | + * @param string $date_end | |
| 1598 | + * @param string $msg | |
| 1599 | + */ | |
| 1576 | 1600 | public function __construct($quantity, $date_begin, $date_end, $msg) | 
| 1577 | 1601 |  	{ | 
| 1578 | 1602 | $this->message = $msg; | 
| @@ -2232,6 +2256,7 @@ discard block | ||
| 2232 | 2256 | |
| 2233 | 2257 | /** | 
| 2234 | 2258 | * Clear calendar data for user | 
| 2259 | + * @param integer $id_user | |
| 2235 | 2260 | */ | 
| 2236 | 2261 |  function absences_clearUserCalendar($id_user = NULL) { | 
| 2237 | 2262 |  	if (NULL === $id_user) { | 
| @@ -2248,6 +2273,9 @@ discard block | ||
| 2248 | 2273 | |
| 2249 | 2274 | /** | 
| 2250 | 2275 | * si type2 est prioritaire, return true | 
| 2276 | + * @param string $type1 | |
| 2277 | + * @param string $type2 | |
| 2278 | + * @param boolean $vacation_is_free | |
| 2251 | 2279 | */ | 
| 2252 | 2280 |  function absences_compare($type1, $type2, $vacation_is_free) { | 
| 2253 | 2281 | |
| @@ -2444,6 +2472,9 @@ discard block | ||
| 2444 | 2472 | |
| 2445 | 2473 | |
| 2446 | 2474 | |
| 2475 | +/** | |
| 2476 | + * @param string $query | |
| 2477 | + */ | |
| 2447 | 2478 |  function absences_group_insert($query, $exec = false) { | 
| 2448 | 2479 | static $values = array(); | 
| 2449 | 2480 |  	if ($query) { | 
| @@ -2579,6 +2610,9 @@ discard block | ||
| 2579 | 2610 | return bab_longDate($timestamp, true); | 
| 2580 | 2611 | } | 
| 2581 | 2612 | |
| 2613 | +/** | |
| 2614 | + * @param null|integer $timestamp | |
| 2615 | + */ | |
| 2582 | 2616 |  function absences_shortDate($timestamp) { | 
| 2583 | 2617 |  	if (empty($timestamp)) { | 
| 2584 | 2618 | return ''; | 
| @@ -2590,6 +2624,9 @@ discard block | ||
| 2590 | 2624 | |
| 2591 | 2625 | class absences_RequestDelete | 
| 2592 | 2626 |  { | 
| 2627 | + /** | |
| 2628 | + * @param integer $folder | |
| 2629 | + */ | |
| 2593 | 2630 | public static function direct(absences_Request $request, $folder) | 
| 2594 | 2631 |      { | 
| 2595 | 2632 | if ($folder) | 
| @@ -2620,6 +2657,9 @@ discard block | ||
| 2620 | 2657 | return $allDeleted; | 
| 2621 | 2658 | } | 
| 2622 | 2659 | |
| 2660 | + /** | |
| 2661 | + * @param integer $folder | |
| 2662 | + */ | |
| 2623 | 2663 | public static function withApproval(absences_Request $request, $folder) | 
| 2624 | 2664 |      { | 
| 2625 | 2665 | if ($folder) | 
| @@ -2654,7 +2694,7 @@ discard block | ||
| 2654 | 2694 | * @param int $id_request | 
| 2655 | 2695 | * @param int $folder | 
| 2656 | 2696 | * @param int $rfrom 1 if the delete request is created by a manager from back office (need to be secured) | 
| 2657 | - * @return bool | |
| 2697 | + * @return boolean|null | |
| 2658 | 2698 | */ | 
| 2659 | 2699 | function absences_delete_request($id_request, $folder = 0, $rfrom = 0) | 
| 2660 | 2700 |  { | 
| @@ -3202,6 +3242,9 @@ discard block | ||
| 3202 | 3242 | } | 
| 3203 | 3243 | |
| 3204 | 3244 | |
| 3245 | + /** | |
| 3246 | + * @param string $name | |
| 3247 | + */ | |
| 3205 | 3248 | public function param($name, $default = '') | 
| 3206 | 3249 |  	{ | 
| 3207 | 3250 | if (isset($_REQUEST[$name])) |