mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
filter, add some getters for https://github.com/opnsense/core/issues/3312
This commit is contained in:
parent
4c0f9a797e
commit
a0b5942c8e
@ -364,4 +364,28 @@ abstract class Rule
|
||||
{
|
||||
return !empty($this->rule['descr']) ? $this->rule['descr'] : "";
|
||||
}
|
||||
|
||||
/**
|
||||
* return interface
|
||||
*/
|
||||
public function getInterface()
|
||||
{
|
||||
return !empty($this->rule['interface']) ? $this->rule['interface'] : "";
|
||||
}
|
||||
|
||||
/**
|
||||
* is rule enabled
|
||||
*/
|
||||
public function isEnabled()
|
||||
{
|
||||
return empty($this->rule['disabled']);
|
||||
}
|
||||
|
||||
/**
|
||||
* return raw rule
|
||||
*/
|
||||
public function getRawRule()
|
||||
{
|
||||
return $this->rule;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user