@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | private static $plotMark = 0; |
63 | 63 | |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $markerID |
|
67 | + */ |
|
65 | 68 | private function formatPointMarker($seriesPlot, $markerID) |
66 | 69 | { |
67 | 70 | $plotMarkKeys = array_keys(self::$markSet); |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | } |
91 | 94 | |
92 | 95 | |
96 | + /** |
|
97 | + * @param integer $labelCount |
|
98 | + */ |
|
93 | 99 | private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '') |
94 | 100 | { |
95 | 101 | $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode(); |
@@ -120,6 +126,9 @@ discard block |
||
120 | 126 | } |
121 | 127 | |
122 | 128 | |
129 | + /** |
|
130 | + * @param integer $seriesCount |
|
131 | + */ |
|
123 | 132 | private function percentageSumCalculation($groupID, $seriesCount) |
124 | 133 | { |
125 | 134 | // Adjust our values to a percentage value across all series in the group |
@@ -152,6 +161,9 @@ discard block |
||
152 | 161 | } |
153 | 162 | |
154 | 163 | |
164 | + /** |
|
165 | + * @param \PhpSpreadsheet\Chart\Title $captionElement |
|
166 | + */ |
|
155 | 167 | private function getCaption($captionElement) |
156 | 168 | { |
157 | 169 | // Read any caption |
@@ -264,6 +276,9 @@ discard block |
||
264 | 276 | } |
265 | 277 | |
266 | 278 | |
279 | + /** |
|
280 | + * @param integer $groupID |
|
281 | + */ |
|
267 | 282 | private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d') |
268 | 283 | { |
269 | 284 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -328,6 +343,9 @@ discard block |
||
328 | 343 | } |
329 | 344 | |
330 | 345 | |
346 | + /** |
|
347 | + * @param integer $groupID |
|
348 | + */ |
|
331 | 349 | private function renderPlotBar($groupID, $dimensions = '2d') |
332 | 350 | { |
333 | 351 | $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection(); |
@@ -414,6 +432,10 @@ discard block |
||
414 | 432 | } |
415 | 433 | |
416 | 434 | |
435 | + /** |
|
436 | + * @param integer $groupID |
|
437 | + * @param boolean $bubble |
|
438 | + */ |
|
417 | 439 | private function renderPlotScatter($groupID, $bubble) |
418 | 440 | { |
419 | 441 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -460,6 +482,9 @@ discard block |
||
460 | 482 | } |
461 | 483 | |
462 | 484 | |
485 | + /** |
|
486 | + * @param integer $groupID |
|
487 | + */ |
|
463 | 488 | private function renderPlotRadar($groupID) |
464 | 489 | { |
465 | 490 | $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -499,6 +524,9 @@ discard block |
||
499 | 524 | } |
500 | 525 | |
501 | 526 | |
527 | + /** |
|
528 | + * @param integer $groupID |
|
529 | + */ |
|
502 | 530 | private function renderPlotContour($groupID) |
503 | 531 | { |
504 | 532 | $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -520,6 +548,9 @@ discard block |
||
520 | 548 | } |
521 | 549 | |
522 | 550 | |
551 | + /** |
|
552 | + * @param integer $groupID |
|
553 | + */ |
|
523 | 554 | private function renderPlotStock($groupID) |
524 | 555 | { |
525 | 556 | $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); |
@@ -560,6 +591,9 @@ discard block |
||
560 | 591 | } |
561 | 592 | |
562 | 593 | |
594 | + /** |
|
595 | + * @param integer $groupCount |
|
596 | + */ |
|
563 | 597 | private function renderAreaChart($groupCount, $dimensions = '2d') |
564 | 598 | { |
565 | 599 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php'); |
@@ -572,6 +606,9 @@ discard block |
||
572 | 606 | } |
573 | 607 | |
574 | 608 | |
609 | + /** |
|
610 | + * @param integer $groupCount |
|
611 | + */ |
|
575 | 612 | private function renderLineChart($groupCount, $dimensions = '2d') |
576 | 613 | { |
577 | 614 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php'); |
@@ -584,6 +621,9 @@ discard block |
||
584 | 621 | } |
585 | 622 | |
586 | 623 | |
624 | + /** |
|
625 | + * @param integer $groupCount |
|
626 | + */ |
|
587 | 627 | private function renderBarChart($groupCount, $dimensions = '2d') |
588 | 628 | { |
589 | 629 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_bar.php'); |
@@ -596,6 +636,9 @@ discard block |
||
596 | 636 | } |
597 | 637 | |
598 | 638 | |
639 | + /** |
|
640 | + * @param integer $groupCount |
|
641 | + */ |
|
599 | 642 | private function renderScatterChart($groupCount) |
600 | 643 | { |
601 | 644 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_scatter.php'); |
@@ -610,6 +653,9 @@ discard block |
||
610 | 653 | } |
611 | 654 | |
612 | 655 | |
656 | + /** |
|
657 | + * @param integer $groupCount |
|
658 | + */ |
|
613 | 659 | private function renderBubbleChart($groupCount) |
614 | 660 | { |
615 | 661 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_scatter.php'); |
@@ -622,6 +668,9 @@ discard block |
||
622 | 668 | } |
623 | 669 | |
624 | 670 | |
671 | + /** |
|
672 | + * @param integer $groupCount |
|
673 | + */ |
|
625 | 674 | private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false) |
626 | 675 | { |
627 | 676 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_pie.php'); |
@@ -699,6 +748,9 @@ discard block |
||
699 | 748 | } |
700 | 749 | |
701 | 750 | |
751 | + /** |
|
752 | + * @param integer $groupCount |
|
753 | + */ |
|
702 | 754 | private function renderRadarChart($groupCount) |
703 | 755 | { |
704 | 756 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_radar.php'); |
@@ -711,6 +763,9 @@ discard block |
||
711 | 763 | } |
712 | 764 | |
713 | 765 | |
766 | + /** |
|
767 | + * @param integer $groupCount |
|
768 | + */ |
|
714 | 769 | private function renderStockChart($groupCount) |
715 | 770 | { |
716 | 771 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_stock.php'); |
@@ -723,6 +778,10 @@ discard block |
||
723 | 778 | } |
724 | 779 | |
725 | 780 | |
781 | + /** |
|
782 | + * @param integer $groupCount |
|
783 | + * @param string|null $dimensions |
|
784 | + */ |
|
726 | 785 | private function renderContourChart($groupCount, $dimensions) |
727 | 786 | { |
728 | 787 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_contour.php'); |
@@ -735,6 +794,9 @@ discard block |
||
735 | 794 | } |
736 | 795 | |
737 | 796 | |
797 | + /** |
|
798 | + * @param integer $groupCount |
|
799 | + */ |
|
738 | 800 | private function renderCombinationChart($groupCount, $dimensions, $outputDestination) |
739 | 801 | { |
740 | 802 | require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php'); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * Get Created |
179 | 179 | * |
180 | - * @return datetime |
|
180 | + * @return integer|null |
|
181 | 181 | */ |
182 | 182 | public function getCreated() |
183 | 183 | { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Get Modified |
211 | 211 | * |
212 | - * @return datetime |
|
212 | + * @return integer|null |
|
213 | 213 | */ |
214 | 214 | public function getModified() |
215 | 215 | { |
@@ -285,6 +285,11 @@ discard block |
||
285 | 285 | return isset($c->v) ? (string) $c->v : null; |
286 | 286 | } |
287 | 287 | |
288 | + /** |
|
289 | + * @param string $r |
|
290 | + * @param string $cellDataType |
|
291 | + * @param string $castBaseType |
|
292 | + */ |
|
288 | 293 | private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) |
289 | 294 | { |
290 | 295 | // echo 'Formula', PHP_EOL; |
@@ -327,6 +332,9 @@ discard block |
||
327 | 332 | } |
328 | 333 | |
329 | 334 | |
335 | + /** |
|
336 | + * @return string|null |
|
337 | + */ |
|
330 | 338 | private function getFromZipArchive($archive, $fileName = '') |
331 | 339 | { |
332 | 340 | // Root-relative paths |
@@ -356,7 +364,7 @@ discard block |
||
356 | 364 | * Loads Spreadsheet from file |
357 | 365 | * |
358 | 366 | * @param string $pFilename |
359 | - * @return Spreadsheet |
|
367 | + * @return \PhpSpreadsheet\Spreadsheet |
|
360 | 368 | * @throws Exception |
361 | 369 | */ |
362 | 370 | public function load($pFilename) |
@@ -1921,6 +1929,9 @@ discard block |
||
1921 | 1929 | return 'FF000000'; |
1922 | 1930 | } |
1923 | 1931 | |
1932 | + /** |
|
1933 | + * @param \PhpSpreadsheet\Style $docStyle |
|
1934 | + */ |
|
1924 | 1935 | private static function readStyle($docStyle, $style) |
1925 | 1936 | { |
1926 | 1937 | // format code |
@@ -2120,6 +2131,9 @@ discard block |
||
2120 | 2131 | return $value; |
2121 | 2132 | } |
2122 | 2133 | |
2134 | + /** |
|
2135 | + * @param \PhpSpreadsheet\Spreadsheet $excel |
|
2136 | + */ |
|
2123 | 2137 | private function readRibbon($excel, $customUITarget, $zip) |
2124 | 2138 | { |
2125 | 2139 | $baseDir = dirname($customUITarget); |
@@ -2172,6 +2186,9 @@ discard block |
||
2172 | 2186 | return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add"); |
2173 | 2187 | } |
2174 | 2188 | |
2189 | + /** |
|
2190 | + * @param string $style |
|
2191 | + */ |
|
2175 | 2192 | private static function toCSSArray($style) |
2176 | 2193 | { |
2177 | 2194 | $style = str_replace(array("\r","\n"), "", $style); |
@@ -26,6 +26,10 @@ discard block |
||
26 | 26 | */ |
27 | 27 | class Chart |
28 | 28 | { |
29 | + /** |
|
30 | + * @param string $name |
|
31 | + * @param string $format |
|
32 | + */ |
|
29 | 33 | private static function getAttribute($component, $name, $format) |
30 | 34 | { |
31 | 35 | $attributes = $component->attributes(); |
@@ -53,6 +57,10 @@ discard block |
||
53 | 57 | } |
54 | 58 | } |
55 | 59 | |
60 | + /** |
|
61 | + * @param \SimpleXMLElement $chartElements |
|
62 | + * @param string $chartName |
|
63 | + */ |
|
56 | 64 | public static function readChart($chartElements, $chartName) |
57 | 65 | { |
58 | 66 | $namespacesChartMeta = $chartElements->getNamespaces(true); |
@@ -195,6 +203,9 @@ discard block |
||
195 | 203 | return $chart; |
196 | 204 | } |
197 | 205 | |
206 | + /** |
|
207 | + * @param string $type |
|
208 | + */ |
|
198 | 209 | private static function chartTitle($titleDetails, $namespacesChartMeta, $type) |
199 | 210 | { |
200 | 211 | $caption = array(); |
@@ -481,6 +492,9 @@ discard block |
||
481 | 492 | return $plotAttributes; |
482 | 493 | } |
483 | 494 | |
495 | + /** |
|
496 | + * @param \PhpSpreadsheet\Chart\Layout $plotArea |
|
497 | + */ |
|
484 | 498 | private static function setChartAttributes($plotArea, $plotAttributes) |
485 | 499 | { |
486 | 500 | foreach ($plotAttributes as $plotAttributeKey => $plotAttributeValue) { |
@@ -163,6 +163,9 @@ discard block |
||
163 | 163 | return $worksheetInfo; |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param string $filename |
|
168 | + */ |
|
166 | 169 | private function gzfileGetContents($filename) |
167 | 170 | { |
168 | 171 | $file = @gzopen($filename, 'rb'); |
@@ -180,7 +183,7 @@ discard block |
||
180 | 183 | * Loads PhpSpreadsheet from file |
181 | 184 | * |
182 | 185 | * @param string $pFilename |
183 | - * @return PhpSpreadsheet |
|
186 | + * @return \PhpSpreadsheet\Spreadsheet |
|
184 | 187 | * @throws Exception |
185 | 188 | */ |
186 | 189 | public function load($pFilename) |
@@ -197,7 +200,7 @@ discard block |
||
197 | 200 | * |
198 | 201 | * @param string $pFilename |
199 | 202 | * @param \PhpSpreadsheet\Spreadsheet $spreadsheet |
200 | - * @return PhpSpreadsheet |
|
203 | + * @return \PhpSpreadsheet\Spreadsheet |
|
201 | 204 | * @throws Exception |
202 | 205 | */ |
203 | 206 | public function loadIntoExisting($pFilename, \PhpSpreadsheet\Spreadsheet $spreadsheet) |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * Loads PhpSpreadsheet from file |
136 | 136 | * |
137 | 137 | * @param string $pFilename |
138 | - * @return PhpSpreadsheet |
|
138 | + * @return \PhpSpreadsheet\Spreadsheet |
|
139 | 139 | * @throws Exception |
140 | 140 | */ |
141 | 141 | public function load($pFilename) |
@@ -217,6 +217,12 @@ discard block |
||
217 | 217 | $cellContent = (string) ''; |
218 | 218 | } |
219 | 219 | |
220 | + /** |
|
221 | + * @param \PhpSpreadsheet\Worksheet $sheet |
|
222 | + * @param integer $row |
|
223 | + * @param string $column |
|
224 | + * @param string $cellContent |
|
225 | + */ |
|
220 | 226 | protected function processDomElement(DOMNode $element, $sheet, &$row, &$column, &$cellContent, $format = null) |
221 | 227 | { |
222 | 228 | foreach ($element->childNodes as $child) { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * Calculate an (approximate) OpenXML column width, based on font size and text contained |
238 | 238 | * |
239 | 239 | * @param \PhpSpreadsheet\Style\Font $font Font object |
240 | - * @param \PhpSpreadsheet\RichText|string $cellText Text to calculate width |
|
240 | + * @param string $cellText Text to calculate width |
|
241 | 241 | * @param integer $rotation Rotation angle |
242 | 242 | * @param \PhpSpreadsheet\Style\Font|NULL $defaultFont Font object |
243 | 243 | * @return integer Column width |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * Calculate an (approximate) pixel size, based on centimeter size |
407 | 407 | * |
408 | 408 | * @param int $sizeInCm Font size (in centimeters) |
409 | - * @return int Size (in pixels) |
|
409 | + * @return double Size (in pixels) |
|
410 | 410 | */ |
411 | 411 | public static function centimeterSizeToPixels($sizeInCm = 1) |
412 | 412 | { |
@@ -417,6 +417,7 @@ discard block |
||
417 | 417 | * Returns the font path given the font |
418 | 418 | * |
419 | 419 | * @param \PhpSpreadsheet\Style\Font |
420 | + * @param \PhpSpreadsheet\Style\Font $font |
|
420 | 421 | * @return string Path to TrueType font file |
421 | 422 | */ |
422 | 423 | public static function getTrueTypeFontFileFromFont($font) |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * The workbook has macros ? |
138 | 138 | * |
139 | - * @return true if workbook has macros, false if not |
|
139 | + * @return boolean if workbook has macros, false if not |
|
140 | 140 | */ |
141 | 141 | public function hasMacros() |
142 | 142 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * Set the macros certificate |
179 | 179 | * |
180 | - * @param string|null $Certificate |
|
180 | + * @param string|null $certificate |
|
181 | 181 | */ |
182 | 182 | public function setMacrosCertificate($certificate = null) |
183 | 183 | { |
@@ -232,6 +232,7 @@ discard block |
||
232 | 232 | * retrieve ribbon XML Data |
233 | 233 | * |
234 | 234 | * return string|null|array |
235 | + * @return string |
|
235 | 236 | */ |
236 | 237 | public function getRibbonXMLData($what = 'all') //we need some constants here... |
237 | 238 | { |
@@ -307,7 +308,7 @@ discard block |
||
307 | 308 | /** |
308 | 309 | * This workbook have a custom UI ? |
309 | 310 | * |
310 | - * @return true|false |
|
311 | + * @return boolean |
|
311 | 312 | */ |
312 | 313 | public function hasRibbon() |
313 | 314 | { |
@@ -317,7 +318,7 @@ discard block |
||
317 | 318 | /** |
318 | 319 | * This workbook have additionnal object for the ribbon ? |
319 | 320 | * |
320 | - * @return true|false |
|
321 | + * @return boolean |
|
321 | 322 | */ |
322 | 323 | public function hasRibbonBinObjects() |
323 | 324 | { |
@@ -615,7 +616,7 @@ discard block |
||
615 | 616 | * Get index for sheet |
616 | 617 | * |
617 | 618 | * @param Worksheet $pSheet |
618 | - * @return Sheet index |
|
619 | + * @return integer index |
|
619 | 620 | * @throws Exception |
620 | 621 | */ |
621 | 622 | public function getIndex(Worksheet $pSheet) |
@@ -634,7 +635,7 @@ discard block |
||
634 | 635 | * |
635 | 636 | * @param string $sheetName Sheet name to modify index for |
636 | 637 | * @param int $newIndex New index for the sheet |
637 | - * @return New sheet index |
|
638 | + * @return integer sheet index |
|
638 | 639 | * @throws Exception |
639 | 640 | */ |
640 | 641 | public function setIndexByName($sheetName, $newIndex) |
@@ -776,7 +777,7 @@ discard block |
||
776 | 777 | * Add named range |
777 | 778 | * |
778 | 779 | * @param NamedRange $namedRange |
779 | - * @return PhpSpreadsheet |
|
780 | + * @return boolean |
|
780 | 781 | */ |
781 | 782 | public function addNamedRange(NamedRange $namedRange) |
782 | 783 | { |
@@ -821,7 +822,7 @@ discard block |
||
821 | 822 | * |
822 | 823 | * @param string $namedRange |
823 | 824 | * @param Worksheet|null $pSheet Scope: use null for global scope. |
824 | - * @return PhpSpreadsheet |
|
825 | + * @return Spreadsheet |
|
825 | 826 | */ |
826 | 827 | public function removeNamedRange($namedRange, Worksheet $pSheet = null) |
827 | 828 | { |
@@ -840,7 +841,7 @@ discard block |
||
840 | 841 | /** |
841 | 842 | * Get worksheet iterator |
842 | 843 | * |
843 | - * @return WorksheetIterator |
|
844 | + * @return Worksheet\Iterator |
|
844 | 845 | */ |
845 | 846 | public function getWorksheetIterator() |
846 | 847 | { |
@@ -850,7 +851,7 @@ discard block |
||
850 | 851 | /** |
851 | 852 | * Copy workbook (!= clone!) |
852 | 853 | * |
853 | - * @return PhpSpreadsheet |
|
854 | + * @return Spreadsheet |
|
854 | 855 | */ |
855 | 856 | public function copy() |
856 | 857 | { |
@@ -99,65 +99,65 @@ discard block |
||
99 | 99 | private $cellStyleXfCollection = array(); |
100 | 100 | |
101 | 101 | /** |
102 | - * hasMacros : this workbook have macros ? |
|
103 | - * |
|
104 | - * @var bool |
|
105 | - */ |
|
102 | + * hasMacros : this workbook have macros ? |
|
103 | + * |
|
104 | + * @var bool |
|
105 | + */ |
|
106 | 106 | private $hasMacros = false; |
107 | 107 | |
108 | 108 | /** |
109 | - * macrosCode : all macros code (the vbaProject.bin file, this include form, code, etc.), null if no macro |
|
110 | - * |
|
111 | - * @var binary |
|
112 | - */ |
|
109 | + * macrosCode : all macros code (the vbaProject.bin file, this include form, code, etc.), null if no macro |
|
110 | + * |
|
111 | + * @var binary |
|
112 | + */ |
|
113 | 113 | private $macrosCode; |
114 | 114 | /** |
115 | - * macrosCertificate : if macros are signed, contains vbaProjectSignature.bin file, null if not signed |
|
116 | - * |
|
117 | - * @var binary |
|
118 | - */ |
|
115 | + * macrosCertificate : if macros are signed, contains vbaProjectSignature.bin file, null if not signed |
|
116 | + * |
|
117 | + * @var binary |
|
118 | + */ |
|
119 | 119 | private $macrosCertificate; |
120 | 120 | |
121 | 121 | /** |
122 | - * ribbonXMLData : null if workbook is'nt Excel 2007 or not contain a customized UI |
|
123 | - * |
|
124 | - * @var null|string |
|
125 | - */ |
|
122 | + * ribbonXMLData : null if workbook is'nt Excel 2007 or not contain a customized UI |
|
123 | + * |
|
124 | + * @var null|string |
|
125 | + */ |
|
126 | 126 | private $ribbonXMLData; |
127 | 127 | |
128 | 128 | /** |
129 | - * ribbonBinObjects : null if workbook is'nt Excel 2007 or not contain embedded objects (picture(s)) for Ribbon Elements |
|
130 | - * ignored if $ribbonXMLData is null |
|
131 | - * |
|
132 | - * @var null|array |
|
133 | - */ |
|
129 | + * ribbonBinObjects : null if workbook is'nt Excel 2007 or not contain embedded objects (picture(s)) for Ribbon Elements |
|
130 | + * ignored if $ribbonXMLData is null |
|
131 | + * |
|
132 | + * @var null|array |
|
133 | + */ |
|
134 | 134 | private $ribbonBinObjects; |
135 | 135 | |
136 | 136 | /** |
137 | - * The workbook has macros ? |
|
138 | - * |
|
139 | - * @return true if workbook has macros, false if not |
|
140 | - */ |
|
137 | + * The workbook has macros ? |
|
138 | + * |
|
139 | + * @return true if workbook has macros, false if not |
|
140 | + */ |
|
141 | 141 | public function hasMacros() |
142 | 142 | { |
143 | 143 | return $this->hasMacros; |
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * Define if a workbook has macros |
|
148 | - * |
|
149 | - * @param boolean $hasMacros true|false |
|
150 | - */ |
|
147 | + * Define if a workbook has macros |
|
148 | + * |
|
149 | + * @param boolean $hasMacros true|false |
|
150 | + */ |
|
151 | 151 | public function setHasMacros($hasMacros = false) |
152 | 152 | { |
153 | 153 | $this->hasMacros = (bool) $hasMacros; |
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
157 | - * Set the macros code |
|
158 | - * |
|
159 | - * @param string $macroCode string|null |
|
160 | - */ |
|
157 | + * Set the macros code |
|
158 | + * |
|
159 | + * @param string $macroCode string|null |
|
160 | + */ |
|
161 | 161 | public function setMacrosCode($macroCode = null) |
162 | 162 | { |
163 | 163 | $this->macrosCode = $macroCode; |
@@ -165,49 +165,49 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * Return the macros code |
|
169 | - * |
|
170 | - * @return string|null |
|
171 | - */ |
|
168 | + * Return the macros code |
|
169 | + * |
|
170 | + * @return string|null |
|
171 | + */ |
|
172 | 172 | public function getMacrosCode() |
173 | 173 | { |
174 | 174 | return $this->macrosCode; |
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
178 | - * Set the macros certificate |
|
179 | - * |
|
180 | - * @param string|null $Certificate |
|
181 | - */ |
|
178 | + * Set the macros certificate |
|
179 | + * |
|
180 | + * @param string|null $Certificate |
|
181 | + */ |
|
182 | 182 | public function setMacrosCertificate($certificate = null) |
183 | 183 | { |
184 | 184 | $this->macrosCertificate = $certificate; |
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * Is the project signed ? |
|
189 | - * |
|
190 | - * @return boolean true|false |
|
191 | - */ |
|
188 | + * Is the project signed ? |
|
189 | + * |
|
190 | + * @return boolean true|false |
|
191 | + */ |
|
192 | 192 | public function hasMacrosCertificate() |
193 | 193 | { |
194 | 194 | return !is_null($this->macrosCertificate); |
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
198 | - * Return the macros certificate |
|
199 | - * |
|
200 | - * @return string|null |
|
201 | - */ |
|
198 | + * Return the macros certificate |
|
199 | + * |
|
200 | + * @return string|null |
|
201 | + */ |
|
202 | 202 | public function getMacrosCertificate() |
203 | 203 | { |
204 | 204 | return $this->macrosCertificate; |
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |
208 | - * Remove all macros, certificate from spreadsheet |
|
209 | - * |
|
210 | - */ |
|
208 | + * Remove all macros, certificate from spreadsheet |
|
209 | + * |
|
210 | + */ |
|
211 | 211 | public function discardMacros() |
212 | 212 | { |
213 | 213 | $this->hasMacros = false; |
@@ -216,9 +216,9 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | - * set ribbon XML data |
|
220 | - * |
|
221 | - */ |
|
219 | + * set ribbon XML data |
|
220 | + * |
|
221 | + */ |
|
222 | 222 | public function setRibbonXMLData($target = null, $xmlData = null) |
223 | 223 | { |
224 | 224 | if (!is_null($target) && !is_null($xmlData)) { |
@@ -229,10 +229,10 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | /** |
232 | - * retrieve ribbon XML Data |
|
233 | - * |
|
234 | - * return string|null|array |
|
235 | - */ |
|
232 | + * retrieve ribbon XML Data |
|
233 | + * |
|
234 | + * return string|null|array |
|
235 | + */ |
|
236 | 236 | public function getRibbonXMLData($what = 'all') //we need some constants here... |
237 | 237 | { |
238 | 238 | $returnData = null; |
@@ -253,9 +253,9 @@ discard block |
||
253 | 253 | } |
254 | 254 | |
255 | 255 | /** |
256 | - * store binaries ribbon objects (pictures) |
|
257 | - * |
|
258 | - */ |
|
256 | + * store binaries ribbon objects (pictures) |
|
257 | + * |
|
258 | + */ |
|
259 | 259 | public function setRibbonBinObjects($BinObjectsNames = null, $BinObjectsData = null) |
260 | 260 | { |
261 | 261 | if (!is_null($BinObjectsNames) && !is_null($BinObjectsData)) { |
@@ -265,18 +265,18 @@ discard block |
||
265 | 265 | } |
266 | 266 | } |
267 | 267 | /** |
268 | - * return the extension of a filename. Internal use for a array_map callback (php<5.3 don't like lambda function) |
|
269 | - * |
|
270 | - */ |
|
268 | + * return the extension of a filename. Internal use for a array_map callback (php<5.3 don't like lambda function) |
|
269 | + * |
|
270 | + */ |
|
271 | 271 | private function getExtensionOnly($ThePath) |
272 | 272 | { |
273 | 273 | return pathinfo($ThePath, PATHINFO_EXTENSION); |
274 | 274 | } |
275 | 275 | |
276 | 276 | /** |
277 | - * retrieve Binaries Ribbon Objects |
|
278 | - * |
|
279 | - */ |
|
277 | + * retrieve Binaries Ribbon Objects |
|
278 | + * |
|
279 | + */ |
|
280 | 280 | public function getRibbonBinObjects($What = 'all') |
281 | 281 | { |
282 | 282 | $ReturnData = null; |
@@ -305,20 +305,20 @@ discard block |
||
305 | 305 | } |
306 | 306 | |
307 | 307 | /** |
308 | - * This workbook have a custom UI ? |
|
309 | - * |
|
310 | - * @return true|false |
|
311 | - */ |
|
308 | + * This workbook have a custom UI ? |
|
309 | + * |
|
310 | + * @return true|false |
|
311 | + */ |
|
312 | 312 | public function hasRibbon() |
313 | 313 | { |
314 | 314 | return !is_null($this->ribbonXMLData); |
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
318 | - * This workbook have additionnal object for the ribbon ? |
|
319 | - * |
|
320 | - * @return true|false |
|
321 | - */ |
|
318 | + * This workbook have additionnal object for the ribbon ? |
|
319 | + * |
|
320 | + * @return true|false |
|
321 | + */ |
|
322 | 322 | public function hasRibbonBinObjects() |
323 | 323 | { |
324 | 324 | return !is_null($this->ribbonBinObjects); |
@@ -353,9 +353,9 @@ discard block |
||
353 | 353 | return null; |
354 | 354 | } |
355 | 355 | |
356 | - /** |
|
357 | - * Create a new PhpSpreadsheet with one Worksheet |
|
358 | - */ |
|
356 | + /** |
|
357 | + * Create a new PhpSpreadsheet with one Worksheet |
|
358 | + */ |
|
359 | 359 | public function __construct() |
360 | 360 | { |
361 | 361 | $this->uniqueID = uniqid(); |
@@ -147,7 +147,7 @@ |
||
147 | 147 | /** |
148 | 148 | * Get parent. Only used for style supervisor |
149 | 149 | * |
150 | - * @return PhpSpreadsheet |
|
150 | + * @return Style |
|
151 | 151 | */ |
152 | 152 | public function getParent() |
153 | 153 | { |