Public Member Functions | Data Fields

ilClientList Class Reference

Public Member Functions

 ilClientList ()
 init ()
 load all clients into clientlist
 getClients ()
 get all clients

Data Fields

 $ini
 $path
 $error = ""

Detailed Description

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


Member Function Documentation

ilClientList::getClients (  ) 

get all clients

Returns:
array array with client objects

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

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

ilClientList::ilClientList (  ) 

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

References init().

        {               
                $this->path = ILIAS_ABSOLUTE_PATH."/".ILIAS_WEB_DIR;
                $this->init();
        }

Here is the call graph for this function:

ilClientList::init (  ) 

load all clients into clientlist

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

References $client, and $d.

Referenced by ilClientList().

        {
                // set path to directory where clients reside
                $d = dir($this->path);
                $tmpPath = getcwd();
                chdir ($this->path);

                // get available lang-files
                while ($entry = $d->read())
                {
                        if (is_file($this->path."/".$entry."/client.ini.php"))
                        {
                                $client = new ilClient($entry);
                                $client->init();
                                
                                $this->clients[$entry] = $client;
                                
                                unset($client);
                        }
                }

                chdir($tmpPath);
        }

Here is the caller graph for this function:


Field Documentation

ilClientList::$error = ""

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

ilClientList::$ini

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

ilClientList::$path

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


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