1 | <?php |
||
22 | class Excel extends Fwolflib { |
||
|
|||
23 | |||
24 | /** |
||
25 | * Array of row in xml |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $aRow = array(); |
||
29 | |||
30 | /** |
||
31 | * Footer of excel xml |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $sFooter = "</Workbook>"; |
||
35 | |||
36 | /** |
||
37 | * Header of excel xml |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $sHeader = '<?xml version="1.0" encoding="utf-8"?> |
||
41 | <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" |
||
42 | xmlns:x="urn:schemas-microsoft-com:office:excel" |
||
43 | xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" |
||
44 | xmlns:html="http://www.w3.org/TR/REC-html40"> |
||
45 | '; |
||
46 | |||
47 | /** |
||
48 | * Title of sheet |
||
49 | * @var string |
||
50 | */ |
||
51 | public $sSheetTitle = 'Sheet1'; |
||
52 | |||
53 | |||
54 | /** |
||
55 | * Set a single row(add mode) |
||
56 | * |
||
57 | * @param array $ar 1-dimensional array |
||
58 | */ |
||
59 | protected function SetRow($ar) { |
||
83 | |||
84 | |||
85 | /** |
||
86 | * Set data rows, multi row, clean mode |
||
87 | * |
||
88 | * @param array $ar 2-dimensional array |
||
89 | */ |
||
90 | public function SetRows ($ar) { |
||
95 | |||
96 | |||
97 | /** |
||
98 | * Set the worksheet title |
||
99 | * |
||
100 | * Checks the string for not allowed characters (:\/?*), |
||
101 | * cuts it to maximum 31 characters and set the title. Damn |
||
102 | * why are not-allowed chars nowhere to be found? Windows |
||
103 | * help's no help... |
||
104 | * |
||
105 | * @param string $title |
||
106 | */ |
||
107 | public function SetSheetTitle($title) { |
||
118 | |||
119 | |||
120 | /** |
||
121 | * Output the excel file |
||
122 | * |
||
123 | * @param string $fn Filename without '.xls' |
||
124 | */ |
||
125 | public function Output($fn) { |
||
146 | |||
147 | } // end of class Excel |
||
148 | |||
162 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.