ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSoapRepositoryStructureObject Class Reference
+ Inheritance diagram for ilSoapRepositoryStructureObject:
+ Collaboration diagram for ilSoapRepositoryStructureObject:

Public Member Functions

 __construct ($objId, $type, $title, $description, $refId)
 Constructor. More...
 
 setRefId ($value)
 set current refId More...
 
 getRefId ()
 return current ref id More...
 
 getInternalLink ()
 
 getGotoLink ()
 
 _getXMLAttributes ()
 
 _getTagName ()
 
- Public Member Functions inherited from ilSoapStructureObject
 __construct ($objId, $type, $title, $description, $parentRefId=null)
 
 addStructureObject ($structureObject)
 add structure object to its parent More...
 
 getStructureObjects ()
 returns sub structure elements More...
 
 setObjId ($value)
 set current ObjId More...
 
 getObjId ()
 return current object id More...
 
 setTitle ($value)
 set current title More...
 
 getTitle ()
 return current title More...
 
 setDescription ($value)
 set current description More...
 
 getDescription ()
 return current description More...
 
 setType ($value)
 set current type More...
 
 getType ()
 return current type More...
 
 getGotoLink ()
 return current goto_link More...
 
 getInternalLink ()
 return current internal_link More...
 
 _getXMLAttributes ()
 get xml tag attributes More...
 
 _getTagName ()
 
 setParentRefId ($parentRefId)
 set ref id for parent object (used for permanent link if set) More...
 
 getParentRefId ()
 read access to parents ref id More...
 
 exportXML ($xml_writer)
 export to xml writer More...
 

Protected Attributes

 $ref_id
 

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSoapRepositoryStructureObject::__construct (   $objId,
  $type,
  $title,
  $description,
  $refId 
)

Constructor.

Parameters
type$objId
type$type
type$title
type$description
type$refId

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

References ilSoapStructureObject\$description, ilSoapStructureObject\$title, ilSoapStructureObject\$type, and setRefId().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getTagName()

ilSoapRepositoryStructureObject::_getTagName ( )

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

95  {
96  return "RepositoryObject";
97  }

◆ _getXMLAttributes()

ilSoapRepositoryStructureObject::_getXMLAttributes ( )

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

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

86  {
87  $attrs = array( 'type' => $this->getType(),
88  'obj_id' => $this->getObjId(),
89  'ref_id' => $this->getRefId());
90 
91  return $attrs;
92  }
getObjId()
return current object id
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getGotoLink()

ilSoapRepositoryStructureObject::getGotoLink ( )

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

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

81  {
82  return ILIAS_HTTP_PATH . "/" . "goto.php?target=" . $this->getType() . "_" . $this->getRefId() . "&client_id=" . CLIENT_ID;
83  }
+ Here is the call graph for this function:

◆ getInternalLink()

ilSoapRepositoryStructureObject::getInternalLink ( )

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

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

76  {
77  return "[iln " . $this->getType() . "=\"" . $this->getRefId() . "\"]" . $this->getTitle() . "[/iln]";
78  }
+ Here is the call graph for this function:

◆ getRefId()

ilSoapRepositoryStructureObject::getRefId ( )

return current ref id

Definition at line 70 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 (   $value)

set current refId

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

Referenced by __construct().

61  {
62  $this->ref_id= $value;
63  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ref_id

ilSoapRepositoryStructureObject::$ref_id
protected

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

Referenced by getRefId().


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