mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
LSurlRequest :: add __isset method
This commit is contained in:
parent
ac2416a967
commit
5c372cdb44
1 changed files with 13 additions and 0 deletions
|
@ -65,4 +65,17 @@ class LSurlRequest {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check is request info is set
|
||||
*
|
||||
* @param[in] $key string The name of the info
|
||||
*
|
||||
* @retval boolval True is info is set, False otherwise
|
||||
**/
|
||||
public function __isset($key) {
|
||||
if (in_array($key, array('current_url', 'handler', 'authenticated')))
|
||||
return True;
|
||||
return array_key_exists($key, $this->url_params);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue