Class ilPaymentExcelWriterAdapter. More...
Inheritance diagram for ilExcelWriterAdapter:
Collaboration diagram for ilExcelWriterAdapter: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 | |
Class ilPaymentExcelWriterAdapter.
Definition at line 34 of file class.ilExcelWriterAdapter.php.
| ilExcelWriterAdapter::__initFormatBold | ( | ) |
Definition at line 97 of file class.ilExcelWriterAdapter.php.
Referenced by ilExcelWriterAdapter().
{
$this->format_bold =& $this->workbook->addFormat();
$this->format_bold->setBold();
}
Here is the caller graph for this function:| ilExcelWriterAdapter::__initFormatDate | ( | ) |
Definition at line 120 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 126 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 102 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');
}
Here is the caller graph for this function:| ilExcelWriterAdapter::__initFormatTitle | ( | ) |
Definition at line 111 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');
}
Here is the caller graph for this function:| & ilExcelWriterAdapter::getFormatBold | ( | ) |
Definition at line 75 of file class.ilExcelWriterAdapter.php.
{
return $this->format_bold;
}
| & ilExcelWriterAdapter::getFormatDate | ( | ) |
Definition at line 87 of file class.ilExcelWriterAdapter.php.
{
return $this->format_date;
}
| & ilExcelWriterAdapter::getFormatDayTime | ( | ) |
Definition at line 91 of file class.ilExcelWriterAdapter.php.
{
return $this->format_day_time;
}
| & ilExcelWriterAdapter::getFormatHeader | ( | ) |
Definition at line 79 of file class.ilExcelWriterAdapter.php.
{
return $this->format_header;
}
| & ilExcelWriterAdapter::getFormatTitle | ( | ) |
Definition at line 83 of file class.ilExcelWriterAdapter.php.
{
return $this->format_title;
}
| & ilExcelWriterAdapter::getWorkbook | ( | ) |
Definition at line 70 of file class.ilExcelWriterAdapter.php.
{
return $this->workbook;
}
| ilExcelWriterAdapter::ilExcelWriterAdapter | ( | $ | a_filename, | |
| $ | a_send = true | |||
| ) |
Definition at line 41 of file class.ilExcelWriterAdapter.php.
References ilObjectGUI::$ilias, ilObjectGUI::$lng, __initFormatBold(), __initFormatHeader(), and __initFormatTitle().
Referenced by ilPaymentExcelWriterAdapter::ilPaymentExcelWriterAdapter().
{
global $ilias, $lng;
$result = @include_once 'Spreadsheet/Excel/Writer.php';
if (!$result)
{
$ilias->raiseError($lng->txt("error_no_excel_support"), $ilias->error_obj->WARNING);
}
if($a_send)
{
$this->workbook =& new Spreadsheet_Excel_Writer();
$this->workbook->send($a_filename);
}
else
{
$this->workbook =& new Spreadsheet_Excel_Writer($a_filename);
}
if(strlen($tmp = ini_get('upload_tmp_dir')))
{
$this->workbook->setTempDir($tmp);
}
$this->__initFormatBold();
$this->__initFormatHeader();
$this->__initFormatTitle();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcelWriterAdapter::$format_bold = null |
Definition at line 38 of file class.ilExcelWriterAdapter.php.
| ilExcelWriterAdapter::$format_header = null |
Definition at line 39 of file class.ilExcelWriterAdapter.php.
| ilExcelWriterAdapter::$workbook = null |
Definition at line 36 of file class.ilExcelWriterAdapter.php.
1.7.1