1 | <?php |
||
8 | class ExcelHelper |
||
9 | { |
||
10 | /** |
||
11 | * @link http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx |
||
12 | * XFE1048577 |
||
13 | */ |
||
14 | const EXCEL_MAX_ROW = 1048576; |
||
15 | const EXCEL_MAX_RANGE = 2147483647; |
||
16 | const EXCEL_MAX_COL = 16384; |
||
17 | |||
18 | /** |
||
19 | * @param string $dateInput |
||
20 | * |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public static function convertDateTime($dateInput) |
||
63 | |||
64 | /** |
||
65 | * @param $val |
||
66 | * |
||
67 | * @return mixed |
||
68 | */ |
||
69 | public static function xmlspecialchars($val) |
||
73 | |||
74 | /** |
||
75 | * @param int $rowNumber |
||
76 | * @param int $columnNumber |
||
77 | * |
||
78 | * @return string Cell label/coordinates (A1, C3, AA42) |
||
79 | */ |
||
80 | public static function xlsCell($rowNumber, $columnNumber) |
||
89 | |||
90 | /** |
||
91 | * @link https://msdn.microsoft.com/ru-RU/library/aa365247%28VS.85%29.aspx |
||
92 | * |
||
93 | * @param string $filename |
||
94 | * |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public static function checkFilename($filename) |
||
106 | |||
107 | /** |
||
108 | * @todo check escaping |
||
109 | * |
||
110 | * @param string $cellFormat |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public static function escapeCellFormat($cellFormat) |
||
143 | } |
||
144 |