Documentation

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

$property

protected property $property

of this object (proberty value from xml file)

$referencedBy

protected array<string|int, mixed> $referencedBy

list of object names which reference this object.

$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

Methods

__construct()

WatchGuardPolicy constructor.

public __construct(SimpleXMLElement $element) : mixed
Parameters
$element : SimpleXMLElement

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>

getFirewallAction()

public getFirewallAction() : string
Return values
string

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
string

getTags()

retrieves the tags into the tags array.

public getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

isEnabled()

returns the enable/disable state of this policy

public isEnabled() : bool
Return values
bool

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

printName()

print the name of $this

protected printName(mixed $xmlfile) : mixed
Parameters
$xmlfile : mixed

WatchGuardXMLFile in which other objects can be found

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

Return values
array<string|int, mixed>

        
On this page

Search results