ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit Class Reference

Class UserIdsOfPositionAndOrgUnit. More...

+ Inheritance diagram for ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit:
+ Collaboration diagram for ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit:

Public Member Functions

 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...
 
- Public Member Functions inherited from ILIAS\OrgUnit\Webservices\SOAP\Base
 __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)
 
- Public Member Functions inherited from ilSoapAdministration
 __construct (bool $use_nusoap=true)
 
 getMessage ()
 
 appendMessage (string $a_str)
 
 setMessageCode (string $a_code)
 
 getMessageCode ()
 
 reInitUser ()
 
 isFault ($object)
 
 getInstallationInfoXML ()
 
 getClientInfoXML (string $clientid)
 

Protected Member Functions

 run (array $params)
 
 getAdditionalInputParams ()
 
- Protected Member Functions inherited from ILIAS\OrgUnit\Webservices\SOAP\Base
 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)
 
- Protected Member Functions inherited from ilSoapAdministration
 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

- Data Fields inherited from ILIAS\OrgUnit\Webservices\SOAP\Base
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'
 
- Data Fields inherited from ilSoapAdministration
const NUSOAP = 1
 
const PHP5 = 2
 
int $error_method
 Defines type of error handling (PHP5 || NUSOAP) More...
 
- Protected Attributes inherited from ILIAS\OrgUnit\Webservices\SOAP\Base
ilOrgUnitPositionDBRepository $positionRepo
 
ilOrgUnitUserAssignmentDBRepository $assignmentRepo
 
- Protected Attributes inherited from ilSoapAdministration
bool $soap_check = true
 
string $message = ''
 
string $message_code = ''
 

Detailed Description

Member Function Documentation

◆ getAdditionalInputParams()

ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit::getAdditionalInputParams ( )
protected

Definition at line 43 of file UserIdsOfPositionAndOrgUnit.php.

References ILIAS\OrgUnit\Webservices\SOAP\Base\TYPE_INT.

43  : array
44  {
45  return array(
46  self::POSITION_ID => Base::TYPE_INT,
47  self::ORGU_REF_ID => Base::TYPE_INT,
48  );
49  }

◆ getDocumentation()

ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit::getDocumentation ( )

Get the documentation of this method.

Returns
string

Implements ilSoapMethod.

Definition at line 56 of file UserIdsOfPositionAndOrgUnit.php.

56  : string
57  {
58  return "Returns ids of users in a position of a given Org Unit";
59  }

◆ getName()

ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit::getName ( )

Get the name of the method.

Used as endpoint for SOAP requests. Note that this name must be unique in combination with the service namespace.

Returns
string

Implements ilSoapMethod.

Definition at line 38 of file UserIdsOfPositionAndOrgUnit.php.

38  : string
39  {
40  return "getUserIdsOfPositionAndOrgUnit";
41  }

◆ getOutputParams()

ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit::getOutputParams ( )

Get the output parameters in the same format as the input parameters.

Returns
array

Implements ilSoapMethod.

Definition at line 51 of file UserIdsOfPositionAndOrgUnit.php.

References ILIAS\OrgUnit\Webservices\SOAP\Base\TYPE_INT_ARRAY.

51  : array
52  {
53  return array('usr_ids' => Base::TYPE_INT_ARRAY);
54  }

◆ run()

ILIAS\OrgUnit\Webservices\SOAP\UserIdsOfPositionAndOrgUnit::run ( array  $params)
protected

Definition at line 27 of file UserIdsOfPositionAndOrgUnit.php.

27  : array
28  {
29  $position_id = $params[self::POSITION_ID];
30  $orgu_id = $params[self::ORGU_REF_ID];
31 
32  return $this->assignmentRepo->getUsersByOrgUnitsAndPosition(
33  [$orgu_id],
34  $position_id
35  );
36  }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

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