ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilClientList Class Reference

client management More...

+ Collaboration diagram for ilClientList:

Public Member Functions

 ilClientList ($a_db_connections)
 
 init ()
 load all clients into clientlist More...
 
 getClients ()
 get all clients More...
 

Data Fields

 $ini
 
 $path
 
 $error = ""
 

Detailed Description

client management

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

Definition at line 32 of file class.ilClientList.php.

Member Function Documentation

◆ getClients()

ilClientList::getClients ( )

get all clients

Returns
array array with client objects

Definition at line 80 of file class.ilClientList.php.

81 {
82 return ($this->clients) ? $this->clients : array();
83 }

◆ ilClientList()

ilClientList::ilClientList (   $a_db_connections)

Definition at line 38 of file class.ilClientList.php.

39 {
40 $this->db_connections = $a_db_connections;
41 $this->path = ILIAS_ABSOLUTE_PATH."/".ILIAS_WEB_DIR;
42 $this->init();
43 }
init()
load all clients into clientlist
const ILIAS_WEB_DIR
const ILIAS_ABSOLUTE_PATH

References ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, and init().

+ Here is the call graph for this function:

◆ init()

ilClientList::init ( )

load all clients into clientlist

Definition at line 48 of file class.ilClientList.php.

49 {
50 // set path to directory where clients reside
51 $d = dir($this->path);
52// $tmpPath = getcwd();
53// chdir ($this->path);
54
55 // get available lang-files
56 while ($entry = $d->read())
57 {
58 if (!is_dir($this->path . "/" . $entry)) { // If a file is in the directory and open_basedir is activated, is_file($this->path."/".$entry."/client.ini.php") throws a warning. e.g. .DS_STORE
59 continue;
60 }
61
62 if (is_file($this->path."/".$entry."/client.ini.php"))
63 {
64 $client = new ilClient($entry, $this->db_connections);
65 $client->init();
66
67 $this->clients[$entry] = $client;
68
69 unset($client);
70 }
71 }
72
73// chdir($tmpPath);
74 }
Client Management.

References $client, and $d.

Referenced by ilClientList().

+ Here is the caller graph for this function:

Field Documentation

◆ $error

ilClientList::$error = ""

Definition at line 36 of file class.ilClientList.php.

◆ $ini

ilClientList::$ini

Definition at line 34 of file class.ilClientList.php.

◆ $path

ilClientList::$path

Definition at line 35 of file class.ilClientList.php.


The documentation for this class was generated from the following file: