ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilExcelWriterAdapter Class Reference

Class ilExcelWriterAdapter. 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 ()
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Data Fields

 $workbook = null
 
 $format_bold = null
 
 $format_header = null
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs public More...
 
 setAdminTabs ()
 set admin tabs public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Detailed Description

Class ilExcelWriterAdapter.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 16 of file class.ilExcelWriterAdapter.php.

Member Function Documentation

◆ __initFormatBold()

ilExcelWriterAdapter::__initFormatBold ( )

Definition at line 77 of file class.ilExcelWriterAdapter.php.

Referenced by ilExcelWriterAdapter().

78  {
79  $this->format_bold =& $this->workbook->addFormat();
80  $this->format_bold->setBold();
81  }
+ Here is the caller graph for this function:

◆ __initFormatDate()

ilExcelWriterAdapter::__initFormatDate ( )

Definition at line 100 of file class.ilExcelWriterAdapter.php.

101  {
102  $this->format_date =& $this->workbook->addFormat();
103  $this->format_date->setNumFormat("YYYY-MM-DD hh:mm:ss");
104  }

◆ __initFormatDayTime()

ilExcelWriterAdapter::__initFormatDayTime ( )

Definition at line 106 of file class.ilExcelWriterAdapter.php.

107  {
108  $this->format_day_time =& $this->workbook->addFormat();
109  $this->format_day_time->setNumFormat("DD:hh:mm:ss");
110  }

◆ __initFormatHeader()

ilExcelWriterAdapter::__initFormatHeader ( )

Definition at line 82 of file class.ilExcelWriterAdapter.php.

Referenced by ilExcelWriterAdapter().

83  {
84  $this->format_header =& $this->workbook->addFormat();
85  $this->format_header->setBold();
86  $this->format_header->setTop(100);
87  $this->format_header->setColor('black');
88  $this->format_header->setPattern(1);
89  $this->format_header->setFgColor('silver');
90  }
+ Here is the caller graph for this function:

◆ __initFormatTitle()

ilExcelWriterAdapter::__initFormatTitle ( )

Definition at line 91 of file class.ilExcelWriterAdapter.php.

Referenced by ilExcelWriterAdapter().

92  {
93  $this->format_title =& $this->workbook->addFormat();
94  $this->format_title->setBold();
95  $this->format_title->setColor('black');
96  $this->format_title->setPattern(1);
97  $this->format_title->setSize(16);
98  $this->format_title->setAlign('center');
99  }
+ Here is the caller graph for this function:

◆ getFormatBold()

& ilExcelWriterAdapter::getFormatBold ( )

Definition at line 55 of file class.ilExcelWriterAdapter.php.

References $format_bold.

◆ getFormatDate()

& ilExcelWriterAdapter::getFormatDate ( )

Definition at line 67 of file class.ilExcelWriterAdapter.php.

68  {
69  return $this->format_date;
70  }

◆ getFormatDayTime()

& ilExcelWriterAdapter::getFormatDayTime ( )

Definition at line 71 of file class.ilExcelWriterAdapter.php.

72  {
73  return $this->format_day_time;
74  }

◆ getFormatHeader()

& ilExcelWriterAdapter::getFormatHeader ( )

Definition at line 59 of file class.ilExcelWriterAdapter.php.

References $format_header.

◆ getFormatTitle()

& ilExcelWriterAdapter::getFormatTitle ( )

Definition at line 63 of file class.ilExcelWriterAdapter.php.

64  {
65  return $this->format_title;
66  }

◆ getWorkbook()

& ilExcelWriterAdapter::getWorkbook ( )

Definition at line 50 of file class.ilExcelWriterAdapter.php.

References $workbook.

◆ ilExcelWriterAdapter()

ilExcelWriterAdapter::ilExcelWriterAdapter (   $a_filename,
  $a_send = true 
)

Definition at line 23 of file class.ilExcelWriterAdapter.php.

References ilObjectGUI\$ilias, ilObjectGUI\$lng, __initFormatBold(), __initFormatHeader(), and __initFormatTitle().

24  {
25  global $ilias, $lng;
26 
27  if($a_send)
28  {
29  $this->workbook =& new ilExcelWriterWrapper();
30  $this->workbook->send($a_filename);
31  }
32  else
33  {
34  $this->workbook =& new ilExcelWriterWrapper($a_filename);
35  }
36 
37  if(strlen($tmp = ini_get('upload_tmp_dir')))
38  {
39  $this->workbook->setTempDir($tmp);
40  }
41 
42  // to make UTF8 input work
43  $this->workbook->setVersion(8);
44 
45  $this->__initFormatBold();
46  $this->__initFormatHeader();
47  $this->__initFormatTitle();
48  }
Class ilExcelWriterWrapper.
+ Here is the call graph for this function:

Field Documentation

◆ $format_bold

ilExcelWriterAdapter::$format_bold = null

Definition at line 20 of file class.ilExcelWriterAdapter.php.

Referenced by getFormatBold().

◆ $format_header

ilExcelWriterAdapter::$format_header = null

Definition at line 21 of file class.ilExcelWriterAdapter.php.

Referenced by getFormatHeader().

◆ $workbook

ilExcelWriterAdapter::$workbook = null

Definition at line 18 of file class.ilExcelWriterAdapter.php.

Referenced by getWorkbook().


The documentation for this class was generated from the following file: