ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSoapRepositoryStructureObject.php
Go to the documentation of this file.
1<?php
2
3 /*
4 +-----------------------------------------------------------------------------+
5 | ILIAS open source |
6 +-----------------------------------------------------------------------------+
7 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
8 | |
9 | This program is free software; you can redistribute it and/or |
10 | modify it under the terms of the GNU General Public License |
11 | as published by the Free Software Foundation; either version 2 |
12 | of the License, or (at your option) any later version. |
13 | |
14 | This program is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | GNU General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU General Public License |
20 | along with this program; if not, write to the Free Software |
21 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22 +-----------------------------------------------------------------------------+
23 */
24
25
36include_once "./webservice/soap/classes/class.ilSoapStructureObject.php";
37
40
42 parent::ilSoapStructureObject($objId, $type, $title, $description);
43 $this->setRefId ($refId);
44 }
45
50 function setRefId ($value) {
51 $this->ref_id= $value;
52 }
53
54
59 function getRefId()
60 {
61 return $this->ref_id;
62 }
63
64 function getInternalLink () {
65 return "[iln ".$this->getType()."=\"".$this->getRefId()."\"]".$this->getTitle()."[/iln]";
66 }
67
68 function getGotoLink (){
69 return ILIAS_HTTP_PATH."/". "goto.php?target=".$this->getType()."_".$this->getRefId()."&client_id=".CLIENT_ID;
70 }
71
72 function _getXMLAttributes () {
73 $attrs = array( 'type' => $this->getType(),
74 'obj_id' => $this->getObjId(),
75 'ref_id' => $this->getRefId());
76
77 return $attrs;
78
79 }
80
81 function _getTagName () {
82 return "RepositoryObject";
83 }
84
85
86}
87
88?>
ilSoapRepositoryStructureObject($objId, $type, $title, $description, $refId)
getObjId()
return current object id