Class ZoneRuleContainer
-
ObjRuleContainer
uses
PathableName,
XmlConvertible
-
ZoneRuleContainer
Located at container-classes/ZoneRuleContainer.php
Methods summary
public
|
#
__construct( mixed $owner )
|
public
boolean
|
#
addZone( Zone $Obj, mixed $rewritexml = TRUE )
add a Zone to this store
Parameters
- $Obj
boolean $rewritexml
- $rewritexml
Returns
boolean
|
public
boolean
|
#
API_addZone( Zone $Obj, mixed $rewritexml = TRUE )
add a Zone to this store
Parameters
- $Obj
boolean $rewritexml
- $rewritexml
Returns
boolean
|
public
boolean
|
#
removeZone( Zone $Obj, boolean $rewritexml = TRUE, mixed $forceAny = FALSE )
remove a Zone a Zone to this store. Be careful if you remove last zone as it
would become 'any' and won't let you do so.
remove a Zone a Zone to this store. Be careful if you remove last zone as it
would become 'any' and won't let you do so.
Parameters
- $Obj
boolean $rewritexml
- $rewritexml
boolean $forceAny
- $forceAny
Returns
boolean True if Zone was found and removed. False if not found.
|
public
boolean
|
#
API_removeZone( Zone $Obj, boolean $rewritexml = TRUE, boolean $forceAny = FALSE )
Parameters
- $Obj
Zone $Obj
- $rewritexml
boolean $rewritexml
- $forceAny
boolean $forceAny
Returns
boolean
|
public
|
|
public
boolean
|
#
hasZone( Zone|string $zone, mixed $caseSensitive = TRUE )
Parameters
- $zone
Zone|string $zone can be Zone object or zone name (string). this is case sensitive
- $caseSensitive
Returns
boolean
|
public
Zone[]
|
#
zones( )
return an array with all Zones in this store
return an array with all Zones in this store
Returns
|
public
|
|
public
|
|
public
|
#
merge( mixed $other )
Merge this set of Zones with another one (in paramater). If one of them is
'any' then the result will be 'any'.
Merge this set of Zones with another one (in paramater). If one of them is
'any' then the result will be 'any'.
|
public
boolean
|
#
includesContainer( ZoneRuleContainer $other, mixed $anyIsAcceptable = TRUE, mixed & $foundZones = array() )
To determine if a container has all the zones from another container. Very
useful when looking to compare similar rules.
To determine if a container has all the zones from another container. Very
useful when looking to compare similar rules.
Parameters
- $other
mixed $other
- $anyIsAcceptable
mixed $anyIsAcceptable * @param $missingZones
- $foundZones
Returns
boolean true if Zones from $other are all in this store
|
public
|
|
public
&
|
|
public
|
|
public
boolean
|
|
Methods inherited from ObjRuleContainer
API_replaceReferencedObject(),
__destruct(),
count(),
display(),
displayMembersDiff(),
equals(),
equals_fasterHash(),
generateFastHashComp(),
getAll(),
getFastHashComp(),
getItemAtPosition(),
getMembersDiff(),
has(),
hasObjectRegex(),
name(),
referencedObjectRenamed(),
remove(),
removeAll(),
replaceReferencedObject(),
setName()
|
Properties summary
public
null|ZoneStore
|
$parentCentralStore |
null |
|