src/Subjects/BunchSubject.php
public function getVisibilityIdByValue($visibility)
    {

        // query whether or not, the requested visibility is available
        if (isset($this->availableVisibilities[$visibility])) {
            // load the visibility ID, add the mapping and return the ID
            return $this->availableVisibilities[$visibility];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid visibility %s', $visibility)
            )
        );
    }
public function getVisibilityIdByValue($visibility)
    {

        // query whether or not, the requested visibility is available
        if (isset($this->availableVisibilities[$visibility])) {
            // load the visibility ID, add the mapping and return the ID
            return $this->availableVisibilities[$visibility];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid visibility %s', $visibility)
            )
        );
    }
public function getVisibilityIdByValue ( $ visibility ) { // query whether or not, the requested visibility is available if ( isset ( $ this -> availableVisibilities [ $ visibility ] ) ) { // load the visibility ID, add the mapping and return the ID return $ this -> availableVisibilities [ $ visibility ] ; } // throw an exception, if not throw new \ Exception ( $ this -> appendExceptionSuffix ( sprintf ( 'Found invalid visibility %s' , $ visibility ) ) ) ; }
Return's the visibility key for the passed visibility string.

@param string $visibility The visibility string to return the key for

@return integer The requested visibility key
@throws \Exception Is thrown, if the requested visibility is not available
Return s the visibility key for the passed visibility string .