19 declare(strict_types=1);
23 public function getHTML(
bool $link =
true, array $options = []): string
59 public function getLinkHTML(
string $title,
bool $show_action_menu =
false): string
62 if ($show_action_menu) {
66 $dropdown_items[] = $this->
factory->link()->standard(
67 $this->
lng->txt(
'view'),
71 $dropdown_items[] = $this->
factory->link()->standard(
72 $this->
lng->txt(
'link'),
75 $dropdown_items[] = $this->
factory->link()->standard(
76 $this->
lng->txt(
'copy'),
79 $dropdown = $this->
factory->dropdown()->standard($dropdown_items)->withLabel($title);
80 return $this->
renderer->render($dropdown);
82 return $this->
renderer->render($this->
factory->link()->standard($title, $link));
97 return $this->
ctrl->getLinkTargetByClass(ilObjectCopyGUI::class,
'initTargetSelection');
99 return $this->
ctrl->getLinkTargetByClass([ilRepositoryGUI::class, ilObjRootFolderGUI::class],
'link');
getActionLink(string $mode)
getField()
Getter shortcut for field.
getSingleHTML(?array $options=null, bool $link=true)
static _lookupObjId(int $ref_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getHTML(bool $link=true, array $options=[])
static _lookupTitle(int $obj_id)
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
const PROP_DISPLAY_COPY_LINK_ACTION_MENU
getLinkHTML(string $title, bool $show_action_menu=false)
getRecordField()
Get Record Field.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
const PROP_ILIAS_REFERENCE_LINK