ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjBibliographicAdminLibrariesFormGUI Class Reference

Bibliographic Settings Form. More...

+ Inheritance diagram for ilObjBibliographicAdminLibrariesFormGUI:
+ Collaboration diagram for ilObjBibliographicAdminLibrariesFormGUI:

Public Member Functions

 __construct ($parent_gui, $bibl_setting)
 Constructor.
 saveObject ()
- Public Member Functions inherited from ilPropertyFormGUI
 ilPropertyFormGUI ()
 Constructor.
executeCommand ()
 Execute command.
 setTableWidth ($a_width)
 Set table width.
 getTableWidth ()
 get table width
 setMode ($a_mode)
 Set Mode ('std', 'subform').
 getMode ()
 Get Mode ('std', 'subform').
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setTitleIcon ($a_titleicon)
 Set TitleIcon.
 getTitleIcon ()
 Get TitleIcon.
 setDescription ($a_val)
 Set description.
 getDescription ()
 Get description.
 setTopAnchor ($a_val)
 Set top anchor.
 getTopAnchor ()
 Get top anchor.
 setShowTopButtons ($a_val)
 Get show top buttons.
 getShowTopButtons ()
 Set show top buttons.
 addItem ($a_item)
 Add Item (Property, SectionHeader).
 removeItemByPostVar ($a_post_var)
 Remove Item.
 getItemByPostVar ($a_post_var)
 Get Item by POST variable.
 setItems ($a_items)
 Set Items.
 getItems ()
 Get Items.
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively
 setDisableStandardMessage ($a_val)
 Set disable standard message.
 getDisableStandardMessage ()
 Get disable standard message.
 getHideLabels ()
 Get a value indicating whether the labels should be hidden or not.
 setHideLabels ($a_value=true)
 Set a value indicating whether the labels should be hidden or not.
 setValuesByArray ($a_values, $a_restrict_to_value_keys=false)
 Set form values from an array.
 setValuesByPost ()
 Set form values from POST values.
 checkInput ()
 Check Post Input.
 getInput ($a_post_var, $ensureValidation=true)
 Returns the value of a HTTP-POST variable, identified by the passed id.
 addCustomProperty ($a_title, $a_html, $a_info="", $a_alert="", $a_required=false)
 Add a custom property.
 addCommandButton ($a_cmd, $a_text)
 Add Command button.
 clearCommandButtons ()
 Remove all command buttons.
 getContent ()
 Get Content.
 insertItem ($item, $a_sub_item=false)
 getHTML ()
 Get HTML.
 getFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Get file upload data.
 hasFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Was any file uploaded?
 moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null)
 Move upload to target directory.
- Public Member Functions inherited from ilFormGUI
 ilFormGUI ()
 Constructor.
 setFormAction ($a_formaction)
 Set FormAction.
 getFormAction ()
 Get FormAction.
 setTarget ($a_target)
 Set Target.
 getTarget ()
 Get Target.
 setMultipart ($a_multipart)
 Set Enctype Multipart/Formdata true/false.
 getMultipart ()
 Get Enctype Multipart/Formdata true/false.
 setId ($a_id)
 Set Id.
 getId ()
 Get Id.
 setName ($a_name)
 Set Name.
 getName ()
 Get Name.
 setKeepOpen ($a_keepopen)
 Set Keep Form Tag Open.
 getKeepOpen ()
 Get Keep Form Tag Open.
 setOpenTag ($a_open)
 Enable/Disable Open Form Tag.
 getOpenTag ()
 Get Open Form Tag Enabled.
 setCloseTag ($a_val)
 Set close tag.
 getCloseTag ()
 Get close tag.
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission.
 getPreventDoubleSubmission ()
 Get prevent double submission.

Protected Attributes

 $bibl_setting
 $parent_gui
 $ctrl
 $lng
 $action
- Protected Attributes inherited from ilPropertyFormGUI
 $mode = "std"
 $check_input_called = false
 $disable_standard_message = false
 $top_anchor = "il_form_top"
 $titleicon = false
 $description = ""
 $tbl_width = false
 $show_top_buttons = true
 $reloaded_files
 $hide_labels = false
- Protected Attributes inherited from ilFormGUI
 $formaction
 $multipart = false
 $keepopen = false
 $opentag = true
 $id
 $name
 $prevent_double_submission = false

Private Member Functions

 initForm ()
 Init settings property form.
 fillForm ()

