ILIAS
release_8 Revision v8.19
|
Class ilAbstractSoapMethod. More...
Public Member Functions | |
__construct () | |
getServiceStyle () | |
Get the service style, e.g.'rpc'
| |
getServiceUse () | |
Get the service use, e.g.'encoded'
| |
![]() | |
__construct (bool $use_nusoap=true) | |
getMessage () | |
appendMessage (string $a_str) | |
setMessageCode (string $a_code) | |
getMessageCode () | |
reInitUser () | |
isFault ($object) | |
getInstallationInfoXML () | |
getClientInfoXML (string $clientid) | |
![]() | |
getName () | |
Get the name of the method. More... | |
getInputParams () | |
Get the input parameters. More... | |
getOutputParams () | |
Get the output parameters in the same format as the input parameters. More... | |
getServiceNamespace () | |
Get the namespace of the service where this method belongs to. More... | |
getDocumentation () | |
Get the documentation of this method. More... | |
execute (array $params) | |
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the name). More... | |
Protected Member Functions | |
initIliasAndCheckSession (string $session_id) | |
Use this method at the beginning of your execute() method to check if the provided session ID is valid. More... | |
checkParameters (array $params) | |
Check that all input parameters are present when executing the soap method. More... | |
raiseError (string $a_message, $a_code) | |
Overwrites the __raiseError method and transforms any raised errors into ilPluginExceptions. More... | |
![]() | |
checkSession (string $sid) | |
explodeSid (string $sid) | |
setMessage (string $a_str) | |
initAuth (string $sid) | |
initIlias () | |
initAuthenticationObject () | |
raiseError (string $a_message, $a_code) | |
checkObjectAccess (int $ref_id, array $expected_type, string $permission, bool $returnObject=false) | |
check access for ref id: expected type, permission, return object instance if returnobject is true More... | |
Additional Inherited Members | |
![]() | |
const | NUSOAP = 1 |
const | PHP5 = 2 |
int | $error_method |
Defines type of error handling (PHP5 || NUSOAP) More... | |
![]() | |
bool | $soap_check = true |
string | $message = '' |
string | $message_code = '' |
Class ilAbstractSoapMethod.
Base class for soap methods of SoapHook plugins. Throw a ilSoapPluginException in your business logic in case of errors. The plugin hook catches these exceptions and returns the exception messages to the SOAP caller.
Definition at line 30 of file class.ilAbstractSoapMethod.php.
ilAbstractSoapMethod::__construct | ( | ) |
Definition at line 32 of file class.ilAbstractSoapMethod.php.
References ILIAS\GlobalScreen\Provider\__construct().
|
protected |
Check that all input parameters are present when executing the soap method.
array | $params |
ilSoapPluginException |
Definition at line 76 of file class.ilAbstractSoapMethod.php.
References $i, and ilSoapMethod\getInputParams().
ilAbstractSoapMethod::getServiceStyle | ( | ) |
Get the service style, e.g.'rpc'
Implements ilSoapMethod.
Definition at line 40 of file class.ilAbstractSoapMethod.php.
ilAbstractSoapMethod::getServiceUse | ( | ) |
Get the service use, e.g.'encoded'
Implements ilSoapMethod.
Definition at line 48 of file class.ilAbstractSoapMethod.php.
|
protected |
Use this method at the beginning of your execute() method to check if the provided session ID is valid.
This method wraps around ilSoapAdministration::initAuth() and ilSoapAdministration::initILIAS() which are both required in order to handle the request.
string | $session_id |
ilSoapPluginException |
Definition at line 61 of file class.ilAbstractSoapMethod.php.
References ilSoapAdministration\checkSession(), ilSoapAdministration\getMessage(), ilSoapAdministration\initAuth(), and ilSoapAdministration\reInitUser().
|
protected |
Overwrites the __raiseError method and transforms any raised errors into ilPluginExceptions.
Note: These exceptions will be caught by the plugin slot and and the exception message is returned to the SOAP caller.
string | $a_message | |
string | int | $a_code |
ilSoapPluginException |
Definition at line 95 of file class.ilAbstractSoapMethod.php.