ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilSoapRepositoryStructureObject.php
Go to the documentation of this file.
1 <?php
2 
26 {
27  protected int $ref_id = 0;
28 
29  public function __construct(int $objId, string $type, string $title, string $description, ?int $refId = null)
30  {
31  parent::__construct($objId, $type, $title, $description);
32  $this->setRefId($refId);
33  }
34 
35  public function setRefId(int $value): void
36  {
37  $this->ref_id = $value;
38  }
39 
40  public function getRefId(): int
41  {
42  return $this->ref_id;
43  }
44 
45  public function getInternalLink(): string
46  {
47  return "[iln " . $this->getType() . "=\"" . $this->getRefId() . "\"]" . $this->getTitle() . "[/iln]";
48  }
49 
50  public function getGotoLink(): string
51  {
52  return ILIAS_HTTP_PATH . "/" . "goto.php?target=" . $this->getType() . "_" . $this->getRefId() . "&client_id=" . CLIENT_ID;
53  }
54 
58  public function _getXMLAttributes(): array
59  {
60  return [
61  'type' => $this->getType(),
62  'obj_id' => $this->getObjId(),
63  'ref_id' => $this->getRefId()
64  ];
65  }
66 
67  public function _getTagName(): string
68  {
69  return "RepositoryObject";
70  }
71 }
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const CLIENT_ID
Definition: constants.php:41
__construct(int $objId, string $type, string $title, string $description, ?int $refId=null)
__construct(Container $dic, ilPlugin $plugin)