Inheritance diagram for ilMDCopyrightTableGUI:
Collaboration diagram for ilMDCopyrightTableGUI:Public Member Functions | |
| __construct ($a_parent_obj, $a_parent_cmd= '') | |
| Constructor. | |
| fillRow ($a_set) | |
| Fill row. | |
| parseSelections () | |
| Parse records. | |
Protected Attributes | |
| $lng = null | |
| $ctrl | |
| $parent_obj | |
Definition at line 35 of file class.ilMDCopyrightTableGUI.php.
| ilMDCopyrightTableGUI::__construct | ( | $ | a_parent_obj, | |
| $ | a_parent_cmd = '' | |||
| ) |
Constructor.
public
Reimplemented from ilTable2GUI.
Definition at line 48 of file class.ilMDCopyrightTableGUI.php.
References $ilCtrl, $lng, ilTable2GUI::addColumn(), ilTable2GUI::setDefaultOrderDirection(), ilTable2GUI::setDefaultOrderField(), ilTable2GUI::setFormAction(), and ilTable2GUI::setRowTemplate().
{
global $lng,$ilCtrl;
$this->lng = $lng;
$this->ctrl = $ilCtrl;
parent::__construct($a_parent_obj,$a_parent_cmd);
$this->addColumn('','f',1);
$this->addColumn($this->lng->txt('title'),'title',"30%");
$this->addColumn($this->lng->txt('md_used'),'used',"5%");
$this->addColumn($this->lng->txt('md_copyright_preview'),'preview',"50%");
$this->addColumn('','edit',"15%");
$this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
$this->setRowTemplate("tpl.show_copyright_row.html","Services/MetaData");
$this->setDefaultOrderField("title");
$this->setDefaultOrderDirection("asc");
}
Here is the call graph for this function:| ilMDCopyrightTableGUI::fillRow | ( | $ | a_set | ) |
Fill row.
public
Reimplemented from ilTable2GUI.
Definition at line 75 of file class.ilMDCopyrightTableGUI.php.
References ilTable2GUI::getParentObject().
{
$this->tpl->setVariable('VAL_ID',$a_set['id']);
$this->tpl->setVariable('VAL_TITLE',$a_set['title']);
if(strlen($a_set['description']))
{
$this->tpl->setVariable('VAL_DESCRIPTION',$a_set['description']);
}
$this->tpl->setVariable('VAL_USAGE',$a_set['used']);
$this->tpl->setVariable('VAL_PREVIEW',$a_set['preview']);
$this->ctrl->setParameter($this->getParentObject(),'entry_id',$a_set['id']);
$this->tpl->setVariable('EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),'editEntry'));
$this->ctrl->clearParameters($this->getParentObject());
$this->tpl->setVariable('TXT_EDIT',$this->lng->txt('edit'));
}
Here is the call graph for this function:| ilMDCopyrightTableGUI::parseSelections | ( | ) |
Parse records.
public
| array | array of record objects |
Definition at line 104 of file class.ilMDCopyrightTableGUI.php.
References ilMDCopyrightSelectionEntry::_getEntries(), and ilTable2GUI::setData().
{
foreach(ilMDCopyrightSelectionEntry::_getEntries() as $entry)
{
$tmp_arr['id'] = $entry->getEntryId();
$tmp_arr['title'] = $entry->getTitle();
$tmp_arr['description'] = $entry->getDescription();
$tmp_arr['used'] = $entry->getUsage();
$tmp_arr['preview'] = $entry->getCopyright();
$entry_arr[] = $tmp_arr;
}
$this->setData($entry_arr ? $entry_arr : array());
}
Here is the call graph for this function:ilMDCopyrightTableGUI::$ctrl [protected] |
Definition at line 38 of file class.ilMDCopyrightTableGUI.php.
ilMDCopyrightTableGUI::$lng = null [protected] |
Definition at line 37 of file class.ilMDCopyrightTableGUI.php.
Referenced by __construct().
ilMDCopyrightTableGUI::$parent_obj [protected] |
Definition at line 39 of file class.ilMDCopyrightTableGUI.php.
1.7.1