Class WatchGuardXMLFile
package |
BOC |
---|
__construct( $xmlfilename)
loads the xmlfile, initializes all aliases, policies and services.
findAliasRefByPolicy()
findAliasReferences()
or at least tries to. could be more sophisticated, but this is a quick start with hitting feels like about 98%
findServiceRefByPolicy()
findTagRefByPolicy()
tags are not stored in
getAllAliases()
getAllPolicies()
also initializes the alias references; if an alias is referenced by this policy, it is stored at the alias object.
getAllServices()
getAllTags()
getXMLObject(\SimpleXMLElement $obj, $searchname) : \SimpleXMLElement|null
\SimpleXMLElement
\SimpleXMLElement|null
listAllAliases()
listAllPolicies()
listAllServices()
listAllTags()
printAlias( $aliasname)
resolveAliasAddress( $searchstring) : string
currently supports addresses and networks (addr/mask). and partly things like interfaces.
string
xmlfile : \SimpleXMLElement
var |
---|
\SimpleXMLElement
allAliases : array
var |
---|
array
allPolicies : array
var |
---|
array
allServices : array
var |
---|
array
allTags : array
var |
---|
array