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

Bibliographic Administration Settings. More...

+ Collaboration diagram for ilObjBibliographicAdminLibrariesGUI:

Public Member Functions

 __construct ($parent_gui)
 Constructor.
 executeCommand ()
 Execute command.
 add ()
 add library
 delete ()
 delete library
 cancel ()
 cancel
 update ()
 save changes in library
 create ()
 create library
 edit ()
 edit library

Protected Member Functions

 initTable ()
 Init Table with library entries.

Protected Attributes

 $parent_gui
 $ctrl
 $lng

Detailed Description

Bibliographic Administration Settings.

Author
Theodor Truffer tt@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Martin Studer ms@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 17 of file class.ilObjBibliographicAdminLibrariesGUI.php.

Constructor & Destructor Documentation

ilObjBibliographicAdminLibrariesGUI::__construct (   $parent_gui)

Constructor.

Parameters
ilObjBibliographicAdminGUI$parent_gui

Definition at line 38 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $ilCtrl, $lng, and $parent_gui.

{
global $lng, $ilCtrl;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
$this->parent_gui = $parent_gui;
}

Member Function Documentation

ilObjBibliographicAdminLibrariesGUI::add ( )

add library

Definition at line 130 of file class.ilObjBibliographicAdminLibrariesGUI.php.

Referenced by executeCommand().

{
$this->parent_gui->tpl->setContent($form->getHTML());
$this->parent_gui->tabs_gui->setTabActive('settings');
}

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesGUI::cancel ( )

cancel

Definition at line 150 of file class.ilObjBibliographicAdminLibrariesGUI.php.

Referenced by executeCommand().

{
$this->ctrl->redirect($this, 'view');
}

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesGUI::create ( )

create library

Definition at line 172 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References ilUtil\sendSuccess().

Referenced by executeCommand().

{
$form->setValuesByPost();
if ($form->saveObject()) {
ilUtil::sendSuccess($this->lng->txt("settings_saved"), true);
$this->ctrl->redirect($this, 'view');
}
$this->parent_gui->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesGUI::delete ( )

delete library

Definition at line 140 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $_REQUEST, and $ilDB.

{
global $ilDB;
$ilDB->manipulate("DELETE FROM il_bibl_settings WHERE id = " . $ilDB->quote($_REQUEST["lib_id"], "integer"));
$this->ctrl->redirect($this, 'view');
}
ilObjBibliographicAdminLibrariesGUI::edit ( )

edit library

Definition at line 186 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $_REQUEST.

Referenced by executeCommand().

{
$this->ctrl->saveParameter($this, 'lib_id');
$this->parent_gui->tpl->setContent($form->getHTML());
}

+ Here is the caller graph for this function:

ilObjBibliographicAdminLibrariesGUI::executeCommand ( )

Execute command.

public

Definition at line 52 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $cmd, $ilCtrl, add(), cancel(), create(), edit(), and update().

{
global $ilCtrl;
$cmd = $ilCtrl->getCmd();
switch ($cmd) {
case 'view':
$this->view();
break;
case 'add':
$this->add();
break;
case 'edit':
$this->edit();
break;
case 'delete':
$this->delete();
break;
case 'create':
$this->create();
break;
case 'update':
$this->update();
break;
case 'cancel':
$this->cancel();
break;
}
}

+ Here is the call graph for this function:

ilObjBibliographicAdminLibrariesGUI::initTable ( )
protected

Init Table with library entries.

protected

Returns
ilObjBibliographicAdminTableGUI

Definition at line 109 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $result, and ilBibliographicSetting\getAll().

{
$table = new ilObjBibliographicAdminTableGUI($this, 'library');
$result = array();
foreach ($settings as $set) {
$result[] = array(
"id" => $set->getId(),
"name" => $set->getName(),
"url" => $set->getUrl(),
"img" => $set->getImg()
);
}
$table->setData($result);
return $table;
}

+ Here is the call graph for this function:

ilObjBibliographicAdminLibrariesGUI::update ( )

save changes in library

Definition at line 158 of file class.ilObjBibliographicAdminLibrariesGUI.php.

References $_REQUEST, and ilUtil\sendSuccess().

Referenced by executeCommand().

{
$form->setValuesByPost();
if ($form->saveObject()) {
ilUtil::sendSuccess($this->lng->txt("settings_saved"), true);
$this->ctrl->redirect($this, 'view');
}
$this->parent_gui->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilObjBibliographicAdminLibrariesGUI::$ctrl
protected
ilObjBibliographicAdminLibrariesGUI::$lng
protected

Definition at line 30 of file class.ilObjBibliographicAdminLibrariesGUI.php.

Referenced by __construct().

ilObjBibliographicAdminLibrariesGUI::$parent_gui
protected

Definition at line 22 of file class.ilObjBibliographicAdminLibrariesGUI.php.

Referenced by __construct().


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