Public Member Functions | |
ilExcelWriterAdapter ($a_filename, $a_send=true) | |
& | getWorkbook () |
& | getFormatBold () |
& | getFormatHeader () |
& | getFormatTitle () |
& | getFormatDate () |
& | getFormatDayTime () |
__initFormatBold () | |
__initFormatHeader () | |
__initFormatTitle () | |
__initFormatDate () | |
__initFormatDayTime () | |
Data Fields | |
$workbook = null | |
$format_bold = null | |
$format_header = null |
Definition at line 35 of file class.ilExcelWriterAdapter.php.
ilExcelWriterAdapter::__initFormatBold | ( | ) |
Definition at line 90 of file class.ilExcelWriterAdapter.php.
Referenced by ilExcelWriterAdapter().
{ $this->format_bold =& $this->workbook->addFormat(); $this->format_bold->setBold(); }
ilExcelWriterAdapter::__initFormatDate | ( | ) |
Definition at line 113 of file class.ilExcelWriterAdapter.php.
{
$this->format_date =& $this->workbook->addFormat();
$this->format_date->setNumFormat("YYYY-MM-DD hh:mm:ss");
}
ilExcelWriterAdapter::__initFormatDayTime | ( | ) |
Definition at line 119 of file class.ilExcelWriterAdapter.php.
{
$this->format_day_time =& $this->workbook->addFormat();
$this->format_day_time->setNumFormat("DD:hh:mm:ss");
}
ilExcelWriterAdapter::__initFormatHeader | ( | ) |
Definition at line 95 of file class.ilExcelWriterAdapter.php.
Referenced by ilExcelWriterAdapter().
{ $this->format_header =& $this->workbook->addFormat(); $this->format_header->setBold(); $this->format_header->setTop(100); $this->format_header->setColor('black'); $this->format_header->setPattern(1); $this->format_header->setFgColor('silver'); }
ilExcelWriterAdapter::__initFormatTitle | ( | ) |
Definition at line 104 of file class.ilExcelWriterAdapter.php.
Referenced by ilExcelWriterAdapter().
{ $this->format_title =& $this->workbook->addFormat(); $this->format_title->setBold(); $this->format_title->setColor('black'); $this->format_title->setPattern(1); $this->format_title->setSize(16); $this->format_title->setAlign('center'); }
& ilExcelWriterAdapter::getFormatBold | ( | ) |
Definition at line 68 of file class.ilExcelWriterAdapter.php.
{
return $this->format_bold;
}
& ilExcelWriterAdapter::getFormatDate | ( | ) |
Definition at line 80 of file class.ilExcelWriterAdapter.php.
{
return $this->format_date;
}
& ilExcelWriterAdapter::getFormatDayTime | ( | ) |
Definition at line 84 of file class.ilExcelWriterAdapter.php.
{
return $this->format_day_time;
}
& ilExcelWriterAdapter::getFormatHeader | ( | ) |
Definition at line 72 of file class.ilExcelWriterAdapter.php.
{
return $this->format_header;
}
& ilExcelWriterAdapter::getFormatTitle | ( | ) |
Definition at line 76 of file class.ilExcelWriterAdapter.php.
{
return $this->format_title;
}
& ilExcelWriterAdapter::getWorkbook | ( | ) |
Definition at line 63 of file class.ilExcelWriterAdapter.php.
{
return $this->workbook;
}
ilExcelWriterAdapter::ilExcelWriterAdapter | ( | $ | a_filename, | |
$ | a_send = true | |||
) |
Definition at line 42 of file class.ilExcelWriterAdapter.php.
References $result, __initFormatBold(), __initFormatHeader(), and __initFormatTitle().
Referenced by ilPaymentExcelWriterAdapter::ilPaymentExcelWriterAdapter().
{ $result = @include_once 'Spreadsheet/Excel/Writer.php'; if (!$result) { include_once './classes/Spreadsheet/Excel/Writer.php'; } if($a_send) { $this->workbook =& new Spreadsheet_Excel_Writer(); $this->workbook->send($a_filename); } else { $this->workbook =& new Spreadsheet_Excel_Writer($a_filename); } $this->__initFormatBold(); $this->__initFormatHeader(); $this->__initFormatTitle(); }
ilExcelWriterAdapter::$format_bold = null |
Definition at line 39 of file class.ilExcelWriterAdapter.php.
ilExcelWriterAdapter::$format_header = null |
Definition at line 40 of file class.ilExcelWriterAdapter.php.
ilExcelWriterAdapter::$workbook = null |
Definition at line 37 of file class.ilExcelWriterAdapter.php.