ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilECSAuth.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
33 class ilECSAuth
34 {
35  protected $log;
36  protected $mids = array();
37 
38  //public $url;
39  public $realm;
40  # public $hash;
41  # public $sov;
42  # public $eov;
43  # public $url;
44  # public $abbr;
45  # public $pid;
46 
47 
55  public function __construct()
56  {
57  global $DIC;
58 
59  $ilLog = $DIC['ilLog'];
60 
61  $this->log = $ilLog;
62  }
63 
64  public function setPid($a_pid)
65  {
66  $this->pid = $a_pid;
67  }
68 
69  public function getPid()
70  {
71  return $this->pid;
72  }
73 
78  public function setUrl($a_url)
79  {
80  $this->url = $a_url;
81  }
82 
87  public function getUrl()
88  {
89  return $this->url;
90  }
91 
92  public function setRealm($a_realm)
93  {
94  $this->realm = $a_realm;
95  }
96 
97  public function getRealm()
98  {
99  return $this->realm;
100  }
101 
108  public function getHash()
109  {
110  return $this->hash;
111  }
112 
120  public function setSOV($a_sov)
121  {
122  include_once './Services/Calendar/classes/class.ilDateTime.php';
123  $dt = new ilDateTime($a_sov, IL_CAL_UNIX);
124  $this->sov = $dt->get(IL_CAL_ISO_8601);
125  }
126 
134  public function setEOV($a_eov)
135  {
136  include_once './Services/Calendar/classes/class.ilDateTime.php';
137  $dt = new ilDateTime($a_eov, IL_CAL_UNIX);
138  $this->sov = $dt->get(IL_CAL_ISO_8601);
139  }
140 }
setRealm($a_realm)
global $DIC
Definition: saml.php:7
const IL_CAL_UNIX
setPid($a_pid)
getHash()
get hash
setEOV($a_eov)
set EOV
const IL_CAL_ISO_8601
Date and time handling
setUrl($a_url)
URL.
setSOV($a_sov)
set SOV
$url
getUrl()
get Url
__construct()
constuctor