23 protected function run(array $params)
30 $this->
error(
"user does not exist");
32 $this->
error(
"Position does not exist");
34 $this->
error(
"OrgUnit does not exist");
46 return "addUserToPositionInOrgUnit";
73 return "Adds a user to a position in a orgunit";
An exception for terminatinating execution or to throw for unit testing.
Class AddUserIdToPositionInOrgUnit.
getOutputParams()
Get the output parameters in the same format as the input parameters.array
getAdditionalInputParams()
getDocumentation()
Get the documentation of this method.string
Class ilObject2 This is an intermediate progress of ilObject class.
static _lookupType($a_id, $a_reference=false)
lookup object type
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static findOrCreateAssignment($user_id, $position_id, $orgu_id)