19 declare(strict_types=1);
    32         $post_wrapper = $DIC->http()->wrapper()->post();
    34         $class = $this->callback[
'class'];
    35         $method = $this->callback[
'method'];
    39         $class->$method($post_wrapper->retrieve(
'user', 
$refinery->kindlyTo()->listOf(
$refinery->kindlyTo()->string())));
    55         $ilToolbar = $DIC[
'ilToolbar'];
    57         $ilCtrl = $DIC[
'ilCtrl'];
    62             $toolbar = $ilToolbar;
    66         if (!isset($a_options[
'auto_complete_name'])) {
    67             $a_options[
'auto_complete_name'] = 
$lng->
txt(
'obj_user');
    69         if (!isset($a_options[
'auto_complete_size'])) {
    70             $a_options[
'auto_complete_size'] = 15;
    72         if (!isset($a_options[
'submit_name'])) {
    73             $a_options[
'submit_name'] = 
$lng->
txt(
'btn_add');
    76         $ajax_url = $ilCtrl->getLinkTargetByClass(
    77             array(get_class($parent_object),
'ilStudyProgrammeRepositorySearchGUI'),
    84         $ul = 
new ilTextInputGUI($a_options[
'auto_complete_name'], 
'user_login');
    85         $ul->setDataSource($ajax_url);
    86         $ul->setSize($a_options[
'auto_complete_size']);
    88             $toolbar->addInputItem($ul, 
true);
    90             $toolbar->addStickyItem($ul, 
true);
    93         if (count($a_options[
'user_type'] ?? [])) {
    95             $si->setOptions($a_options[
'user_type']);
    97                 $toolbar->addInputItem($si);
    99                 $toolbar->addStickyItem($si);
   103         $button = 
$ui_factory->button()->standard($a_options[
'submit_name'], 
'#')
   106                 document.getElementById('$id').addEventListener('click',   108                     let frm = this.closest('form');   109                     frm.action = frm.action + '&cmd=addUserFromAutoComplete';   115         $toolbar->addComponent($button);
   117         if ((
bool) $a_options[
'add_search'] ||
   118             is_numeric($a_options[
'add_from_container'])) {
   121             $toolbar->addSeparator();
   123             if ((
bool) $a_options[
'add_search']) {
   126                     $ilCtrl->getLinkTargetByClass(
'ilStudyProgrammeRepositorySearchGUI', 
'')
   128                 $toolbar->addComponent($link);
   131             if (isset($a_options[
'add_from_container']) && is_numeric($a_options[
'add_from_container'])) {
   132                 $parent_ref_id = (
int) $a_options[
'add_from_container'];
   134                 $parent_container_type = 
"grp";
   135                 if (!$parent_container_ref_id) {
   137                     $parent_container_type = 
"crs";
   139                 if ($parent_container_ref_id) {
   140                     if ((
bool) $a_options[
'add_search']) {
   141                         $toolbar->addSpacer();
   144                     $ilCtrl->setParameterByClass(
   145                         'ilStudyProgrammeRepositorySearchGUI',
   151                         $lng->
txt(
'search_add_members_from_container_' . $parent_container_type),
   152                         $ilCtrl->getLinkTargetByClass(
   153                             [get_class($parent_object),
'ilStudyProgrammeRepositorySearchGUI'],
   157                     $toolbar->addComponent($link);
   162         $toolbar->setFormAction(
   163             $ilCtrl->getFormActionByClass(
   165                     get_class($parent_object),
   166                     'ilStudyProgrammeRepositorySearchGUI')
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
loadLanguageModule(string $a_module)
Load language module. 
 
static fillAutoCompleteToolbar( $parent_object, ilToolbarGUI $toolbar=null, $a_options=array(), $a_sticky=false)
This is just the same as in the parent class, except for the hardcoded class name. 
 
static _lookupObjId(int $ref_id)
 
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
 
RefineryFactory $refinery
 
Custom repository search gui class for study programme to make it possible to get a handle on users s...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins