本文整理汇总了PHP中ilAdvancedSelectionListGUI类的典型用法代码示例。如果您正苦于以下问题:PHP ilAdvancedSelectionListGUI类的具体用法?PHP ilAdvancedSelectionListGUI怎么用?PHP ilAdvancedSelectionListGUI使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ilAdvancedSelectionListGUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showActionLinks
/**
* show edit links
* @param type $a_set
* @return boolean
*/
protected function showActionLinks($a_set)
{
if (!$this->show_edit_link) {
return true;
}
if (!self::$has_odf_definitions) {
$this->ctrl->setParameter($this->parent_obj, 'member_id', $a_set['usr_id']);
$this->tpl->setCurrentBlock('link');
$this->tpl->setVariable('LINK_NAME', $this->ctrl->getLinkTarget($this->parent_obj, 'editMember'));
$this->tpl->setVariable('LINK_TXT', $this->lng->txt('edit'));
$this->tpl->parseCurrentBlock();
return true;
}
// show action menu
include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
$list = new ilAdvancedSelectionListGUI();
$list->setSelectionHeaderClass('small');
$list->setItemLinkClass('small');
$list->setId('actl_' . $a_set['usr_id'] . '_' . $this->getId());
$list->setListTitle($this->lng->txt('actions'));
$this->ctrl->setParameter($this->parent_obj, 'member_id', $a_set['usr_id']);
$list->addItem($this->lng->txt('edit'), '', $this->ctrl->getLinkTarget($this->getParentObject(), 'editMember'));
$this->ctrl->setParameterByClass('ilobjectcustomuserfieldsgui', 'member_id', $a_set['usr_id']);
$trans = $this->lng->txt($this->getParentObject()->object->getType() . '_cdf_edit_member');
$list->addItem($trans, '', $this->ctrl->getLinkTargetByClass('ilobjectcustomuserfieldsgui', 'editMember'));
$this->tpl->setVariable('ACTION_USER', $list->getHTML());
}
示例2: buildActionMenu
/**
* Build action menu
*
* @param array $a_set
* @return ilAdvancedSelectionListGUI
*/
protected function buildActionMenu(array $a_set)
{
$alist = new ilAdvancedSelectionListGUI();
$alist->setId($a_set['id']);
$alist->setListTitle($this->pl->txt('actions'));
$this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $a_set['id']);
$alist->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editType'));
return $alist;
}
示例3: fillRow
/**
* Fill row
* @param array $a_set
*/
public function fillRow($a_set)
{
global $ilCtrl;
// show title if available
if ($a_set['term']) {
$this->tpl->setVariable('VAL_TITLE', $a_set['term']);
} else {
$this->tpl->setVariable('VAL_TITLE', $a_set['title']);
}
$this->tpl->setVariable('TXT_STATUS', $this->lng->txt('status'));
$this->tpl->setVariable('VAL_STATUS', ilECSMappingUtils::mappingStatusToString($a_set['status']));
// Actions
include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
$list = new ilAdvancedSelectionListGUI();
$list->setSelectionHeaderClass('small');
$list->setItemLinkClass('small');
$list->setId('actl_' . $a_set['id']);
$list->setListTitle($this->lng->txt('actions'));
$ilCtrl->setParameter($this->getParentObject(), 'tid', $a_set['id']);
$this->tpl->setVariable('EDIT_TITLE', $this->ctrl->getLinkTarget($this->getParentObject(), 'dInitEditTree'));
$list->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dInitEditTree'));
include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
if ($a_set['status'] != ilECSMappingUtils::MAPPED_UNMAPPED && ilECSNodeMappingSettings::getInstance()->isDirectoryMappingEnabled()) {
$list->addItem($this->lng->txt('ecs_cms_tree_synchronize'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dSynchronizeTree'));
}
$list->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dConfirmDeleteTree'));
$this->tpl->setVariable('ACTIONS', $list->getHTML());
$ilCtrl->clearParameters($this->getParentObject());
}
示例4: buildActions
/**
* Build action menu for a record asynchronous
*
*/
protected function buildActions()
{
// Download is only possible if certificate is processed
$alist = new ilAdvancedSelectionListGUI();
$alist->setId((int) $_GET['cert_id']);
$alist->setListTitle($this->pl->txt('actions'));
$this->ctrl->setParameter($this, 'cert_id', (int) $_GET['cert_id']);
$alist->addItem($this->pl->txt('download'), 'download', $this->ctrl->getLinkTarget($this, 'downloadCertificate'));
echo $alist->getHTML(true);
exit;
}
示例5: formatActionsList
/**
* @param string $type
* @param string $filename
*/
protected function formatActionsList($type, $filename)
{
/**
* @var $ilCtrl ilCtrl
*/
global $ilCtrl;
$list = new ilAdvancedSelectionListGUI();
$list->setListTitle($this->lng->txt('actions'));
$ilCtrl->setParameter($this->getParentObject(), 'file', $filename);
$list->addItem($this->lng->txt('download'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'download'));
$ilCtrl->setParameter($this->getParentObject(), 'file', '');
return $list->getHTML();
}
示例6: fillRow
/**
* Fill template row
* @param <type> $a_set
*/
public function fillRow($a_set)
{
$this->tpl->setVariable('TIME', $a_set['time']);
$this->tpl->setVariable('DURATION', $a_set['duration']);
$this->tpl->setVariable('REC', ilViteroUtils::recurrenceToString($a_set['rec']));
if ($this->isAdminTable()) {
include_once './Services/Tree/classes/class.ilPathGUI.php';
$path = new ilPathGUI();
$path->setUseImages(false);
$path->enableTextOnly(false);
$this->tpl->setVariable('OBJ_PATH', $path->getPath(ROOT_FOLDER_ID, end(ilObject::_getAllReferences($a_set['group']))));
}
if ($a_set['rec']) {
$this->tpl->setVariable('ENDS', $a_set['ends']);
} else {
$this->tpl->setVariable('ENDS', '');
}
if (!$this->isEditable()) {
return true;
}
include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
$list = new ilAdvancedSelectionListGUI();
$list->setId('booka_' . $a_set['start']->get(IL_CAL_UNIX) . '_' . $a_set['id']);
$list->setListTitle($this->lng->txt('actions'));
// no recurrence
if ($a_set['rec'] == 0) {
$GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'bookid', $a_set['id']);
$list->addItem(ilViteroPlugin::getInstance()->txt('edit_booking'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'editBooking'));
// delete appointment
$list->addItem(ilViteroPlugin::getInstance()->txt('delete_appointment'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'confirmDeleteAppointment'));
}
// A recurrence
if ($a_set['rec'] > 0) {
// Delete single appointment
$GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'atime', $a_set['start']->get(IL_CAL_UNIX));
$GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'bookid', $a_set['id']);
$list->addItem(ilViteroPlugin::getInstance()->txt('edit_bookings'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'editBooking'));
// not supported
/*
$list->addItem(
ilViteroPlugin::getInstance()->txt('delete_appointment'),
'',
$GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(),'confirmDeleteAppointmentInSeries')
);
*/
// Delete appointment series
$list->addItem(ilViteroPlugin::getInstance()->txt('delete_reccurrence'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'confirmDeleteBooking'));
}
$this->tpl->setVariable('ACTION_PART', $list->getHTML());
}
示例7: fillRow
public function fillRow($a_data)
{
global $lng, $ilCtrl, $ilUser;
include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
$current_selection_list = new ilAdvancedSelectionListGUI();
$current_selection_list->setListTitle($this->lng->txt("actions"));
$current_selection_list->setId("act_" . $a_data['obj_id']);
$this->tpl->setVariable("VAL_ID", $a_data["obj_id"]);
// edit link
$edit_link = '';
$delete_link = '';
$sendmail_link = '';
$export_link = '';
if ($a_data["type"] != "parent") {
$hash = $ilUser->prefs["screen_reader_optimization"] ? "bookmark_top" : "";
$ilCtrl->setParameter($this->parent_obj, "bmf_id", $this->parent_obj->id);
$ilCtrl->setParameter($this->parent_obj, "obj_id", $a_data["obj_id"]);
$edit_link = $a_data["type"] == "bmf" ? $ilCtrl->getLinkTarget($this->parent_obj, "editFormBookmarkFolder", $hash) : $ilCtrl->getLinkTarget($this->parent_obj, "editFormBookmark", $hash);
$ilCtrl->clearParameters($this->parent_obj);
$ilCtrl->setParameter($this->parent_obj, "bm_id", $a_data['obj_id']);
$delete_link = $ilCtrl->getLinkTarget($this->parent_obj, 'delete', $hash);
$sendmail_link = $ilCtrl->getLinkTarget($this->parent_obj, 'sendmail', $hash);
$export_link = $ilCtrl->getLinkTarget($this->parent_obj, 'export', $hash);
}
if ($edit_link) {
$current_selection_list->addItem($this->lng->txt('edit'), '', $edit_link);
}
if ($delete_link) {
$current_selection_list->addItem($this->lng->txt('delete'), '', $delete_link);
}
if ($export_link) {
$current_selection_list->addItem($this->lng->txt('export'), '', $export_link);
}
if ($sendmail_link) {
$current_selection_list->addItem($this->lng->txt('bkm_sendmail'), '', $sendmail_link);
}
$this->tpl->setVariable("COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
// icon
$img_type = $a_data["type"] == "bmf" || $a_data["type"] == "parent" ? "bmf" : $a_data["type"];
// #10556
$val = ilUtil::getImagePath("icon_" . $img_type . ".svg");
$this->tpl->setVariable("VAL_ICON", $val);
$this->tpl->setVariable("VAL_ICON_ALT", $lng->txt("icon") . " " . $lng->txt($a_data["type"]));
// folder links
if ($a_data["type"] == "bmf" || $a_data["type"] == "parent") {
$this->tpl->setVariable("VAL_BMF_TITLE", $a_data["title"]);
$ilCtrl->setParameter($this->parent_obj, "bmf_id", $a_data["obj_id"]);
$this->tpl->setVariable("VAL_BMF_TARGET", $ilCtrl->getLinkTarget($this->parent_obj));
//$this->tpl->setVariable("FRAME_TARGET_BMF", ilFrameTargetInfo::_getFrame("MainContent"));
} else {
$this->tpl->setVariable("VAL_BM_TITLE", $a_data["title"]);
$this->tpl->setVariable("VAL_BM_TARGET", htmlentities($a_data["target"]));
$this->tpl->setVariable("VAL_BM_DESCRIPTION", $a_data["description"]);
$this->tpl->setVariable("FRAME_TARGET_BM", ilFrameTargetInfo::_getFrame("ExternalContent"));
}
$ilCtrl->clearParameters($this->parent_obj);
}
示例8: fillRow
/**
* @param array $row
*/
public function fillRow(array $row)
{
/**
* @var $ilCtrl ilCtrl
*/
global $ilCtrl;
if ($this->getParentObject()->isCRUDContext()) {
$row['chb'] = ilUtil::formCheckbox(false, 'unit_ids[]', $row['unit_id']);
$sequence = new ilNumberInputGUI('', 'sequence[' . $row['unit_id'] . ']');
$sequence->setValue($this->position++ * 10);
$sequence->setMinValue(0);
$sequence->setSize(3);
$row['sequence'] = $sequence->render();
$action = new ilAdvancedSelectionListGUI();
$action->setId('asl_content_' . $row['unit_id']);
$action->setAsynch(false);
$action->setListTitle($this->lng->txt('actions'));
$ilCtrl->setParameter($this->getParentObject(), 'unit_id', $row['unit_id']);
$action->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitModificationForm'));
$action->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteUnit'));
$ilCtrl->setParameter($this->getParentObject(), 'unit_id', '');
$row['actions'] = $action->getHtml();
}
if ($row['unit_id'] == $row['baseunit_id']) {
$row['baseunit'] = '';
}
parent::fillRow($row);
}
示例9: getLinkHTML
/**
* @param $title
* @param $show_action_menu
* @return string
*/
public function getLinkHTML($title, $show_action_menu = false)
{
global $lng;
$link = ilLink::_getStaticLink($this->getValue());
if ($show_action_menu) {
$list = new ilAdvancedSelectionListGUI();
$list->setId('adv_list_copy_link_' . $this->field->getId() . $this->record->getId());
$list->setListTitle($title);
if ($this->properties[ilDataCollectionField::PROPERTYID_ILIAS_REFERENCE_LINK]) {
$list->addItem($lng->txt('view'), 'view', $link);
}
$list->addItem($lng->txt('copy'), 'copy', $this->getActionLink('copy'));
$list->addItem($lng->txt('link'), 'link', $this->getActionLink('link'));
return $list->getHTML();
} else {
return "<a href=\"{$link}\">{$title}</a>";
}
}
示例10: asyncGetContent
/**
* @param bool $delete_item
* @param bool $delete_folder
* @param ilCloudFileNode $node
*/
public function asyncGetContent($delete_item = false, $delete_folder = false, ilCloudFileNode $node)
{
global $lng;
$this->node = $node;
include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
$this->selection_list = new ilAdvancedSelectionListGUI();
$this->selection_list->setId($this->node->getId());
$this->selection_list->setListTitle($lng->txt("actions"));
$this->selection_list->setItemLinkClass("xsmall");
$this->addSelectionListItems($delete_item, $delete_folder);
if ($this->selection_list->getItems() != NULL) {
echo $this->selection_list->getHTML(true);
exit;
} else {
echo $lng->txt("empty");
exit;
}
}
示例11: fillRow
/**
* Fill row
* @staticvar int $counter
* @param array $set
*/
public function fillRow($set)
{
global $ilCtrl;
$ilCtrl->setParameter($this->getParentObject(), 'server_id', $set['server_id']);
$ilCtrl->setParameterByClass('ilecsmappingsettingsgui', 'server_id', $set['server_id']);
if ($set['active']) {
$this->tpl->setVariable('IMAGE_OK', ilUtil::getImagePath('icon_ok.svg'));
$this->tpl->setVariable('TXT_OK', $this->lng->txt('ecs_activated'));
} else {
$this->tpl->setVariable('IMAGE_OK', ilUtil::getImagePath('icon_not_ok.svg'));
$this->tpl->setVariable('TXT_OK', $this->lng->txt('ecs_inactivated'));
}
$this->tpl->setVariable('VAL_TITLE', ilECSSetting::getInstanceByServerId($set['server_id'])->getTitle());
$this->tpl->setVariable('LINK_EDIT', $ilCtrl->getLinkTarget($this->getParentObject(), 'edit'));
$this->tpl->setVariable('TXT_SRV_ADDR', $this->lng->txt('ecs_server_addr'));
if (ilECSSetting::getInstanceByServerId($set['server_id'])->getServer()) {
$this->tpl->setVariable('VAL_DESC', ilECSSetting::getInstanceByServerId($set['server_id'])->getServer());
} else {
$this->tpl->setVariable('VAL_DESC', $this->lng->txt('ecs_not_configured'));
}
$dt = ilECSSetting::getInstanceByServerId($set['server_id'])->fetchCertificateExpiration();
if ($dt != NULL) {
$this->tpl->setVariable('TXT_CERT_VALID', $this->lng->txt('ecs_cert_valid_until'));
$now = new ilDateTime(time(), IL_CAL_UNIX);
$now->increment(IL_CAL_MONTH, 2);
if (ilDateTime::_before($dt, $now)) {
$this->tpl->setCurrentBlock('invalid');
$this->tpl->setVariable('VAL_ICERT', ilDatePresentation::formatDate($dt));
$this->tpl->parseCurrentBlock();
} else {
$this->tpl->setCurrentBlock('valid');
$this->tpl->setVariable('VAL_VCERT', ilDatePresentation::formatDate($dt));
$this->tpl->parseCurrentBlock();
}
}
// Actions
include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
$list = new ilAdvancedSelectionListGUI();
$list->setSelectionHeaderClass('small');
$list->setItemLinkClass('small');
$list->setId('actl_' . $set['server_id']);
$list->setListTitle($this->lng->txt('actions'));
if (ilECSSetting::getInstanceByServerId($set['server_id'])->isEnabled()) {
$list->addItem($this->lng->txt('ecs_deactivate'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'deactivate'));
} else {
$list->addItem($this->lng->txt('ecs_activate'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'activate'));
}
$list->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'edit'));
$list->addItem($this->lng->txt('copy'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'cp'));
$list->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'delete'));
$this->tpl->setVariable('ACTIONS', $list->getHTML());
$ilCtrl->clearParameters($this->getParentObject());
}
示例12: fillRow
/**
* Fill table row
*/
protected function fillRow($a_set)
{
global $lng, $ilCtrl, $rbacsystem;
if ($a_set["id"] > 0) {
$this->tpl->setCurrentBlock("cb");
$this->tpl->setVariable("ID", $a_set["id"]);
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("cb_act");
if ($a_set["active"]) {
$this->tpl->setVariable("ACT_CHECKED", "checked='checked'");
}
$this->tpl->setVariable("ID", $a_set["id"]);
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("edit_link");
$ilCtrl->setParameterByClass("ilobjstylesheetgui", "obj_id", $a_set["id"]);
$this->tpl->setVariable("EDIT_LINK", $ilCtrl->getLinkTargetByClass("ilobjstylesheetgui", ""));
$ilCtrl->setParameterByClass("ilobjstylesheetgui", "obj_id", "");
$this->tpl->setVariable("EDIT_TITLE", $a_set["title"]);
$this->tpl->parseCurrentBlock();
} else {
$this->tpl->setVariable("TITLE", $a_set["title"]);
}
$ilCtrl->setParameter($this->parent_obj, "id", $a_set["id"]);
if ($a_set["id"] > 0 && $rbacsystem->checkAccess("write", $this->parent_obj->object->getRefId())) {
$list = new ilAdvancedSelectionListGUI();
$list->setListTitle($lng->txt("actions"));
$list->setId("sty_act_" . $a_set["id"]);
// default style
if ($this->default_style == $a_set["id"]) {
$list->addItem($lng->txt("sty_remove_global_default_state"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalDefault"));
} else {
if ($a_set["active"]) {
$list->addItem($lng->txt("sty_make_global_default"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalDefault"));
}
}
// fixed style
if ($this->fixed_style == $a_set["id"]) {
$list->addItem($lng->txt("sty_remove_global_fixed_state"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalFixed"));
} else {
if ($a_set["active"]) {
$list->addItem($lng->txt("sty_make_global_fixed"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalFixed"));
}
}
$list->addItem($lng->txt("sty_set_scope"), "", $ilCtrl->getLinkTarget($this->parent_obj, "setScope"));
$this->tpl->setVariable("ACTIONS", $list->getHTML());
if ($a_set["id"] == $this->fixed_style) {
$this->tpl->setVariable("PURPOSE", $lng->txt("global_fixed"));
}
if ($a_set["id"] == $this->default_style) {
$this->tpl->setVariable("PURPOSE", $lng->txt("global_default"));
}
}
$ilCtrl->setParameter($this->parent_obj, "id", "");
$this->tpl->setVariable("NR_LM", $a_set["lm_nr"]);
if ($a_set["category"] > 0) {
$this->tpl->setVariable("SCOPE", ilObject::_lookupTitle(ilObject::_lookupObjId($a_set["category"])));
}
}
示例13: buildActionMenu
/**
* Build action menu
*
* @param array $a_set
* @return ilAdvancedSelectionListGUI
*/
protected function buildActionMenu(array $a_set)
{
$list = new ilAdvancedSelectionListGUI();
$list->setId($a_set['id']);
$list->setListTitle($this->pl->txt('actions'));
$this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $this->type->getId());
$this->ctrl->setParameterByClass('srcertificatetypegui', 'signature_id', $a_set['id']);
$list->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editSignature'));
$list->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'confirmDeleteSignature'));
$list->addItem($this->lng->txt('download'), 'download', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'downloadSignature'));
return $list;
}
示例14: fillRow
/**
* Fills table rows with content from $a_set.
*
* @global ilCtrl2 $ilCtrl
*
* @param array $a_set
*/
public function fillRow($a_set)
{
global $ilCtrl;
$this->tpl->setVariable('VAL_LIBRARY_NAME', $a_set['name']);
$this->tpl->setVariable('VAL_LIBRARY_URL', $a_set['url']);
$this->tpl->setVariable('VAL_LIBRARY_IMG', $a_set['img']);
$current_selection_list = new ilAdvancedSelectionListGUI();
$current_selection_list->setListTitle($this->lng->txt("actions"));
$current_selection_list->setId($a_set['id']);
$current_selection_list->addItem($this->lng->txt("edit"), "", $ilCtrl->getLinkTarget($this->gui, 'edit') . "&lib_id=" . $a_set['id']);
$current_selection_list->addItem($this->lng->txt("delete"), "", $ilCtrl->getLinkTarget($this->gui, 'delete') . "&lib_id=" . $a_set['id']);
$this->tpl->setVariable('VAL_ACTIONS', $current_selection_list->getHTML());
}
示例15: fillRow
/**
* @param array $row
*/
public function fillRow(array $row)
{
/**
* @var $ilCtrl ilCtrl
*/
global $ilCtrl;
$row['chb'] = ilUtil::formCheckbox(false, 'category_ids[]', $row['category_id']);
$action = new ilAdvancedSelectionListGUI();
$action->setId('asl_content_' . $row['category_id']);
$action->setAsynch(false);
$action->setListTitle($this->lng->txt('actions'));
$ilCtrl->setParameter($this->getParentObject(), 'category_id', $row['category_id']);
$action->addItem($this->lng->txt('un_show_units'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitsOfCategory'));
if ($this->getParentObject()->isCRUDContext()) {
$action->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitCategoryModificationForm'));
$action->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteCategory'));
} else {
$action->addItem($this->lng->txt('import'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmImportGlobalCategory'));
}
$row['title_href'] = $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitsOfCategory');
$ilCtrl->setParameter($this->getParentObject(), 'category_id', '');
$row['actions'] = $action->getHtml();
parent::fillRow($row);
}