ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilLoggingErrorSettings Class Reference

Settings for the error protcoll system. More...

+ Collaboration diagram for ilLoggingErrorSettings:

Public Member Functions

 setMail ($mail)
 
 folder ()
 
 mail ()
 
 update ()
 writes mail recipient into client.ini.php More...
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 __construct ()
 
 setFolder ($folder)
 
 read ()
 reads the values from ilias.ini.php More...
 

Protected Attributes

 $folder
 
 $mail
 

Detailed Description

Settings for the error protcoll system.

Author
Stefan Hecken stefa.nosp@m.n.he.nosp@m.cken@.nosp@m.conc.nosp@m.epts-.nosp@m.and-.nosp@m.train.nosp@m.ing..nosp@m.de

Definition at line 9 of file class.ilLoggingErrorSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilLoggingErrorSettings::__construct ( )
protected

Definition at line 13 of file class.ilLoggingErrorSettings.php.

13 {
14 global $ilIliasIniFile, $ini, $ilClientIniFile;
15
16 //realy not nice but necessary to initalize logger at setup
17 //ilias_ini is named only as $ini in inc.setup_header.php
18 if(!$ilIliasIniFile) {
19 if(!$ini) {
20 throw new Exception("No ILIAS ini");
21 } else {
22 $this->ilias_ini = $ini;
23 }
24 } else {
25 $this->ilias_ini = $ilIliasIniFile;
26 }
27
28 if($ilClientIniFile !== null) {
29 $this->gClientIniFile = $ilClientIniFile;
30 }
31
32 $this->folder = null;
33 $this->mail = null;
34
35 $this->read();
36 }
read()
reads the values from ilias.ini.php
$ini
Definition: raiseError.php:4
$ilIliasIniFile

References $ilIliasIniFile, $ini, folder(), mail(), and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ folder()

ilLoggingErrorSettings::folder ( )

Definition at line 50 of file class.ilLoggingErrorSettings.php.

References $folder.

Referenced by __construct(), and setFolder().

+ Here is the caller graph for this function:

◆ getInstance()

static ilLoggingErrorSettings::getInstance ( )
static

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

38 {
39 return new ilLoggingErrorSettings();
40 }
Settings for the error protcoll system.

Referenced by ilLoggerCronCleanErrorFiles\__construct(), ilErrorHandling\defaultHandler(), and ilObjLoggingSettingsGUI\initErrorSettings().

+ Here is the caller graph for this function:

◆ mail()

ilLoggingErrorSettings::mail ( )

Definition at line 54 of file class.ilLoggingErrorSettings.php.

References $mail.

Referenced by __construct(), setMail(), and update().

+ Here is the caller graph for this function:

◆ read()

ilLoggingErrorSettings::read ( )
protected

reads the values from ilias.ini.php

Definition at line 61 of file class.ilLoggingErrorSettings.php.

61 {
62 $this->setFolder($this->ilias_ini->readVariable("log","error_path"));
63
64 if($this->gClientIniFile) {
65 $this->setMail($this->gClientIniFile->readVariable("log","error_recipient"));
66 }
67 }

References setFolder(), and setMail().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFolder()

ilLoggingErrorSettings::setFolder (   $folder)
protected

Definition at line 42 of file class.ilLoggingErrorSettings.php.

42 {
43 $this->folder = $folder;
44 }

References $folder, and folder().

Referenced by read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMail()

ilLoggingErrorSettings::setMail (   $mail)

Definition at line 46 of file class.ilLoggingErrorSettings.php.

46 {
47 $this->mail = $mail;
48 }

References $mail, and mail().

Referenced by read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update()

ilLoggingErrorSettings::update ( )

writes mail recipient into client.ini.php

Definition at line 72 of file class.ilLoggingErrorSettings.php.

72 {
73 $this->gClientIniFile->addGroup("log");
74 $this->gClientIniFile->setVariable("log", "error_recipient", trim($this->mail()));
75 $this->gClientIniFile->write();
76 }

References mail().

+ Here is the call graph for this function:

Field Documentation

◆ $folder

ilLoggingErrorSettings::$folder
protected

Definition at line 10 of file class.ilLoggingErrorSettings.php.

Referenced by folder(), and setFolder().

◆ $mail

ilLoggingErrorSettings::$mail
protected

Definition at line 11 of file class.ilLoggingErrorSettings.php.

Referenced by mail(), and setMail().


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