Additional Inherited Members

- Protected Member Functions inherited from ilPropertyFormGUI
 keepFileUpload ($a_hash, $a_field, $a_tmp_name, $a_name, $a_type, $a_index=null, $a_sub_index=null)
 Import upload into temp directory.
 rebuildUploadedFiles ()
 try to rebuild files

Detailed Description

Constructor & Destructor Documentation

ilObjBibliographicAdminLibrariesFormGUI::__construct (   $parent_gui,
  $bibl_setting 
)

Constructor.

Definition at line 43 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

References $bibl_setting, $ilCtrl, $lng, $parent_gui, and initForm().

{
global $ilCtrl, $lng;
$this->ctrl = $ilCtrl;
$this->lng = $lng;
$this->parent_gui = $parent_gui;
$this->bibl_setting = $bibl_setting;
if ($bibl_setting->getId() > 0) {
$this->action = 'update';
} else {
$this->action = 'create';
}
$this->ctrl->saveParameter($parent_gui, 'lib_id');
$this->initForm();
}

+ Here is the call graph for this function:

Member Function Documentation

ilObjBibliographicAdminLibrariesFormGUI::fillForm ( )
private

Definition at line 95 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

References ilPropertyFormGUI\setValuesByArray().

Referenced by initForm().

{
$this->setValuesByArray(array(
'name' => $this->bibl_setting->getName(),
'url' => $this->bibl_setting->getUrl(),
'img' => $this->bibl_setting->getImg(),
'show_in_list' => $this->bibl_setting->getShowInList()
));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesFormGUI::initForm ( )
private

Init settings property form.

private

Definition at line 64 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

References $img, ilFormGUI\$name, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), fillForm(), ilFormGUI\setFormAction(), ilFormPropertyGUI\setRequired(), ilPropertyFormGUI\setTitle(), and ilCheckboxInputGUI\setValue().

Referenced by __construct().

{
$this->setFormAction($this->ctrl->getFormAction($this->parent_gui));
$name = new ilTextInputGUI($this->lng->txt("bibl_library_name"), 'name');
$name->setRequired(true);
$name->setValue('');
$this->addItem($name);
$url = new ilTextInputGUI($this->lng->txt("bibl_library_url"), 'url');
$url->setRequired(true);
$url->setValue('');
$this->addItem($url);
$img = new ilTextInputGUI($this->lng->txt("bibl_library_img"), 'img');
$img->setValue('');
$this->addItem($img);
$show_in_list = new ilCheckboxInputGUI($this->lng->txt("bibl_library_show_in_list"), 'show_in_list');
$show_in_list->setValue(1);
$this->addItem($show_in_list);
switch ($this->action) {
case 'create':
$this->setTitle($this->lng->txt("bibl_settings_new"));
$this->addCommandButton('create', $this->lng->txt('save'));
break;
case 'update':
$this->addCommandButton('update', $this->lng->txt('save'));
$this->fillForm();
$this->setTitle($this->lng->txt("bibl_settings_edit"));
break;
}
$this->addCommandButton('cancel', $this->lng->txt("cancel"));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesFormGUI::saveObject ( )

Definition at line 105 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

References ilPropertyFormGUI\checkInput(), and ilPropertyFormGUI\getInput().

{
if (! $this->checkInput()) {
return false;
}
$this->bibl_setting->setName($this->getInput("name"));
$this->bibl_setting->setUrl($this->getInput("url"));
$this->bibl_setting->setImg($this->getInput("img"));
$this->bibl_setting->setShowInList($this->getInput("show_in_list"));
switch ($this->action) {
case 'create':
$this->bibl_setting->create();
break;
case 'update':
$this->bibl_setting->update();
break;
}
return true;
}

+ Here is the call graph for this function:

Field Documentation

ilObjBibliographicAdminLibrariesFormGUI::$action
protected
ilObjBibliographicAdminLibrariesFormGUI::$bibl_setting
protected

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

Referenced by __construct().

ilObjBibliographicAdminLibrariesFormGUI::$ctrl
protected
ilObjBibliographicAdminLibrariesFormGUI::$lng
protected

Definition at line 32 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

Referenced by __construct().

ilObjBibliographicAdminLibrariesFormGUI::$parent_gui
protected

Definition at line 24 of file class.ilObjBibliographicAdminLibrariesFormGUI.php.

Referenced by __construct().


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