ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilExcelAdapter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 define("CELL_FORMAT_NONE", "0");
5 define("CELL_FORMAT_TITLE", "1");
6 define("CELL_FORMAT_HEADER", "2");
7 define("CELL_FORMAT_BOLD", "3");
8 define("CELL_FORMAT_PERCENT", "4");
9 define("CELL_FORMAT_DATE", "5");
10 define("CELL_FORMAT_DATETIME", "6");
11 define("CELL_FORMAT_MINUTES", "7");
12 define("CELL_FORMAT_CENTER", "8");
13 
21 abstract class ilExcelAdapter
22 {
23  abstract public function save();
24  abstract public function deliver($outputfilename);
25  abstract public function getWorksheetCount();
26  abstract public function setActiveWorksheet($index = 0);
27  abstract public function setWorksheetTitle($title);
28  abstract public function addWorksheet($title = "");
29  abstract public function setCellValue($row, $col, $value, $format = CELL_FORMAT_NONE);
30  abstract public function getFileExtension();
31  abstract public function setColumnWidth($columnindex, $width);
32 }