ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 {
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}
__construct(int $objId, string $type, string $title, string $description, ?int $refId=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const CLIENT_ID
Definition: constants.php:41
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58