ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjBibliographicGUI Class Reference

Class ilObjBibliographicGUI. More...

+ Inheritance diagram for ilObjBibliographicGUI:
+ Collaboration diagram for ilObjBibliographicGUI:

Public Member Functions

 __construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
 
 getStandardCmd ()
 getStandardCmd More...
 
 getType ()
 getType More...
 
 executeCommand ()
 executeCommand More...
 
 infoScreen ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 infoScreenForward ()
 show information screen More...
 
 addLocatorItems ()
 
 save ()
 
 initEditForm ()
 
 getEditFormCustomValues (array &$a_values)
 
 render ()
 
 showContent ()
 shows the overview page with all entries in a table More...
 
 sendFile ()
 provide file as a download More...
 
 showDetails ()
 
 view ()
 
 updateCustom (ilPropertyFormGUI $a_form)
 updateSettings More...
 
 toggleNotification ()
 
 addNews ($obj_id, $change='created')
 
 addToDeskObject ()
 Add desktop item. More...
 
 removeFromDeskObject ()
 Remove from desktop. More...
 
 addToDesk ()
 Add desktop item. More...
 
 removeFromDesk ()
 Remove from desktop. More...
 
- Public Member Functions inherited from ilObject2GUI
 __construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
 Constructor. More...
 
 executeCommand ()
 execute command More...
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. More...
 
 setCreationMode ($a_mode=true)
 
 getCreationMode ()
 
 prepareOutput ($a_show_subobjects=true)
 
 isVisible ($a_ref_id, $a_type)
 
 trash ()
 
 undelete ()
 
 cancelDelete ()
 
 removeFromSystem ()
 
 cloneAll ()
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 Deleted in ilObject. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 importFile ()
 Import. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
- Public Member Functions inherited from ilObjectGUI
 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...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 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 ()
 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...
 
 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...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 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...
 

Static Public Member Functions

static _goto ($a_target)
 _goto Deep link More...
 
- Static Public Member Functions inherited from ilObject2GUI
static handleAfterSaveCallback (ilObject $a_obj, $a_callback_ref_id)
 After creation callback. More...
 
- 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...
 

Data Fields

const P_ENTRY_ID = 'entry_id'
 
const CMD_SHOW_CONTENT = 'showContent'
 
const CMD_SEND_FILE = "sendFile"
 
const TAB_CONTENT = "content"
 
const CMD_VIEW = "view"
 
const TAB_EXPORT = "export"
 
const TAB_ID_RECORDS = "id_records"
 
const TAB_ID_PERMISSIONS = "id_permissions"
 
const TAB_ID_INFO = "id_info"
 
const CMD_SHOW_DETAILS = "showDetails"
 
const CMD_EDIT = "edit"
 
- Data Fields inherited from ilObject2GUI
 $tree
 
const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $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
 

