ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
UserIdsOfPositionAndOrgUnit.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
13 {
14 
20  protected function run(array $params)
21  {
22  $position_id = $params[self::POSITION_ID];
23  $orgu_id = $params[self::ORGU_REF_ID];
24 
25  return ilOrgUnitUserAssignmentQueries::getInstance()->getUserIdsOfOrgUnitsInPosition(array($orgu_id), $position_id);
26  }
27 
28 
32  public function getName()
33  {
34  return "getUserIdsOfPositionAndOrgUnit";
35  }
36 
37 
41  protected function getAdditionalInputParams()
42  {
43  return array(
44  self::POSITION_ID => Base::TYPE_INT,
45  self::ORGU_REF_ID => Base::TYPE_INT,
46  );
47  }
48 
49 
53  public function getOutputParams()
54  {
55  return array('usr_ids' => Base::TYPE_INT_ARRAY);
56  }
57 
58 
62  public function getDocumentation()
63  {
64  return "Returns ids of users in a position of a given Org Unit";
65  }
66 }
getOutputParams()
Get the output parameters in the same format as the input parameters.array
getDocumentation()
Get the documentation of this method.string