mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
lib: Support isset()' and
empty()' checks on CLI params
This commit is contained in:
parent
084691570e
commit
fa9bd59565
@ -108,6 +108,18 @@ class Params
|
||||
return $this->standalone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Support isset() and empty() checks on options
|
||||
*
|
||||
* @param $name
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function __isset($name)
|
||||
{
|
||||
return isset($this->params[$name]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Params::get()
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user