ILIAS  release_8 Revision v8.23
ilSoapRepositoryStructureObject Class Reference
+ Inheritance diagram for ilSoapRepositoryStructureObject:
+ Collaboration diagram for ilSoapRepositoryStructureObject:

Public Member Functions

 __construct (int $objId, string $type, string $title, string $description, ?int $refId=null)
 
 setRefId (int $value)
 
 getRefId ()
 
 getInternalLink ()
 
 getGotoLink ()
 
 _getXMLAttributes ()
 
 _getTagName ()
 
- Public Member Functions inherited from ilSoapStructureObject
 __construct (int $objId, string $type, string $title, string $description, ?int $parentRefId=null)
 
 addStructureObject (ilSoapStructureObject $structureObject)
 
 getStructureObjects ()
 
 setObjId (int $value)
 
 getObjId ()
 
 setTitle (string $value)
 
 getTitle ()
 
 setDescription (string $value)
 
 getDescription ()
 
 setType (string $value)
 
 getType ()
 
 getGotoLink ()
 
 getInternalLink ()
 
 _getXMLAttributes ()
 
 _getTagName ()
 
 setParentRefId (int $parentRefId)
 
 getParentRefId ()
 
 exportXML (ilXmlWriter $xml_writer)
 

Protected Attributes

int $ref_id = 0
 

Additional Inherited Members

- Data Fields inherited from ilSoapStructureObject
int $obj_id
 
string $title
 
string $type
 
string $description
 
int $parentRefId
 
array $structureObjects = array()
 

Detailed Description

Definition at line 34 of file class.ilSoapRepositoryStructureObject.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapRepositoryStructureObject::__construct ( int  $objId,
string  $type,
string  $title,
string  $description,
?int  $refId = null 
)

Member Function Documentation

◆ _getTagName()

ilSoapRepositoryStructureObject::_getTagName ( )

Definition at line 76 of file class.ilSoapRepositoryStructureObject.php.

76  : string
77  {
78  return "RepositoryObject";
79  }

◆ _getXMLAttributes()

ilSoapRepositoryStructureObject::_getXMLAttributes ( )
Returns
array{type: string, ref_id: int, obj_id: int}

Definition at line 67 of file class.ilSoapRepositoryStructureObject.php.

References ilSoapStructureObject\getObjId(), getRefId(), and ilSoapStructureObject\getType().

67  : array
68  {
69  return [
70  'type' => $this->getType(),
71  'obj_id' => $this->getObjId(),
72  'ref_id' => $this->getRefId()
73  ];
74  }
+ Here is the call graph for this function:

◆ getGotoLink()

ilSoapRepositoryStructureObject::getGotoLink ( )

Definition at line 59 of file class.ilSoapRepositoryStructureObject.php.

References CLIENT_ID, getRefId(), and ilSoapStructureObject\getType().

59  : string
60  {
61  return ILIAS_HTTP_PATH . "/" . "goto.php?target=" . $this->getType() . "_" . $this->getRefId() . "&client_id=" . CLIENT_ID;
62  }
const CLIENT_ID
Definition: constants.php:41
+ Here is the call graph for this function:

◆ getInternalLink()

ilSoapRepositoryStructureObject::getInternalLink ( )

Definition at line 54 of file class.ilSoapRepositoryStructureObject.php.

References getRefId(), ilSoapStructureObject\getTitle(), and ilSoapStructureObject\getType().

54  : string
55  {
56  return "[iln " . $this->getType() . "=\"" . $this->getRefId() . "\"]" . $this->getTitle() . "[/iln]";
57  }
+ Here is the call graph for this function:

◆ getRefId()

ilSoapRepositoryStructureObject::getRefId ( )

Definition at line 49 of file class.ilSoapRepositoryStructureObject.php.

References $ref_id.

Referenced by _getXMLAttributes(), getGotoLink(), and getInternalLink().

+ Here is the caller graph for this function:

◆ setRefId()

ilSoapRepositoryStructureObject::setRefId ( int  $value)

Definition at line 44 of file class.ilSoapRepositoryStructureObject.php.

Referenced by __construct().

44  : void
45  {
46  $this->ref_id = $value;
47  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ref_id

int ilSoapRepositoryStructureObject::$ref_id = 0
protected

Definition at line 36 of file class.ilSoapRepositoryStructureObject.php.

Referenced by getRefId().


The documentation for this class was generated from the following file: