WatchGuardPolicy
extends WatchGuardObject
in package
Class WatchGuardPolicy
Table of Contents
Properties
- $firewallAction : string
- stores firewall action Allow/Block/Reject
- $default : mixed
- $enabled : mixed
- $jsonObject : mixed
- $obj : SimpleXMLElement
- $objectType : mixed
- $property : property
- $refcount : int
- $referencedBy : array<string|int, mixed>
- $XMLObject : mixed
- $aliasesFrom : array<string|int, mixed>
- stores all aliases from from: part
- $aliasesTo : array<string|int, mixed>
- stores all aliases from to: part
- $tags : array<string|int, mixed>
- stores all tags
Methods
- __construct() : mixed
- WatchGuardPolicy constructor.
- debug() : void
- print object as debug output
- getAction() : string
- getAliasesFrom() : array<string|int, mixed>
- retrieves the alias into the aliasesFrom array.
- getAliasesTo() : array<string|int, mixed>
- retrieves the alias into the aliasesTo array.
- getDescription() : mixed
- getDescriptionPretty() : mixed
- getFirewallAction() : string
- getJsonObject() : mixed
- getName() : mixed
- getNamePretty() : mixed
- getReferencedAliases() : array<string|int, mixed>
- find referenced aliases in policy: look at from:, look at to:
- getReferencedAliasesFrom() : array<string|int, mixed>
- find referenced aliasesFrom in policy: look at from:, look at to:
- getReferencedAliasesTo() : array<string|int, mixed>
- find referenced aliasesTo in policy: look at from:, look at to:
- getReferencedTags() : array<string|int, mixed>
- find referenced tags in policy
- getService() : string
- returns the name of the service of this policy
- getTags() : array<string|int, mixed>
- retrieves the tags into the tags array.
- getType() : mixed
- isDefault() : bool
- isEnabled() : bool
- returns the enable/disable state of this policy
- isReferenced() : mixed
- isUnused() : mixed
- isXMLObject() : mixed
- prepareJson() : mixed
- setDefault() : mixed
- setEnabled() : mixed
- setFirewallAction() : mixed
- storeAliasesFrom() : mixed
- stores the alias into the aliasesFrom array.
- storeAliasesTo() : mixed
- stores the alias into the aliasesTo array.
- storeReference() : mixed
- stores a reference to this object.
- storeTag() : mixed
- stores the tags into the tags array.
- textout() : mixed
- print this policy
- printName() : mixed
- print the name of $this
- verbosetextout() : mixed
- detailed printout of policy information
- getReferencedAliasesFromAliasList() : array<string|int, mixed>
- returns an array of alias names, that are referenced in an simppleXMLElement list like from: or to:
Properties
$firewallAction
stores firewall action Allow/Block/Reject
public
string
$firewallAction
$default
protected
mixed
$default
= false
$enabled
protected
mixed
$enabled
$jsonObject
protected
mixed
$jsonObject
= []
$obj
protected
SimpleXMLElement
$obj
stored object
$objectType
protected
mixed
$objectType
$property
protected
property
$property
of this object (proberty value from xml file)
$refcount
protected
int
$refcount
count of references to this object
$referencedBy
protected
array<string|int, mixed>
$referencedBy
list of object names which reference this object.
$XMLObject
protected
mixed
$XMLObject
= true
$aliasesFrom
stores all aliases from from: part
private
array<string|int, mixed>
$aliasesFrom
$aliasesTo
stores all aliases from to: part
private
array<string|int, mixed>
$aliasesTo
$tags
stores all tags
private
array<string|int, mixed>
$tags
Methods
__construct()
WatchGuardPolicy constructor.
public
__construct(SimpleXMLElement $element) : mixed
Parameters
- $element : SimpleXMLElement
debug()
print object as debug output
public
debug() : void
getAction()
public
getAction() : string
Return values
string —Allow|Deny
getAliasesFrom()
retrieves the alias into the aliasesFrom array.
public
getAliasesFrom() : array<string|int, mixed>
Return values
array<string|int, mixed>getAliasesTo()
retrieves the alias into the aliasesTo array.
public
getAliasesTo() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescription()
public
getDescription() : mixed
getDescriptionPretty()
public
getDescriptionPretty() : mixed
getFirewallAction()
public
getFirewallAction() : string
Return values
stringgetJsonObject()
public
getJsonObject() : mixed
getName()
public
getName() : mixed
getNamePretty()
public
getNamePretty() : mixed
getReferencedAliases()
find referenced aliases in policy: look at from:, look at to:
public
getReferencedAliases() : array<string|int, mixed>
Return values
array<string|int, mixed>getReferencedAliasesFrom()
find referenced aliasesFrom in policy: look at from:, look at to:
public
getReferencedAliasesFrom() : array<string|int, mixed>
Return values
array<string|int, mixed>getReferencedAliasesTo()
find referenced aliasesTo in policy: look at from:, look at to:
public
getReferencedAliasesTo() : array<string|int, mixed>
Return values
array<string|int, mixed>getReferencedTags()
find referenced tags in policy
public
getReferencedTags() : array<string|int, mixed>
Return values
array<string|int, mixed>getService()
returns the name of the service of this policy
public
getService() : string
Return values
stringgetTags()
retrieves the tags into the tags array.
public
getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>getType()
public
getType() : mixed
isDefault()
public
isDefault() : bool
Return values
boolisEnabled()
returns the enable/disable state of this policy
public
isEnabled() : bool
Return values
boolisReferenced()
public
isReferenced() : mixed
isUnused()
public
isUnused() : mixed
isXMLObject()
public
isXMLObject() : mixed
prepareJson()
public
prepareJson(mixed $xmlfile) : mixed
Parameters
- $xmlfile : mixed
setDefault()
public
setDefault(bool $default) : mixed
Parameters
- $default : bool
setEnabled()
public
setEnabled(bool $value) : mixed
Parameters
- $value : bool
setFirewallAction()
public
setFirewallAction(string $firewallAction) : mixed
Parameters
- $firewallAction : string
storeAliasesFrom()
stores the alias into the aliasesFrom array.
public
storeAliasesFrom(mixed $aliasarray) : mixed
Parameters
- $aliasarray : mixed
storeAliasesTo()
stores the alias into the aliasesTo array.
public
storeAliasesTo(mixed $aliasarray) : mixed
Parameters
- $aliasarray : mixed
storeReference()
stores a reference to this object.
public
storeReference(mixed $name, mixed $type) : mixed
Parameters
- $name : mixed
-
string name of reference to store
- $type : mixed
-
string type of reference (policy|alias|...)
storeTag()
stores the tags into the tags array.
public
storeTag(mixed $tag) : mixed
Parameters
- $tag : mixed
textout()
print this policy
public
textout(WatchGuardXMLFile $xmlfile) : mixed
Parameters
- $xmlfile : WatchGuardXMLFile
printName()
print the name of $this
protected
printName(mixed $xmlfile) : mixed
Parameters
- $xmlfile : mixed
-
WatchGuardXMLFile in which other objects can be found
verbosetextout()
detailed printout of policy information
protected
verbosetextout(WatchGuardXMLFile $xmlfile) : mixed
Parameters
- $xmlfile : WatchGuardXMLFile
getReferencedAliasesFromAliasList()
returns an array of alias names, that are referenced in an simppleXMLElement list like from: or to:
private
getReferencedAliasesFromAliasList(mixed $list) : array<string|int, mixed>
Parameters
- $list : mixed
-
simpleXMLElement