ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilBibliographicDetailsGUI Class Reference

Class ilBibliographicDetailsGUI The detailled view on each entry. More...

+ Collaboration diagram for ilBibliographicDetailsGUI:

Public Member Functions

 showDetails (ilObjBibliographic $bibl_obj)

Detailed Description

Class ilBibliographicDetailsGUI The detailled view on each entry.

Definition at line 9 of file class.ilBibliographicDetailsGUI.php.

Member Function Documentation

ilBibliographicDetailsGUI::showDetails ( ilObjBibliographic  $bibl_obj)
Parameters
ilObjBibliographic$bibl_obj
Returns
void

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

References $_GET, $ilCtrl, $lng, $tpl, ilBibliographicEntry\getAttributes(), ilObjBibliographic\getFiletype(), and ilObject2\getRefId().

{
global $tpl, $ilTabs, $ilCtrl, $lng;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$ilTabs->clearTargets();
$ilTabs->setBackTarget("back", $ilCtrl->getLinkTarget($this, 'showContent'));
$form->setTitle($lng->txt('detail_view'));
$entry = new ilBibliographicEntry($bibl_obj->getFiletype(), $_GET['entryId']);
$attributes = $entry->getAttributes();
//translate array key in order to sort by those keys
foreach($attributes as $key => $attribute)
{
//Check if there is a specific language entry
if($lng->exists($key))
{
$strDescTranslated = $lng->txt($key);
}
//If not: get the default language entry
else
{
$arrKey = explode("_",$key);
$strDescTranslated = $lng->txt($arrKey[0]."_default_".$arrKey[2]);
}
unset($attributes[$key]);
$attributes[$strDescTranslated] = $attribute;
}
// sort attributes alphabetically by their array-key
ksort($attributes, SORT_STRING);
// render attributes to html
foreach($attributes as $key => $attribute)
{
$ci = new ilCustomInputGUI($key);
$ci->setHtml($attribute);
$form->addItem($ci);
}
// set content and title
$tpl->setContent($form->getHTML());
//Permanent Link
$tpl->setPermanentLink("bibl", $bibl_obj->getRefId(),"_".$_GET['entryId']);
}

+ Here is the call graph for this function:


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