ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilCmiXapiUserAutocomplete.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
16{
20 protected $objId;
21
25 public function __construct($objId)
26 {
28 $this->objId = $objId;
29 }
30
34 protected function getFromPart()
35 {
36 global $DIC;
37
38 $fromPart = parent::getFromPart();
39
40 $fromPart .= "
41 INNER JOIN (SELECT DISTINCT usr_id, obj_id FROM cmix_users) c
42 ON c.obj_id = {$DIC->database()->quote($this->objId, 'integer')}
43 AND c.usr_id = ud.usr_id
44 ";
45 return $fromPart;
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Auto completion class for user lists.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46