ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
AuthSource.php
Go to the documentation of this file.
1 <?php
9 
10 
14  private $authsource;
15 
16 
20  private $reason;
21 
22 
29  public function __construct($authsource, $reason, $cause = NULL) {
30  assert('is_string($authsource)');
31  assert('is_string($reason)');
32 
33  $this->authsource = $authsource;
34  $this->reason = $reason;
35  parent::__construct(
36  array(
37  'AUTHSOURCEERROR',
38  '%AUTHSOURCE%' => htmlspecialchars(var_export($this->authsource, TRUE)),
39  '%REASON%' => htmlspecialchars(var_export($this->reason, TRUE))
40  ),
41  $cause
42  );
43 
44  $this->message = "Error with authentication source '$authsource': $reason";
45  }
46 
47 
53  public function getAuthSource() {
54  return $this->authsource;
55  }
56 
57 
63  public function getReason() {
64  return $this->reason;
65  }
66 
67 
68 }
getReason()
Retrieve the reason why the request was invalid.
Definition: AuthSource.php:63
getAuthSource()
Retrieve the authsource module name from where this error was thrown.
Definition: AuthSource.php:53
$authsource
Authsource module name.
Definition: AuthSource.php:14
Create styles array
The data for the language used.
$reason
Reason why this request was invalid.
Definition: AuthSource.php:20
__construct($authsource, $reason, $cause=NULL)
Create a new AuthSource error.
Definition: AuthSource.php:29