WatchGuardService
extends WatchGuardObject
in package
Class WatchGuardService
Table of Contents
Properties
- $default : mixed
- $enabled : mixed
- $jsonObject : mixed
- $obj : SimpleXMLElement
- $objectType : mixed
- $property : property
- $refcount : int
- $referencedBy : array<string|int, mixed>
- $XMLObject : mixed
- $serviceItems : mixed
- $servicePorts : mixed
Methods
- __construct() : mixed
- WatchGuardService constructor.
- debug() : void
- print object as debug output
- getDescription() : mixed
- getDescriptionPretty() : mixed
- getJsonObject() : mixed
- getName() : mixed
- getNamePretty() : mixed
- getProperty() : string
- Returns the property element of $this
- getServicePorts() : array<string|int, mixed>
- isDefault() : bool
- isEnabled() : mixed
- isReferenced() : mixed
- isUnused() : mixed
- isXMLObject() : mixed
- prepareJson() : mixed
- setDefault() : mixed
- setEnabled() : mixed
- storeReference() : mixed
- stores a reference to this object.
- textout() : mixed
- print the content of $this
- printName() : mixed
- print the name of $this
- verbosetextout() : mixed
- detailed printout of service information
Properties
$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
$serviceItems
private
mixed
$serviceItems
$servicePorts
private
mixed
$servicePorts
Methods
__construct()
WatchGuardService constructor.
public
__construct(SimpleXMLElement $element) : mixed
Parameters
- $element : SimpleXMLElement
debug()
print object as debug output
public
debug() : void
getDescription()
public
getDescription() : mixed
getDescriptionPretty()
public
getDescriptionPretty() : mixed
getJsonObject()
public
getJsonObject() : mixed
getName()
public
getName() : mixed
getNamePretty()
public
getNamePretty() : mixed
getProperty()
Returns the property element of $this
public
getProperty() : string
Return values
stringgetServicePorts()
public
getServicePorts() : array<string|int, mixed>
Return values
array<string|int, mixed>isDefault()
public
isDefault() : bool
Return values
boolisEnabled()
public
isEnabled() : mixed
isReferenced()
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
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|...)
textout()
print the content of $this
public
textout(mixed $xmlfile) : mixed
Parameters
- $xmlfile : mixed
-
WatchGuardXMLFile in which other objects can be found
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 service information
protected
verbosetextout(WatchGuardXMLFile $xmlfile) : mixed
Parameters
- $xmlfile : WatchGuardXMLFile