ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 25 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 ( )

Reimplemented from ilSoapStructureObject.

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

67 : string
68 {
69 return "RepositoryObject";
70 }

◆ _getXMLAttributes()

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

Reimplemented from ilSoapStructureObject.

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

58 : array
59 {
60 return [
61 'type' => $this->getType(),
62 'obj_id' => $this->getObjId(),
63 'ref_id' => $this->getRefId()
64 ];
65 }

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

+ Here is the call graph for this function:

◆ getGotoLink()

ilSoapRepositoryStructureObject::getGotoLink ( )

Reimplemented from ilSoapStructureObject.

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

50 : string
51 {
52 return ILIAS_HTTP_PATH . "/" . "goto.php?target=" . $this->getType() . "_" . $this->getRefId() . "&client_id=" . CLIENT_ID;
53 }
const CLIENT_ID
Definition: constants.php:41

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

+ Here is the call graph for this function:

◆ getInternalLink()

ilSoapRepositoryStructureObject::getInternalLink ( )

Reimplemented from ilSoapStructureObject.

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

45 : string
46 {
47 return "[iln " . $this->getType() . "=\"" . $this->getRefId() . "\"]" . $this->getTitle() . "[/iln]";
48 }

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

+ Here is the call graph for this function:

◆ getRefId()

ilSoapRepositoryStructureObject::getRefId ( )

Definition at line 40 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 35 of file class.ilSoapRepositoryStructureObject.php.

35 : void
36 {
37 $this->ref_id = $value;
38 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $ref_id

int ilSoapRepositoryStructureObject::$ref_id = 0
protected

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

Referenced by getRefId().


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