@@ -121,7 +121,7 @@ |
||
| 121 | 121 | /** |
| 122 | 122 | * |
| 123 | 123 | * @param absences_Entry $entry |
| 124 | - * @return absences_EntryElem |
|
| 124 | + * @return absences_DynamicRight |
|
| 125 | 125 | */ |
| 126 | 126 | public function setEntry(absences_Entry $entry) |
| 127 | 127 | { |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | * Save entry to database |
| 500 | 500 | * without validity checking |
| 501 | 501 | * |
| 502 | - * @return bool |
|
| 502 | + * @return boolean|null |
|
| 503 | 503 | */ |
| 504 | 504 | public function save() |
| 505 | 505 | { |
@@ -865,7 +865,7 @@ discard block |
||
| 865 | 865 | /** |
| 866 | 866 | * Add quantity to startdate only on working periods |
| 867 | 867 | * |
| 868 | - * @param BAB_DateTime $startdate |
|
| 868 | + * @param BAB_DateTime $startDate |
|
| 869 | 869 | * @param float $quantity days |
| 870 | 870 | * |
| 871 | 871 | * @return BAB_DateTime |
@@ -1975,6 +1975,8 @@ discard block |
||
| 1975 | 1975 | |
| 1976 | 1976 | |
| 1977 | 1977 | /** |
| 1978 | + * @param integer $rfrom |
|
| 1979 | + * @param integer $ide |
|
| 1978 | 1980 | * @return string |
| 1979 | 1981 | */ |
| 1980 | 1982 | public function getEditUrl($rfrom, $ide = null) |
@@ -2503,7 +2505,7 @@ discard block |
||
| 2503 | 2505 | } |
| 2504 | 2506 | |
| 2505 | 2507 | /** |
| 2506 | - * @return array |
|
| 2508 | + * @return string[] |
|
| 2507 | 2509 | */ |
| 2508 | 2510 | protected function getWhere() |
| 2509 | 2511 | { |
@@ -519,7 +519,7 @@ |
||
| 519 | 519 | |
| 520 | 520 | |
| 521 | 521 | /** |
| 522 | - * @return absences_Agent[] |
|
| 522 | + * @return absences_AgentIterator |
|
| 523 | 523 | */ |
| 524 | 524 | private function getUsersWithoutRequests() |
| 525 | 525 | { |
@@ -1792,6 +1792,10 @@ discard block |
||
| 1792 | 1792 | |
| 1793 | 1793 | |
| 1794 | 1794 | |
| 1795 | + /** |
|
| 1796 | + * @param string $old_date_begin |
|
| 1797 | + * @param string $old_date_end |
|
| 1798 | + */ |
|
| 1795 | 1799 | private static function getPeriodSpanOnEdit($old_date_begin, $old_date_end, BAB_DateTime $date_begin, BAB_DateTime $date_end) |
| 1796 | 1800 | { |
| 1797 | 1801 | $old_date_begin_obj = BAB_DateTime::fromIsoDateTime($old_date_begin); |
@@ -1818,6 +1822,8 @@ discard block |
||
| 1818 | 1822 | * @param int $id_request |
| 1819 | 1823 | * @param BAB_DateTime | null $old_date_begin_obj |
| 1820 | 1824 | * @param BAB_DateTime | null $old_date_end_obj |
| 1825 | + * @param null|BAB_DateTime $old_date_begin_obj |
|
| 1826 | + * @param null|BAB_DateTime $old_date_end_obj |
|
| 1821 | 1827 | */ |
| 1822 | 1828 | private static function saveInCalendar($id_request, $id, $old_date_begin_obj, $old_date_end_obj) |
| 1823 | 1829 | { |
@@ -2049,6 +2055,10 @@ discard block |
||
| 2049 | 2055 | |
| 2050 | 2056 | |
| 2051 | 2057 | |
| 2058 | + /** |
|
| 2059 | + * @param absences_Entry $entry |
|
| 2060 | + * @param boolean $modify |
|
| 2061 | + */ |
|
| 2052 | 2062 | protected static function addPrevisionalMovement($entry, $modify) |
| 2053 | 2063 | { |
| 2054 | 2064 | if ($modify) |
@@ -2062,6 +2072,10 @@ discard block |
||
| 2062 | 2072 | } |
| 2063 | 2073 | |
| 2064 | 2074 | |
| 2075 | + /** |
|
| 2076 | + * @param absences_Entry $entry |
|
| 2077 | + * @param boolean $modify |
|
| 2078 | + */ |
|
| 2065 | 2079 | protected static function addNoApprovalMovement($entry, $modify) |
| 2066 | 2080 | { |
| 2067 | 2081 | if ($modify) |
@@ -2807,6 +2821,9 @@ discard block |
||
| 2807 | 2821 | |
| 2808 | 2822 | |
| 2809 | 2823 | |
| 2824 | +/** |
|
| 2825 | + * @param integer $row |
|
| 2826 | + */ |
|
| 2810 | 2827 | function absences_personalRights_addRightInTable(Widget_TableView $table, $row, absences_Right $right, absences_AgentRight $agentRight) |
| 2811 | 2828 | { |
| 2812 | 2829 | $W = bab_Widgets(); |
@@ -390,6 +390,8 @@ |
||
| 390 | 390 | |
| 391 | 391 | |
| 392 | 392 | /** |
| 393 | + * @param integer $rfrom |
|
| 394 | + * @param integer $ide |
|
| 393 | 395 | * @return string |
| 394 | 396 | */ |
| 395 | 397 | public function getEditUrl($rfrom, $ide = null) |
@@ -315,6 +315,9 @@ discard block |
||
| 315 | 315 | |
| 316 | 316 | |
| 317 | 317 | |
| 318 | + /** |
|
| 319 | + * @param integer $exists |
|
| 320 | + */ |
|
| 318 | 321 | public function saveHistory($exists, $quantity) |
| 319 | 322 | { |
| 320 | 323 | global $babDB; |
@@ -1346,6 +1349,7 @@ discard block |
||
| 1346 | 1349 | * |
| 1347 | 1350 | * @param string $message generated message |
| 1348 | 1351 | * @param string $comment Author comment |
| 1352 | + * @param integer $id_author |
|
| 1349 | 1353 | */ |
| 1350 | 1354 | public function addMovement($message, $comment = '', $id_author = null) |
| 1351 | 1355 | { |
@@ -2138,7 +2142,7 @@ discard block |
||
| 2138 | 2142 | /** |
| 2139 | 2143 | * |
| 2140 | 2144 | * |
| 2141 | - * @return mixed |
|
| 2145 | + * @return absences_AgentRight|null |
|
| 2142 | 2146 | */ |
| 2143 | 2147 | public function next() |
| 2144 | 2148 | { |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | /** |
| 269 | 269 | * Update all fixed rights for one user |
| 270 | 270 | * @param int $id_user |
| 271 | - * @param array $messages |
|
| 271 | + * @param string $messages |
|
| 272 | 272 | */ |
| 273 | 273 | function absences_updateFixedRightsOnUser($id_user, &$messages) { |
| 274 | 274 | |
@@ -309,6 +309,8 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | /** |
| 311 | 311 | * Tester si la demande du droit a date fixe existe |
| 312 | + * @param integer $id_user |
|
| 313 | + * @param integer $id_right |
|
| 312 | 314 | * @return bool |
| 313 | 315 | */ |
| 314 | 316 | function absences_isFixedCreated($id_user, $id_right) |
@@ -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])) |