@@ -545,6 +545,9 @@ discard block |
||
| 545 | 545 | |
| 546 | 546 | |
| 547 | 547 | |
| 548 | + /** |
|
| 549 | + * @param integer $index |
|
| 550 | + */ |
|
| 548 | 551 | private function createDuplicableDynconf($index, absences_DynamicConfiguration $dynconf = null) |
| 549 | 552 | { |
| 550 | 553 | $W = bab_Widgets(); |
@@ -1027,6 +1030,9 @@ discard block |
||
| 1027 | 1030 | |
| 1028 | 1031 | |
| 1029 | 1032 | |
| 1033 | + /** |
|
| 1034 | + * @param integer $index |
|
| 1035 | + */ |
|
| 1030 | 1036 | private function createDuplicable($index, $values = null) |
| 1031 | 1037 | { |
| 1032 | 1038 | $W = bab_Widgets(); |
@@ -1686,6 +1692,9 @@ discard block |
||
| 1686 | 1692 | } |
| 1687 | 1693 | |
| 1688 | 1694 | |
| 1695 | + /** |
|
| 1696 | + * @param absences_RightCet $rightCet |
|
| 1697 | + */ |
|
| 1689 | 1698 | protected function getSavingPeriod($rightCet) |
| 1690 | 1699 | { |
| 1691 | 1700 | if ('0000-00-00' === $rightCet->saving_begin || '0000-00-00' === $rightCet->saving_end) |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | return $rightcet; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $id_right |
|
| 55 | + */ |
|
| 53 | 56 | public static function getFromRight($id_right) |
| 54 | 57 | { |
| 55 | 58 | $rightcet = new absences_RightCet; |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return $rightrule; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param integer $id_right |
|
| 60 | + */ |
|
| 58 | 61 | public static function getFromRight($id_right) |
| 59 | 62 | { |
| 60 | 63 | $rightrule = new absences_RightRule; |
@@ -172,6 +172,9 @@ |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param string $str |
|
| 177 | + */ |
|
| 175 | 178 | private function addMessage($str) { |
| 176 | 179 | $this->messages[] = $str; |
| 177 | 180 | } |
@@ -792,6 +792,7 @@ |
||
| 792 | 792 | /** |
| 793 | 793 | * Processes the array of $relative_days to $base and removes any |
| 794 | 794 | * which are not within the scope of our rule. |
| 795 | + * @param iCalDate $base |
|
| 795 | 796 | */ |
| 796 | 797 | function WithinScope( $base, $relative_days ) { |
| 797 | 798 | |
@@ -67,6 +67,7 @@ |
||
| 67 | 67 | * Inherit co-manager on subentities |
| 68 | 68 | * @param array $entities |
| 69 | 69 | * @param bool &$all_manager |
| 70 | + * @param boolean $all_manager |
|
| 70 | 71 | * @return array |
| 71 | 72 | */ |
| 72 | 73 | protected function inheritCoManager($entities, &$all_manager) |
@@ -814,6 +814,9 @@ |
||
| 814 | 814 | } |
| 815 | 815 | |
| 816 | 816 | |
| 817 | +/** |
|
| 818 | + * @param integer $nbmonth |
|
| 819 | + */ |
|
| 817 | 820 | function absences_getSearchLimit($nbmonth) |
| 818 | 821 | { |
| 819 | 822 | $initusers = (int) bab_rp('limit'); |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param string $filename |
|
| 132 | + */ |
|
| 130 | 133 | protected function setHeaders($filename) |
| 131 | 134 | { |
| 132 | 135 | header("Content-Disposition: attachment; filename=\"".$filename.".csv\""."\n"); |
@@ -136,6 +139,9 @@ discard block |
||
| 136 | 139 | |
| 137 | 140 | |
| 138 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $strDate |
|
| 144 | + */ |
|
| 139 | 145 | protected function date($strDate) { |
| 140 | 146 | return bab_shortDate(bab_mktime($strDate), false); |
| 141 | 147 | } |
@@ -284,6 +284,7 @@ discard block |
||
| 284 | 284 | * Complete current row with right value |
| 285 | 285 | * @param absences_Right $right |
| 286 | 286 | * @param array &$currentRow |
| 287 | + * @param double $remain_line |
|
| 287 | 288 | */ |
| 288 | 289 | private function setRightColumn(absences_Right $right, Array &$currentRow, Array $remain, $remain_line) |
| 289 | 290 | { |
@@ -350,7 +351,7 @@ discard block |
||
| 350 | 351 | |
| 351 | 352 | |
| 352 | 353 | /** |
| 353 | - * @return array |
|
| 354 | + * @return string[] |
|
| 354 | 355 | */ |
| 355 | 356 | private function getHeader($year = '', $organization = '') |
| 356 | 357 | { |
@@ -447,6 +448,9 @@ discard block |
||
| 447 | 448 | |
| 448 | 449 | |
| 449 | 450 | |
| 451 | + /** |
|
| 452 | + * @param string[] $header |
|
| 453 | + */ |
|
| 450 | 454 | private function echoCsv($header) |
| 451 | 455 | { |
| 452 | 456 | global $babDB; |