ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 76 of file class.ilClientList.php.

77  {
78  return ($this->clients) ? $this->clients : array();
79  }

◆ ilClientList()

ilClientList::ilClientList (   $a_db_connections)

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

References ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, and init().

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

References $client, and $d.

Referenced by ilClientList().

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_file($this->path."/".$entry."/client.ini.php"))
59  {
60  $client = new ilClient($entry, $this->db_connections);
61  $client->init();
62 
63  $this->clients[$entry] = $client;
64 
65  unset($client);
66  }
67  }
68 
69 // chdir($tmpPath);
70  }
Client Management.
+ 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: