ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilClientList Class Reference

client management More...

+ Collaboration diagram for ilClientList:

Public Member Functions

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

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.

Constructor & Destructor Documentation

◆ __construct()

ilClientList::__construct (   $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

References init().

+ Here is the call graph for this function:

Member Function Documentation

◆ getClients()

ilClientList::getClients ( )
Returns
ilClient[]

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

79 {
80 return ($this->clients) ? $this->clients : array();
81 }

◆ 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 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
58 continue;
59 }
60
61 if (is_file($this->path . "/" . $entry . "/client.ini.php")) {
62 $client = new ilClient($entry, $this->db_connections);
63 $client->init();
64
65 $this->clients[$entry] = $client;
66
67 unset($client);
68 }
69 }
70
71 // chdir($tmpPath);
72 }
Client Management.
if($_SERVER['argc']< 4) $client
Definition: cron.php:12
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
Definition: date.php:296

References $client, and $d.

Referenced by __construct().

+ 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: