public function addLocatorItems() { /** * @var $ilLocator ilLocatorGUI */ global $ilLocator; if ($this->object instanceof ilObject) { $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ''), '', $this->object->getRefId()); } }