Protected Member Functions

 initCreationForms ($a_new_type)
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 
- Protected Member Functions inherited from ilObject2GUI
 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 Get access handler. More...
 
 setLocator ()
 set Locator More...
 
 deleteConfirmation ()
 Display delete confirmation form (workspace specific) More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) More...
 
 setTitleAndDescription ()
 
 showUpperIcon ()
 
 omitLocator ($a_omit=true)
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 
 setTargetFrame ($a_cmd, $a_target_frame)
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 
 showPossibleSubObjects ()
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 
 fillCloneSearchTemplate ($a_tpl_varname, $a_type)
 
 searchCloneSource ()
 
 buildCloneSelect ($existing_objs)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation ($a_cmd, $a_location="")
 Deprecated functions. More...
 
 setReturnLocation ($a_cmd, $a_location)
 
 showActions ()
 
 getTabs ()
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
 Check permission. More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. More...
 
 getPermanentLinkWidget ($a_append=null, $a_center=false)
 
 handleAutoRating (ilObject $a_new_obj)
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 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...
 
 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, $a_catch_errors=true)
 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...
 
 getTabs ()
 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 (ilColumnGUI $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...
 

Protected Attributes

 $bibl_obj
 
 $cmd = self::CMD_SHOW_CONTENT
 
- Protected Attributes inherited from ilObject2GUI
 $object_id
 
 $node_id
 
 $creation_forms = array()
 
 $id_type = array()
 
 $parent_id
 
 $access_handler
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $rbacsystem
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Private Member Functions

 handleNonAccess ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjBibliographicGUI::__construct (   $a_id = 0,
  $a_id_type = self::REPOSITORY_NODE_ID,
  $a_parent_node_id = 0 
)
Parameters
int$a_id
int$a_id_type
int$a_parent_node_id

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

References $DIC, and ilObjectGUI\$object.

51  {
52  global $DIC;
53  $this->lng = $DIC['lng'];
54  parent::__construct($a_id, $a_id_type, $a_parent_node_id);
55  $this->lng->loadLanguageModule('bibl');
56  if ($a_id > 0) {
57  $this->bibl_obj = $this->object;
58  }
59  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ _goto()

static ilObjBibliographicGUI::_goto (   $a_target)
static

_goto Deep link

Parameters
string$a_target

Definition at line 208 of file class.ilObjBibliographicGUI.php.

References $DIC, $id, array, and P_ENTRY_ID.

209  {
210  global $DIC;
211 
212  $id = explode("_", $a_target);
213  $DIC['ilCtrl']->setTargetScript("ilias.php");
214  $DIC['ilCtrl']->initBaseClass("ilRepositoryGUI");
215  $DIC['ilCtrl']->setParameterByClass("ilobjbibliographicgui", "ref_id", $id[0]);
216  // Detail-View
217  if ($id[1]) {
218  $DIC->ctrl()
219  ->setParameterByClass(ilObjBibliographicGUI::class, ilObjBibliographicGUI::P_ENTRY_ID, $id[1]);
220  $DIC->ctrl()->redirectByClass(
221  array(
222  ilRepositoryGUI::class,
223  ilObjBibliographicGUI::class,
224  ),
225  self::CMD_SHOW_DETAILS
226  );
227  } else {
228  $DIC->ctrl()->redirectByClass(
229  array(
230  ilRepositoryGUI::class,
231  ilObjBibliographicGUI::class,
232  ),
233  self::CMD_VIEW
234  );
235  }
236  }
global $DIC
Definition: saml.php:7
if(!array_key_exists('StateId', $_REQUEST)) $id
Create styles array
The data for the language used.

◆ addLocatorItems()

ilObjBibliographicGUI::addLocatorItems ( )

Definition at line 192 of file class.ilObjBibliographicGUI.php.

References $DIC, ilObject2GUI\$node_id, and object.

193  {
194  global $DIC;
195  $ilLocator = $DIC['ilLocator'];
196  if (is_object($this->object)) {
197  $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ""), "", $this->node_id);
198  }
199  }
global $DIC
Definition: saml.php:7
Create new PHPExcel object
obj_idprivate

◆ addNews()

ilObjBibliographicGUI::addNews (   $obj_id,
  $change = 'created' 
)
Parameters
string$change

Definition at line 510 of file class.ilObjBibliographicGUI.php.

References $DIC, $ilUser, ilObjectGUI\$lng, ilObjectGUI\$obj_id, getType(), NEWS_NOTICE, and NEWS_USERS.

Referenced by save(), and updateCustom().

511  {
512  global $DIC;
513  $lng = $DIC['lng'];
514  $ilUser = $DIC['ilUser'];
515 
516  $ilNewsItem = new ilNewsItem();
517  $ilNewsItem->setTitle($lng->txt('news_title_' . $change));
518  $ilNewsItem->setPriority(NEWS_NOTICE);
519  $ilNewsItem->setContext($obj_id, $this->getType());
520  $ilNewsItem->setUserId($ilUser->getId());
521  $ilNewsItem->setVisibility(NEWS_USERS);
522  $ilNewsItem->setContentTextIsLangVar(false);
523  $ilNewsItem->create();
524  }
global $DIC
Definition: saml.php:7
const NEWS_NOTICE
$ilUser
Definition: imgupload.php:18
const NEWS_USERS
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToDesk()

ilObjBibliographicGUI::addToDesk ( )

Add desktop item.

Alias for addToDeskObject.

