public function isVisibilityAllowed($visibility)
    {
        $visibilityAllowed = $this->getSettings()
            ? $this->getSettings()->getVisibility()
            : Settings::VISIBILITY_DEFAULT;

        return (bool) ($visibilityAllowed & $visibility);
    }
public function isVisibilityAllowed($visibility)
    {
        $visibilityAllowed = $this->getSettings()
            ? $this->getSettings()->getVisibility()
            : Settings::VISIBILITY_DEFAULT;

        return (bool) ($visibilityAllowed & $visibility);
    }
public function isVisibilityAllowed ( $ visibility ) { $ visibilityAllowed = $ this -> getSettings ( ) ? $ this -> getSettings ( ) -> getVisibility ( ) : Settings :: VISIBILITY_DEFAULT ; return ( bool ) ( $ visibilityAllowed & $ visibility ) ; }
Checks whether the Project supports the given visibility.

@param integer $visibility One of the VISIBILITY_* constants of the Settings class.

@see Settings for a list of the available VISIBILITY_* constants.

@return boolean
Checks whether the Project supports the given visibility .