ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
|
Public Member Functions | |
__construct () | |
getServiceStyle () | |
Get the service style, e.g. More... | |
getServiceUse () | |
Get the service use, e.g. More... | |
getServiceNamespace () | |
Get the namespace of the service where this method belongs to. More... | |
getInputParams () | |
Get the input parameters. More... | |
execute (array $params) | |
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the name). More... | |
addError (string $message) | |
![]() | |
__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... | |
getOutputParams () | |
Get the output parameters in the same format as the input parameters. More... | |
getDocumentation () | |
Get the documentation of this method. More... | |
Data Fields | |
const | TYPE_INT_ARRAY = 'tns:intArray' |
const | TYPE_STRING = 'xsd:string' |
const | TYPE_INT = 'xsd:int' |
const | TYPE_DOUBLE_ARRAY = 'tns:doubleArray' |
const | SID = 'sid' |
const | ORGU_REF_ID = 'orgu_ref_id' |
const | POSITION_ID = 'position_id' |
const | USR_IDS = 'usr_ids' |
const | USR_ID = 'usr_id' |
![]() | |
const | NUSOAP = 1 |
const | PHP5 = 2 |
int | $error_method |
Defines type of error handling (PHP5 || NUSOAP) 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... | |
getAdditionalInputParams () | |
run (array $params) | |
![]() | |
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... | |
Protected Attributes | |
ilOrgUnitPositionDBRepository | $positionRepo |
ilOrgUnitUserAssignmentDBRepository | $assignmentRepo |
![]() | |
bool | $soap_check = true |
string | $message = '' |
string | $message_code = '' |
Private Member Functions | |
init (string $session_id) | |
ILIAS\OrgUnit\Webservices\SOAP\Base::__construct | ( | ) |
Definition at line 47 of file Base.php.
References $_GET, $dic, ILIAS\GlobalScreen\Provider\__construct(), and ilOrgUnitLocalDIC\dic().
ILIAS\OrgUnit\Webservices\SOAP\Base::addError | ( | string | $message | ) |
Definition at line 143 of file Base.php.
References ilSoapAdministration\raiseError().
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\execute(), ILIAS\OrgUnit\Webservices\SOAP\AddUserIdToPositionInOrgUnit\run(), ILIAS\OrgUnit\Webservices\SOAP\PositionTitle\run(), and ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\run().
|
protected |
Check that all input parameters are present when executing the soap method.
array | $params |
ilSoapPluginException |
Definition at line 89 of file Base.php.
References ILIAS\OrgUnit\Webservices\SOAP\Base\getInputParams().
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\execute().
ILIAS\OrgUnit\Webservices\SOAP\Base::execute | ( | array | $params | ) |
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the name).
Note: This Method must return the data in the format specified by getOutputParams().
array | $params | Key/Value pair of parameters defined by getInputParams() |
Implements ilSoapMethod.
Definition at line 118 of file Base.php.
References $DIC, ILIAS\OrgUnit\Webservices\SOAP\Base\addError(), ILIAS\OrgUnit\Webservices\SOAP\Base\checkParameters(), ILIAS\OrgUnit\Webservices\SOAP\Base\getAdditionalInputParams(), ilObjOrgUnit\getRootOrgRefId(), ILIAS\OrgUnit\Webservices\SOAP\Base\init(), and ILIAS\OrgUnit\Webservices\SOAP\Base\run().
|
abstractprotected |
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\execute(), ILIAS\OrgUnit\Webservices\SOAP\Base\getInputParams(), and ILIAS\OrgUnit\Webservices\SOAP\Base\getServiceNamespace().
ILIAS\OrgUnit\Webservices\SOAP\Base::getInputParams | ( | ) |
Get the input parameters.
Array keys must correspond to parameter names and values must correspond to a valid SOAP data-type
Implements ilSoapMethod.
Definition at line 106 of file Base.php.
References $params, ILIAS\OrgUnit\Webservices\SOAP\Base\getAdditionalInputParams(), and ILIAS\OrgUnit\Webservices\SOAP\Base\run().
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\checkParameters().
ILIAS\OrgUnit\Webservices\SOAP\Base::getServiceNamespace | ( | ) |
Get the namespace of the service where this method belongs to.
Implements ilSoapMethod.
Definition at line 99 of file Base.php.
References ILIAS\OrgUnit\Webservices\SOAP\Base\getAdditionalInputParams().
ILIAS\OrgUnit\Webservices\SOAP\Base::getServiceStyle | ( | ) |
ILIAS\OrgUnit\Webservices\SOAP\Base::getServiceUse | ( | ) |
|
private |
ilSoapPluginException |
Definition at line 151 of file Base.php.
References ILIAS\OrgUnit\Webservices\SOAP\Base\initIliasAndCheckSession().
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\execute().
|
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 75 of file Base.php.
References ilSoapAdministration\checkSession(), ilSoapAdministration\getMessage(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\init().
|
abstractprotected |
Referenced by ILIAS\OrgUnit\Webservices\SOAP\Base\execute(), and ILIAS\OrgUnit\Webservices\SOAP\Base\getInputParams().
|
protected |
|
protected |
const ILIAS\OrgUnit\Webservices\SOAP\Base::ORGU_REF_ID = 'orgu_ref_id' |
const ILIAS\OrgUnit\Webservices\SOAP\Base::POSITION_ID = 'position_id' |
const ILIAS\OrgUnit\Webservices\SOAP\Base::TYPE_DOUBLE_ARRAY = 'tns:doubleArray' |
const ILIAS\OrgUnit\Webservices\SOAP\Base::TYPE_INT = 'xsd:int' |
Definition at line 37 of file Base.php.
Referenced by ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPosition\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\OrgUnitTree\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\PositionTitle\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\AddUserIdToPositionInOrgUnit\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\EmployeePositionId\getOutputParams(), and ILIAS\OrgUnit\Webservices\SOAP\SuperiorPositionId\getOutputParams().
const ILIAS\OrgUnit\Webservices\SOAP\Base::TYPE_INT_ARRAY = 'tns:intArray' |
Definition at line 35 of file Base.php.
Referenced by ILIAS\OrgUnit\Webservices\SOAP\PositionIds\getOutputParams(), ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPosition\getOutputParams(), and ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit\getOutputParams().
const ILIAS\OrgUnit\Webservices\SOAP\Base::TYPE_STRING = 'xsd:string' |
Definition at line 36 of file Base.php.
Referenced by ILIAS\OrgUnit\Webservices\SOAP\ImportOrgUnitTree\getAdditionalInputParams(), ILIAS\OrgUnit\Webservices\SOAP\OrgUnitTree\getOutputParams(), and ILIAS\OrgUnit\Webservices\SOAP\PositionTitle\getOutputParams().
const ILIAS\OrgUnit\Webservices\SOAP\Base::USR_ID = 'usr_id' |
const ILIAS\OrgUnit\Webservices\SOAP\Base::USR_IDS = 'usr_ids' |