public

Definition at line 560 of file class.ilObjBibliographicGUI.php.

References addToDeskObject().

561  {
562  $this->addToDeskObject();
563  }
+ Here is the call graph for this function:

◆ addToDeskObject()

ilObjBibliographicGUI::addToDeskObject ( )

Add desktop item.

public

Implements ilDesktopItemHandling.

Definition at line 532 of file class.ilObjBibliographicGUI.php.

References ilDesktopItemGUI\addToDesktop(), and ilUtil\sendSuccess().

Referenced by addToDesk().

533  {
534  include_once './Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
536  ilUtil::sendSuccess($this->lng->txt("added_to_desktop"), true);
537  $this->ctrl->redirect($this, self::CMD_VIEW);
538  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static addToDesktop()
Add desktop item public.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjBibliographicGUI::executeCommand ( )

executeCommand

Definition at line 87 of file class.ilObjBibliographicGUI.php.

References $DIC, $ilCtrl, ilObjectGUI\$tpl, ilObjectGUI\addHeaderAction(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getStandardCmd(), handleNonAccess(), infoScreenForward(), object, and ilObject2GUI\prepareOutput().

88  {
89  global $DIC;
90  $ilCtrl = $DIC['ilCtrl'];
91  $ilTabs = $DIC['ilTabs'];
92  $ilNavigationHistory = $DIC['ilNavigationHistory'];
93  $tpl = $DIC['tpl'];
94 
95  // Navigation History
96  $link = $ilCtrl->getLinkTarget($this, $this->getStandardCmd());
97  if ($this->object != null) {
98  $ilNavigationHistory->addItem($this->object->getRefId(), $link, "bibl");
99  $this->addHeaderAction();
100  }
101 
102  // general Access Check, especially for single entries not matching the object
103  if ($this->object instanceof ilObjBibliographic && !$DIC->access()->checkAccess('visible', "", $this->object->getRefId())) {
104  $this->handleNonAccess();
105  }
106 
107  $next_class = $ilCtrl->getNextClass($this);
108  $this->cmd = $ilCtrl->getCmd();
109  switch ($next_class) {
110  case "ilinfoscreengui":
111  $this->prepareOutput();
112  $ilTabs->activateTab(self::TAB_ID_INFO);
113  $this->infoScreenForward();
114  break;
115  case "ilcommonactiondispatchergui":
116  include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
118  $this->ctrl->forwardCommand($gui);
119  break;
120  case "ilpermissiongui":
121  $this->prepareOutput();
122  $ilTabs->activateTab(self::TAB_ID_PERMISSIONS);
123  include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
124  $perm_gui = new ilPermissionGUI($this);
125  $this->ctrl->forwardCommand($perm_gui);
126  break;
127  case "ilobjectcopygui":
128  include_once "./Services/Object/classes/class.ilObjectCopyGUI.php";
129  $cp = new ilObjectCopyGUI($this);
130  $cp->setType('bibl');
131  $tpl->getStandardTemplate();
132  $this->ctrl->forwardCommand($cp);
133  break;
134  case "ilobjfilegui":
135  $this->prepareOutput();
136  $ilTabs->setTabActive(self::TAB_ID_RECORDS);
137  include_once("./Modules/File/classes/class.ilObjFile.php");
138  $file_gui = new ilObjFile($this);
139  $this->ctrl->forwardCommand($file_gui);
140  break;
141  case "ilexportgui":
142  $this->prepareOutput();
143  $ilTabs->setTabActive(self::TAB_EXPORT);
144  $exp_gui = new ilExportGUI($this);
145  $exp_gui->addFormat("xml");
146  $this->ctrl->forwardCommand($exp_gui);
147  break;
148  default:
149  return parent::executeCommand();
150  }
151 
152  return true;
153  }
infoScreenForward()
show information screen
GUI class for the workflow of copying objects.
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
Export User Interface Class.
Create new PHPExcel object
obj_idprivate
prepareOutput($a_show_subobjects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilObjBibliographic.
addHeaderAction()
Add header action menu.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ getEditFormCustomValues()

ilObjBibliographicGUI::getEditFormCustomValues ( array $a_values)
Parameters
array$a_values
Returns
array|void

Definition at line 371 of file class.ilObjBibliographicGUI.php.

372  {
373  $a_values["is_online"] = $this->object->getOnline();
374 
375  return $a_values;
376  }

◆ getStandardCmd()

ilObjBibliographicGUI::getStandardCmd ( )

getStandardCmd

Returns
String

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

Referenced by executeCommand().

68  {
69  return self::CMD_VIEW;
70  }
+ Here is the caller graph for this function:

◆ getType()

ilObjBibliographicGUI::getType ( )

getType

Returns
String

Definition at line 78 of file class.ilObjBibliographicGUI.php.

Referenced by addNews(), and save().

79  {
80  return "bibl";
81  }
+ Here is the caller graph for this function:

◆ handleNonAccess()

ilObjBibliographicGUI::handleNonAccess ( )
private

Definition at line 590 of file class.ilObjBibliographicGUI.php.

References $_GET, $DIC, ilObjectGUI\_gotoRepositoryRoot(), and ilUtil\sendFailure().

Referenced by executeCommand(), sendFile(), showContent(), showDetails(), and updateCustom().

591  {
592  global $DIC;
593 
594  unset($_GET);
595  ilUtil::sendFailure($DIC->language()->txt("no_permission"), true);
597  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoScreen()

ilObjBibliographicGUI::infoScreen ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 161 of file class.ilObjBibliographicGUI.php.

References infoScreenForward().

162  {
163  $this->ctrl->setCmd("showSummary");
164  $this->ctrl->setCmdClass("ilinfoscreengui");
165  $this->infoScreenForward();
166  }
infoScreenForward()
show information screen
+ Here is the call graph for this function:

◆ infoScreenForward()

ilObjBibliographicGUI::infoScreenForward ( )

show information screen

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

References $DIC, $info, ilObject2GUI\checkPermissionBool(), object, and ilUtil\sendFailure().

Referenced by executeCommand(), and infoScreen().

173  {
174  global $DIC;
175 
176  if (!$this->checkPermissionBool("visible") && !$this->checkPermissionBool('read')) {
177  ilUtil::sendFailure($DIC['lng']->txt("msg_no_perm_read"), true);
178  $this->ctrl->redirectByClass('ilPersonalDesktopGUI', '');
179  }
180  $DIC['ilTabs']->activateTab(self::TAB_ID_INFO);
181  include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
182  $info = new ilInfoScreenGUI($this);
183  $info->enablePrivateNotes();
184  $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
185  $this->ctrl->forwardCommand($info);
186  }
Class ilInfoScreenGUI.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
global $DIC
Definition: saml.php:7
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
$info
Definition: index.php:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initCreationForms()

ilObjBibliographicGUI::initCreationForms (   $a_new_type)
protected
Parameters
string$a_new_type
Returns
array

Definition at line 244 of file class.ilObjBibliographicGUI.php.

References $DIC, array, and ilFileInputGUI\setSuffixes().

Referenced by save().

245  {
246  global $DIC;
247  $forms = parent::initCreationForms($a_new_type);
248  // Add File-Upload
249  $in_file = new ilFileInputGUI($DIC->language()->txt("bibliography file"), "bibliographic_file");
250  $in_file->setSuffixes(array("ris", "bib", "bibtex"));
251  $in_file->setRequired(true);
252  $forms[self::CFORM_NEW]->addItem($in_file);
253  $this->ctrl->saveParameterByClass('ilobjrootfoldergui', 'new_type');
254  $forms[self::CFORM_NEW]->setFormAction($this->ctrl->getFormActionByClass('ilobjrootfoldergui', "save"));
255 
256  return $forms;
257  }
global $DIC
Definition: saml.php:7
This class represents a file property in a property form.
Create styles array
The data for the language used.
setSuffixes($a_suffixes)
Set Accepted Suffixes.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initEditCustomForm()

ilObjBibliographicGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected
Parameters
ilPropertyFormGUI$a_form

Definition at line 355 of file class.ilObjBibliographicGUI.php.

References $DIC, and ilPropertyFormGUI\addItem().

356  {
357  global $DIC;
358  $ilTabs = $DIC['ilTabs'];
359  $ilTabs->activateTab("settings");
360  // is_online
361  $cb = new ilCheckboxInputGUI($this->lng->txt("online"), "is_online");
362  $a_form->addItem($cb);
363  }
global $DIC
Definition: saml.php:7
This class represents a checkbox property in a property form.
addItem($a_item)
Add Item (Property, SectionHeader).
+ Here is the call graph for this function:

◆ initEditForm()

ilObjBibliographicGUI::initEditForm ( )

Definition at line 333 of file class.ilObjBibliographicGUI.php.

References $DIC, $form, ilObjectGUI\$lng, ilSubEnabledFormPropertyGUI\addSubItem(), array, and ilFileInputGUI\setSuffixes().

334  {
335  global $DIC;
336  $lng = $DIC['lng'];
337  $form = parent::initEditForm();
338  // Add File-Upload
339  $in_file = new ilFileInputGUI($lng->txt("bibliography file"), "bibliographic_file");
340  $in_file->setSuffixes(array("ris", "bib", "bibtex"));
341  $in_file->setRequired(false);
342  $cb_override = new ilCheckboxInputGUI($this->lng->txt("override_entries"), "override_entries");
343  $cb_override->addSubItem($in_file);
344 
345  $form->addItem($cb_override);
346  $form->setFormAction($this->ctrl->getFormAction($this, "save"));
347 
348  return $form;
349  }
global $DIC
Definition: saml.php:7
This class represents a file property in a property form.
This class represents a checkbox property in a property form.
if(isset($_POST['submit'])) $form
Create styles array
The data for the language used.
setSuffixes($a_suffixes)
Set Accepted Suffixes.
+ Here is the call graph for this function:

◆ removeFromDesk()

ilObjBibliographicGUI::removeFromDesk ( )

Remove from desktop.

Alias for removeFromDeskObject.

public

Definition at line 571 of file class.ilObjBibliographicGUI.php.

References ilObjectGUI\afterImport(), and removeFromDeskObject().

572  {
573  $this->removeFromDeskObject();
574  }
removeFromDeskObject()
Remove from desktop.
+ Here is the call graph for this function:

◆ removeFromDeskObject()

ilObjBibliographicGUI::removeFromDeskObject ( )

Remove from desktop.

public

Implements ilDesktopItemHandling.

Definition at line 546 of file class.ilObjBibliographicGUI.php.

References ilDesktopItemGUI\removeFromDesktop(), and ilUtil\sendSuccess().

Referenced by removeFromDesk().

547  {
548  include_once './Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
550  ilUtil::sendSuccess($this->lng->txt("removed_from_desktop"), true);
551  $this->ctrl->redirect($this, self::CMD_VIEW);
552  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static removeFromDesktop()
Remove item from personal desktop public.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ render()

ilObjBibliographicGUI::render ( )

Definition at line 379 of file class.ilObjBibliographicGUI.php.

References showContent().

380  {
381  $this->showContent();
382  }
showContent()
shows the overview page with all entries in a table
+ Here is the call graph for this function:

◆ save()

ilObjBibliographicGUI::save ( )

Definition at line 260 of file class.ilObjBibliographicGUI.php.

References $DIC, $form, ilObjectGUI\$lng, ilObjectGUI\$tpl, addNews(), ilObjectGUI\afterSave(), ilObject\getId(), getType(), initCreationForms(), and ilObject2GUI\setTabs().

261  {
262  global $DIC;
263  $tpl = $DIC['tpl'];
264  $form = $this->initCreationForms($this->getType());
265  if ($form[self::CFORM_NEW]->checkInput()) {
266  parent::save();
267  } else {
268  $form = $form[self::CFORM_NEW];
269  $form->setValuesByPost();
270  $tpl->setContent($form->getHtml());
271  }
272  }
global $DIC
Definition: saml.php:7
if(isset($_POST['submit'])) $form
+ Here is the call graph for this function:

◆ sendFile()

ilObjBibliographicGUI::sendFile ( )

provide file as a download

Definition at line 429 of file class.ilObjBibliographicGUI.php.

References $DIC, ilFileDelivery\deliverFileAttached(), handleNonAccess(), object, ilUtil\sendFailure(), and showContent().

430  {
431  global $DIC;
432 
433  if ($DIC['ilAccess']->checkAccess('read', "", $this->object->getRefId())) {
434  $file_path = $this->bibl_obj->getLegacyAbsolutePath();
435  if ($file_path) {
436  if (is_file($file_path)) {
437  ilFileDelivery::deliverFileAttached($file_path, $this->bibl_obj->getFilename(), 'application/octet-stream');
438  } else {
439  ilUtil::sendFailure($DIC['lng']->txt("file_not_found"));
440  $this->showContent();
441  }
442  }
443  } else {
444  $this->handleNonAccess();
445  }
446  }
global $DIC
Definition: saml.php:7
static deliverFileAttached($path_to_file, $download_file_name='', $mime_type='', $delete_file=false)
void
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
showContent()
shows the overview page with all entries in a table
+ Here is the call graph for this function:

◆ showContent()

ilObjBibliographicGUI::showContent ( )

shows the overview page with all entries in a table

Definition at line 388 of file class.ilObjBibliographicGUI.php.

References $DIC, $html, $ilCtrl, $table, ilLinkButton\getInstance(), handleNonAccess(), and object.

Referenced by render(), sendFile(), and view().

389  {
390  global $DIC;
391  $ilAccess = $DIC['ilAccess'];
392  $ilCtrl = $DIC['ilCtrl'];
393  $ilTabs = $DIC['ilTabs'];
394  // if user has read permission and object is online OR user has write permissions
395  if (($ilAccess->checkAccess('read', "", $this->object->getRefId())
396  && $this->object->getOnline())
397  || $ilAccess->checkAccess('write', "", $this->object->getRefId())
398  ) {
399  $ilTabs->setTabActive(self::TAB_CONTENT);
400 
401  // With new UI service, currently not supported by ilToolbar
402  // $f = $DIC->ui()->factory()->button()
403  // ->primary($lng->txt("download_original_file"), $ilCtrl->getLinkTargetByClass("ilBibliographicDetailsGUI", "sendFile"));
404  // $ilToolbar->addText($DIC->ui()->renderer()->render($f));
405 
407  $b->setCaption('download_original_file');
408  $b->setUrl($ilCtrl->getLinkTargetByClass("ilBibliographicDetailsGUI", self::CMD_SEND_FILE));
409  $b->setPrimary(true);
410  $DIC['ilToolbar']->addButtonInstance($b);
411 
412  include_once "./Modules/Bibliographic/classes/class.ilBibliographicRecordListTableGUI.php";
413  $table = new ilBibliographicRecordListTableGUI($this, self::CMD_SHOW_CONTENT);
414  $html = $table->getHTML();
415  $DIC['tpl']->setContent($html);
416 
417  //Permanent Link
418  $DIC['tpl']->setPermanentLink("bibl", $this->object->getRefId());
419  } else {
420  //redirect to repository without any parameters
421  $this->handleNonAccess();
422  }
423  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
Create new PHPExcel object
obj_idprivate
if(empty($password)) $table
Definition: pwgen.php:24
$html
Definition: example_001.php:87
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showDetails()

ilObjBibliographicGUI::showDetails ( )

Definition at line 449 of file class.ilObjBibliographicGUI.php.

References $_GET, $DIC, ilBibliographicDetailsGUI\getInstance(), handleNonAccess(), and object.

450  {
451  global $DIC;
452 
453  if ($DIC['ilAccess']->checkAccess('read', "", $this->object->getRefId())) {
454  $bibGUI = ilBibliographicDetailsGUI::getInstance($this->bibl_obj, $_GET[self::P_ENTRY_ID]);
455  $this->tpl->setContent($bibGUI->getHTML());
456  } else {
457  $this->handleNonAccess();
458  }
459  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
static getInstance(ilObjBibliographic $bibl_obj, $entry_id)
Create new PHPExcel object
obj_idprivate
+ Here is the call graph for this function:

◆ toggleNotification()

ilObjBibliographicGUI::toggleNotification ( )

Definition at line 489 of file class.ilObjBibliographicGUI.php.

References $_GET, $DIC, $ilCtrl, $ilUser, ilObjectGUI\$obj_id, ilNotification\setNotification(), and ilNotification\TYPE_DATA_COLLECTION.

490  {
491  global $DIC;
492  $ilCtrl = $DIC['ilCtrl'];
493  $ilUser = $DIC['ilUser'];
494  include_once "./Services/Notification/classes/class.ilNotification.php";
495  switch ($_GET["ntf"]) {
496  case 1:
498  break;
499  case 2:
501  break;
502  }
503  $ilCtrl->redirect($this, "");
504  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
static setNotification($type, $user_id, $id, $status=true)
Set notification status for object and user.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ updateCustom()

ilObjBibliographicGUI::updateCustom ( ilPropertyFormGUI  $a_form)

updateSettings

Definition at line 471 of file class.ilObjBibliographicGUI.php.

References $DIC, addNews(), ilPropertyFormGUI\getInput(), handleNonAccess(), and object.

472  {
473  global $DIC;
474  $ilAccess = $DIC['ilAccess'];
475  if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
476  if ($this->object->getOnline() != $a_form->getInput("is_online")) {
477  $this->object->setOnline($a_form->getInput("is_online"));
478  }
479 
480  if (!empty($_FILES['bibliographic_file']['name'])) {
481  $this->addNews($this->bibl_obj->getId(), 'updated');
482  }
483  } else {
484  $this->handleNonAccess();
485  }
486  }
global $DIC
Definition: saml.php:7
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
addNews($obj_id, $change='created')
Create new PHPExcel object
obj_idprivate
+ Here is the call graph for this function:

◆ view()

ilObjBibliographicGUI::view ( )

Definition at line 462 of file class.ilObjBibliographicGUI.php.

References showContent().

463  {
464  $this->showContent();
465  }
showContent()
shows the overview page with all entries in a table
+ Here is the call graph for this function:

Field Documentation

◆ $bibl_obj

ilObjBibliographicGUI::$bibl_obj
protected

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

◆ $cmd

ilObjBibliographicGUI::$cmd = self::CMD_SHOW_CONTENT
protected

Definition at line 42 of file class.ilObjBibliographicGUI.php.

◆ CMD_EDIT

const ilObjBibliographicGUI::CMD_EDIT = "edit"

Definition at line 34 of file class.ilObjBibliographicGUI.php.

◆ CMD_SEND_FILE

const ilObjBibliographicGUI::CMD_SEND_FILE = "sendFile"

Definition at line 26 of file class.ilObjBibliographicGUI.php.

◆ CMD_SHOW_CONTENT

const ilObjBibliographicGUI::CMD_SHOW_CONTENT = 'showContent'

Definition at line 25 of file class.ilObjBibliographicGUI.php.

◆ CMD_SHOW_DETAILS

const ilObjBibliographicGUI::CMD_SHOW_DETAILS = "showDetails"

Definition at line 33 of file class.ilObjBibliographicGUI.php.

◆ CMD_VIEW

const ilObjBibliographicGUI::CMD_VIEW = "view"

Definition at line 28 of file class.ilObjBibliographicGUI.php.

◆ P_ENTRY_ID

const ilObjBibliographicGUI::P_ENTRY_ID = 'entry_id'

◆ TAB_CONTENT

const ilObjBibliographicGUI::TAB_CONTENT = "content"

Definition at line 27 of file class.ilObjBibliographicGUI.php.

◆ TAB_EXPORT

const ilObjBibliographicGUI::TAB_EXPORT = "export"

Definition at line 29 of file class.ilObjBibliographicGUI.php.

◆ TAB_ID_INFO

const ilObjBibliographicGUI::TAB_ID_INFO = "id_info"

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

◆ TAB_ID_PERMISSIONS

const ilObjBibliographicGUI::TAB_ID_PERMISSIONS = "id_permissions"

Definition at line 31 of file class.ilObjBibliographicGUI.php.

◆ TAB_ID_RECORDS

const ilObjBibliographicGUI::TAB_ID_RECORDS = "id_records"

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


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