ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSOAPStructureObjectAdministration Class Reference
+ Inheritance diagram for ilSOAPStructureObjectAdministration:
+ Collaboration diagram for ilSOAPStructureObjectAdministration:

Public Member Functions

 ilSOAPStructureObjectAdministration ()
 
 getStructureObjects ($sid, $ref_id)
 
- Public Member Functions inherited from ilSoapAdministration
 ilSoapAdministration ($use_nusoap=true)
 
 initErrorWriter ()
 Overwrite error handler. More...
 
 __explodeSid ($sid)
 
 __setMessage ($a_str)
 
 __getMessage ()
 
 __appendMessage ($a_str)
 
 __setMessageCode ($a_code)
 
 __getMessageCode ()
 
 initAuth ($sid)
 
 initIlias ()
 
 __initAuthenticationObject ($a_auth_mode=AUTH_LOCAL)
 
 __raiseError ($a_message, $a_code)
 
 getNIC ($sid)
 get client information from current as xml result set More...
 
 isFault ($object)
 
 checkObjectAccess ($ref_id, $expected_type, $permission, $returnObject=false)
 check access for ref id: expected type, permission, return object instance if returnobject is true More...
 
 getInstallationInfoXML ()
 
 getClientInfoXML ($clientid)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSoapAdministration
static return_bytes ($val)
 calculate bytes from K,M,G modifiers e.g: 8M = 8 * 1024 * 1024 bytes More...
 
- Data Fields inherited from ilSoapAdministration
 $sauth = null
 
 $error_method = null
 
- Protected Attributes inherited from ilSoapAdministration
 $soap_check = true
 

Detailed Description

Member Function Documentation

◆ getStructureObjects()

ilSOAPStructureObjectAdministration::getStructureObjects (   $sid,
  $ref_id 
)

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

References $filename, $ref_id, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().

45  {
46  $this->initAuth($sid);
47  $this->initIlias();
48 
49  if(!$this->__checkSession($sid))
50  {
51  return $this->__raiseError($this->__getMessage(),$this->__getMessageCode());
52  }
53 
54  if(!$target_obj =& ilObjectFactory::getInstanceByRefId($ref_id, false))
55  {
56  return $this->__raiseError('No valid reference id given.', 'Client');
57  }
58 
59  $structureReaderClassname = "ilSoap".strtoupper($target_obj->getType())."StructureReader";
60  $filename = "./webservice/soap/classes/class.".$structureReaderClassname.".php";
61 
62  if (!file_exists($filename))
63  {
64  return $this->__raiseError("Object type '".$target_obj->getType()."'is not supported.", 'Client');
65  }
66 
67  include_once $filename;
68 
69  $structureReader = new $structureReaderClassname($target_obj);
70 
71  include_once './webservice/soap/classes/class.ilSoapStructureObjectXMLWriter.php';
72 
73  $xml_writer = new ilSoapStructureObjectXMLWriter();
74 
75  $structureObject = & $structureReader->getStructureObject();
76 
77  $xml_writer->setStructureObject ($structureObject);
78 
79  if(!$xml_writer->start())
80  {
81  return $this->__raiseError('Cannot create object xml !','Server');
82  }
83 
84  return $xml_writer->getXML();
85 
86  }
getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
__raiseError($a_message, $a_code)
$filename
Definition: buildRTE.php:89
$ref_id
Definition: sahs_server.php:39
+ Here is the call graph for this function:

◆ ilSOAPStructureObjectAdministration()

ilSOAPStructureObjectAdministration::ilSOAPStructureObjectAdministration ( )

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

39  {
40  parent::ilSoapAdministration();
41  }

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