@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use PhpOffice\PhpSpreadsheet\Spreadsheet; |
| 5 | 5 | use PhpOffice\PhpSpreadsheet\Writer\Xlsx; |
| 6 | -use PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf; |
|
| 7 | 6 | |
| 8 | 7 | require_once('../../api/v1/class.Processor.php'); |
| 9 | 8 | |
@@ -45,6 +45,11 @@ discard block |
||
| 45 | 45 | return ($hour - 12).'p'; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param integer $hourCount |
|
| 50 | + * @param integer $rowCount |
|
| 51 | + * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheat |
|
| 52 | + */ |
|
| 48 | 53 | protected function grayOutUnused($hourCount, $rowCount, $sheat) |
| 49 | 54 | { |
| 50 | 55 | for($i = 0; $i < $hourCount; $i++) |
@@ -74,6 +79,9 @@ discard block |
||
| 74 | 79 | } |
| 75 | 80 | } |
| 76 | 81 | |
| 82 | + /** |
|
| 83 | + * @param double $hourCount |
|
| 84 | + */ |
|
| 77 | 85 | protected function getHoursArrays($hour, $hourCount) |
| 78 | 86 | { |
| 79 | 87 | $simpleHours = array(); |
@@ -91,12 +99,21 @@ discard block |
||
| 91 | 99 | return array($simpleHours, $militaryHours); |
| 92 | 100 | } |
| 93 | 101 | |
| 102 | + /** |
|
| 103 | + * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheat |
|
| 104 | + * @param double $col |
|
| 105 | + * @param integer $row |
|
| 106 | + */ |
|
| 94 | 107 | protected function createShiftCell($sheat, $col, $row, $shift) |
| 95 | 108 | { |
| 96 | 109 | $sheat->mergeCellsByColumnAndRow($col, $row, $col+$shift['length']-1, $row); |
| 97 | 110 | $this->setShiftNameInCell($sheat, $col, $row, $shift); |
| 98 | 111 | } |
| 99 | 112 | |
| 113 | + /** |
|
| 114 | + * @param double $col |
|
| 115 | + * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheat |
|
| 116 | + */ |
|
| 100 | 117 | protected function getRowForShift($roleID, $rows, $col, $sheat) |
| 101 | 118 | { |
| 102 | 119 | $firstRow = array_search($roleID, $rows); |