public function isForPublicZone(bool $strict = false)
    {
        if (!method_exists($this, 'getZone')) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_FEATURE_NOT_IMPLEMENTED);
        }

        $zone = $this->getZone();

        return ($zone === CNabuSite::ZONE_PUBLIC || (!$strict && $zone === CNabuSite::ZONE_BOTH));
    }
public function isForPublicZone(bool $strict = false)
    {
        if (!method_exists($this, 'getZone')) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_FEATURE_NOT_IMPLEMENTED);
        }

        $zone = $this->getZone();

        return ($zone === CNabuSite::ZONE_PUBLIC || (!$strict && $zone === CNabuSite::ZONE_BOTH));
    }
public function isForPublicZone ( bool $ strict = false ) { if ( ! method_exists ( $ this , 'getZone' ) ) { throw new ENabuCoreException ( ENabuCoreException :: ERROR_FEATURE_NOT_IMPLEMENTED ) ; } $ zone = $ this -> getZone ( ) ; return ( $ zone === CNabuSite :: ZONE_PUBLIC || ( ! $ strict && $ zone === CNabuSite :: ZONE_BOTH ) ) ; }
Check if the Role is applied to Public Zone.
@param bool $strict If true, only roles with nb_site_map_role_zone = 'O' are valid. If false, 'O' and 'B' values
are true.
@return bool Return true if the Role applies to Public Zone.
Check if the Role is applied to Public Zone .