PhpSpreadsheet/samples/ConditionalFormatting
MarkBaker 9ca9d741fe Resolve saving cell references, string literals and formula as values for conditional formatting rules in the Xls file save
The code is ugly as sin; but it works... I'll do some refactoring and cleaning later (once I've had some sleep, because I'm stupidly still working on this at 3am)

The main remaining issue is formulae that can't be parsed in BIFF8 files; e.g. formulae that use functions that aren't available. In this case, all CF in that worksheet is corrupted, and the file errors when opened, so it is a serious issue. The ISODD()/ISEVEN example in 07_Expression_Comparisons.php uses these, so I've temporarily commented out setting that CF range until I've solved that problem. There are other limitations listed in the BIFF documentation; but they're harder to detect.
I've also left a couple of debug statements in the code to display these formula errors: I'll remove them once I've resolved the issue.
2022-03-13 03:05:57 +01:00
..
01_Basic_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
02_Text_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
03_Blank_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
04_Error_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
05_Date_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
06_Duplicate_Comparisons.php Ensure that some CF style is displayed in Xls samples, even while background colour is still a problem, so that it's easy to verify that the rule is beng written correctly 2022-03-12 20:54:48 +01:00
07_Expression_Comparisons.php Resolve saving cell references, string literals and formula as values for conditional formatting rules in the Xls file save 2022-03-13 03:05:57 +01:00