@@ -581,6 +581,7 @@ |
||
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | /** |
| 584 | + * @param integer $id_user |
|
| 584 | 585 | * @return string|false |
| 585 | 586 | */ |
| 586 | 587 | private function getPhoto($id_user) |
@@ -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 | { |
@@ -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 | global $babDB; |
@@ -123,6 +126,9 @@ discard block |
||
| 123 | 126 | { |
| 124 | 127 | private $res; |
| 125 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $msg |
|
| 131 | + */ |
|
| 126 | 132 | public function __construct(Array $row, $msg) |
| 127 | 133 | { |
| 128 | 134 | global $babDB; |
@@ -410,6 +416,9 @@ discard block |
||
| 410 | 416 | public $display_pagination = false; |
| 411 | 417 | |
| 412 | 418 | |
| 419 | + /** |
|
| 420 | + * @param integer $max |
|
| 421 | + */ |
|
| 413 | 422 | protected function paginate($total, $max) |
| 414 | 423 | { |
| 415 | 424 | $this->t_first_page = absences_translate('First page'); |
@@ -591,6 +600,9 @@ discard block |
||
| 591 | 600 | public $ide = null; |
| 592 | 601 | |
| 593 | 602 | |
| 603 | + /** |
|
| 604 | + * @param boolean $display_username |
|
| 605 | + */ |
|
| 594 | 606 | public function __construct($id_user, $display_username) |
| 595 | 607 | { |
| 596 | 608 | require_once dirname(__FILE__).'/request.class.php'; |
@@ -1250,6 +1262,9 @@ discard block |
||
| 1250 | 1262 | } |
| 1251 | 1263 | |
| 1252 | 1264 | |
| 1265 | + /** |
|
| 1266 | + * @param string $name |
|
| 1267 | + */ |
|
| 1253 | 1268 | private function createQuantityProperty($right, $name) |
| 1254 | 1269 | { |
| 1255 | 1270 | |
@@ -1307,6 +1322,9 @@ discard block |
||
| 1307 | 1322 | } |
| 1308 | 1323 | |
| 1309 | 1324 | |
| 1325 | +/** |
|
| 1326 | + * @param integer $id_approb |
|
| 1327 | + */ |
|
| 1310 | 1328 | function absences_getWfName($id_approb) |
| 1311 | 1329 | { |
| 1312 | 1330 | require_once $GLOBALS['babInstallPath'].'utilit/wfincl.php'; |
@@ -1487,7 +1505,7 @@ discard block |
||
| 1487 | 1505 | * return null : retour a la liste des agents |
| 1488 | 1506 | * |
| 1489 | 1507 | * |
| 1490 | - * @return bool | null |
|
| 1508 | + * @return null|boolean | null |
|
| 1491 | 1509 | */ |
| 1492 | 1510 | function absences_updateVacationPersonnel($id_user) |
| 1493 | 1511 | { |
@@ -1552,6 +1570,12 @@ discard block |
||
| 1552 | 1570 | class absences_notifyOnVacationChangeCls |
| 1553 | 1571 | { |
| 1554 | 1572 | |
| 1573 | + /** |
|
| 1574 | + * @param integer $quantity |
|
| 1575 | + * @param string $date_begin |
|
| 1576 | + * @param string $date_end |
|
| 1577 | + * @param string $msg |
|
| 1578 | + */ |
|
| 1555 | 1579 | public function __construct($quantity, $date_begin, $date_end, $msg) |
| 1556 | 1580 | { |
| 1557 | 1581 | global $babDB; |
@@ -2214,6 +2238,7 @@ discard block |
||
| 2214 | 2238 | |
| 2215 | 2239 | /** |
| 2216 | 2240 | * Clear calendar data for user |
| 2241 | + * @param integer $id_user |
|
| 2217 | 2242 | */ |
| 2218 | 2243 | function absences_clearUserCalendar($id_user = NULL) { |
| 2219 | 2244 | if (NULL === $id_user) { |
@@ -2230,6 +2255,9 @@ discard block |
||
| 2230 | 2255 | |
| 2231 | 2256 | /** |
| 2232 | 2257 | * si type2 est prioritaire, return true |
| 2258 | + * @param string $type1 |
|
| 2259 | + * @param string $type2 |
|
| 2260 | + * @param boolean $vacation_is_free |
|
| 2233 | 2261 | */ |
| 2234 | 2262 | function absences_compare($type1, $type2, $vacation_is_free) { |
| 2235 | 2263 | |
@@ -2427,6 +2455,9 @@ discard block |
||
| 2427 | 2455 | |
| 2428 | 2456 | |
| 2429 | 2457 | |
| 2458 | +/** |
|
| 2459 | + * @param string $query |
|
| 2460 | + */ |
|
| 2430 | 2461 | function absences_group_insert($query, $exec = false) { |
| 2431 | 2462 | static $values = array(); |
| 2432 | 2463 | if ($query) { |
@@ -2562,6 +2593,9 @@ discard block |
||
| 2562 | 2593 | return bab_longDate($timestamp, true); |
| 2563 | 2594 | } |
| 2564 | 2595 | |
| 2596 | +/** |
|
| 2597 | + * @param null|integer $timestamp |
|
| 2598 | + */ |
|
| 2565 | 2599 | function absences_shortDate($timestamp) { |
| 2566 | 2600 | if (empty($timestamp)) { |
| 2567 | 2601 | return ''; |
@@ -2573,6 +2607,9 @@ discard block |
||
| 2573 | 2607 | |
| 2574 | 2608 | class absences_RequestDelete |
| 2575 | 2609 | { |
| 2610 | + /** |
|
| 2611 | + * @param integer $folder |
|
| 2612 | + */ |
|
| 2576 | 2613 | public static function direct(absences_Request $request, $folder) |
| 2577 | 2614 | { |
| 2578 | 2615 | if ($folder) |
@@ -2603,6 +2640,9 @@ discard block |
||
| 2603 | 2640 | return $allDeleted; |
| 2604 | 2641 | } |
| 2605 | 2642 | |
| 2643 | + /** |
|
| 2644 | + * @param integer $folder |
|
| 2645 | + */ |
|
| 2606 | 2646 | public static function withApproval(absences_Request $request, $folder) |
| 2607 | 2647 | { |
| 2608 | 2648 | if ($folder) |
@@ -2637,7 +2677,7 @@ discard block |
||
| 2637 | 2677 | * @param int $id_request |
| 2638 | 2678 | * @param int $folder |
| 2639 | 2679 | * @param int $rfrom 1 if the delete request is created by a manager from back office (need to be secured) |
| 2640 | - * @return bool |
|
| 2680 | + * @return boolean|null |
|
| 2641 | 2681 | */ |
| 2642 | 2682 | function absences_delete_request($id_request, $folder = 0, $rfrom = 0) |
| 2643 | 2683 | { |
@@ -3186,6 +3226,9 @@ discard block |
||
| 3186 | 3226 | } |
| 3187 | 3227 | |
| 3188 | 3228 | |
| 3229 | + /** |
|
| 3230 | + * @param string $name |
|
| 3231 | + */ |
|
| 3189 | 3232 | public function param($name, $default = '') |
| 3190 | 3233 | { |
| 3191 | 3234 | if (isset($_REQUEST[$name])) |
@@ -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 | { |