ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilRoleAutoCompleteInputGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Form/classes/class.ilTextInputGUI.php");
5
14{
21 function __construct($a_title, $a_postvar, $a_class, $a_autocomplete_cmd)
22 {
23 global $ilCtrl;
24
25 if (is_object($a_class))
26 {
27 $a_class = get_class($a_class);
28 }
29 $a_class = strtolower($a_class);
30
31 parent::__construct($a_title, $a_postvar);
32 $this->setInputType("raci");
33 $this->setMaxLength(70);
34 $this->setSize(30);
35 $this->setDataSource($ilCtrl->getLinkTargetByClass($a_class, $a_autocomplete_cmd, "", true));
36 }
37
41 static function echoAutoCompleteList()
42 {
43 $q = $_REQUEST["term"];
44 include_once("./Services/AccessControl/classes/class.ilRoleAutoComplete.php");
46 echo $list;
47 exit;
48 }
49}
This class represents a role + autocomplete feature form input.
__construct($a_title, $a_postvar, $a_class, $a_autocomplete_cmd)
Constructor.
static echoAutoCompleteList()
Static asynchronous default auto complete function.
static getList($a_str)
Get completion list.
This class represents a text property in a property form.
setInputType($a_type)
set input type
setMaxLength($a_maxlength)
Set Max Length.
setDataSource($href, $a_delimiter=null)
set datasource link for js autocomplete
setSize($a_size)
Set Size.
global $ilCtrl
Definition: ilias.php:18
exit
Definition: login.php:54
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7