Methods summary
public
|
#
__construct( RuleStore $owner, boolean $fromTemplateXML = FALSE )
Parameters
- $owner
RuleStore $owner
- $fromTemplateXML
boolean $fromTemplateXML
|
public
|
|
public
string
|
#
type( )
Returns
string type of this rule : 'universal', 'intrazone', 'interzone'
|
public
|
|
public
|
#
API_setType( mixed $type )
|
public
|
#
securityProfileIsBlank( )
|
public
string
|
#
securityProfileType( )
return profile type: 'group' or 'profile' or 'none'
return profile type: 'group' or 'profile' or 'none'
Returns
string
|
public
|
#
securityProfileGroup( )
|
public
|
|
public
|
#
securityProfiles_obj( )
|
public
|
#
removeSecurityProfile( )
|
public
|
#
API_removeSecurityProfile( )
|
public
|
#
setSecurityProfileGroup( mixed $newgroup )
|
public
|
#
API_setSecurityProfileGroup( mixed $newgroup )
|
public
|
#
setSecProf_AV( mixed $newAVprof )
|
public
|
#
setSecProf_Vuln( mixed $newAVprof )
|
public
|
#
setSecProf_URL( mixed $newAVprof )
|
public
|
#
setSecProf_DataFilt( mixed $newAVprof )
|
public
|
#
setSecProf_FileBlock( mixed $newAVprof )
|
public
|
#
setSecProf_Spyware( mixed $newAVprof )
|
public
|
#
setSecProf_Wildfire( mixed $newAVprof )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
#
urlCategoriesHas( string $category )
Parameters
- $category
string $category
Returns
boolean return TRUE if this rule is using the category defined in $category
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setAction( mixed $newAction )
|
public
|
#
API_setAction( mixed $newAction )
|
public
boolean
|
#
logStart( )
return true if rule is set to Log at Start
return true if rule is set to Log at Start
Returns
boolean
|
public
boolean
|
#
setLogStart( boolean $yes )
enabled or disabled logging at start
enabled or disabled logging at start
Parameters
Returns
boolean
|
public
boolean
|
#
logEnd( )
return true if rule is set to Log at End
return true if rule is set to Log at End
Returns
boolean
|
public
boolean
|
#
setLogEnd( boolean $yes )
enable or disabled logging at end
enable or disabled logging at end
Parameters
Returns
boolean
|
public
boolean
|
#
API_setLogEnd( boolean $yes )
enable or disabled logging at end
enable or disabled logging at end
Parameters
Returns
boolean
|
public
boolean
|
#
API_setLogStart( boolean $yes )
enable or disabled logging at end
enable or disabled logging at end
Parameters
Returns
boolean
|
public
boolean
|
|
public
|
#
display( mixed $padding = 0 )
Helper function to quickly print a function properties to CLI
Helper function to quickly print a function properties to CLI
|
public
&
|
#
API_getAppStats( mixed $timePeriod, mixed $excludedApps )
|
public
&
|
#
API_getAppContainerStats( mixed $timePeriod = 'last-30-days', mixed $fastMode = TRUE, mixed $limit = 50, mixed $excludedApps = array() )
|
public
array|DomDocument
&
|
#
API_getAppContainerStats2( integer $startTimestamp, null|integer $endTimestamp = null, boolean|true $fastMode = TRUE, integer $limit = 50, array $excludedApps = array() )
Parameters
- $startTimestamp
integer $startTimestamp
- $endTimestamp
null|integer $endTimestamp
- $fastMode
boolean|true $fastMode
- $limit
integer $limit
- $excludedApps
array $excludedApps
Returns
array|DomDocument
Throws
|
public
&
|
#
API_getServiceStats( mixed $timePeriod = 'last-30-days', mixed $fastMode = TRUE, mixed $limit = 50, mixed $specificApps = null )
|
public
&
|
#
API_getAddressStats( mixed $timePeriod = 'last-30-days', mixed $srcORdst = 'src', mixed $fastMode = TRUE, mixed $limit = 50, mixed $excludedAddresses = array() )
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
boolean
|
#
setDsri( boolean $dsri )
disable rule if $disabled = true, enable it if not
disable rule if $disabled = true, enable it if not
Parameters
Returns
boolean true if value has changed
|
public
boolean
|
#
API_setDsri( boolean $dsri )
disable rule if $dsri = true, enable it if not
disable rule if $dsri = true, enable it if not
Parameters
Returns
boolean true if value has changed
|
public
|
|
public
|
#
setHipProfile( mixed $hipProfile )
|
public
|
#
API_setHipProfil( mixed $hipProfile )
|
public
null
|
#
schedule( )
return schedule txt if rule has scheduler set
return schedule txt if rule has scheduler set
Returns
null
|
public
boolean
|
#
setSchedule( null|string $newSchedule = null )
Parameters
- $newSchedule
null|string $newSchedule empty or null description will erase existing one
Returns
boolean false if no update was made to description (already had same value)
|
public
boolean
|
#
API_setSchedule( mixed $newSchedule )
Returns
boolean true if value was changed
|
public
boolean
|
#
removeSchedule( )
Returns
boolean false if no update was made to description (already had same value)
|
public
boolean
|
#
API_removeSchedule( )
Returns
boolean true if value was changed
|
public
boolean
|
#
setQoSMarking( null|string $arg1 = null, mixed $arg2 = null )
Parameters
- $arg1
null|string $newSchedule empty or null description will erase existing one
- $arg2
Returns
boolean false if no update was made to description (already had same value)
|
public
boolean
|
#
API_setQoSMarking( mixed $arg1, mixed $arg2 )
Returns
boolean true if value was changed
|
public
boolean
|
#
removeQoSmarking( )
Returns
boolean false if no update was made to description (already had same value)
|
public
boolean
|
#
API_removeQoSmarking( )
Returns
boolean true if value was changed
|
public
boolean
|
#
includedInRule( SecurityRule $rule, mixed $action = 'none', mixed $isAPI = false, mixed $print = false )
Parameters
Returns
boolean false also if service partial match!!!
|