public function getOptionIdForName($name)
    {

        // query whether or not an option ID for the passed name is available
        if (isset($this->nameOptionIdMapping[$name])) {
            return $this->nameOptionIdMapping[$name];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Can\'t find option ID for name %s', $name)
            )
        );
    }
public function getOptionIdForName($name)
    {

        // query whether or not an option ID for the passed name is available
        if (isset($this->nameOptionIdMapping[$name])) {
            return $this->nameOptionIdMapping[$name];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Can\'t find option ID for name %s', $name)
            )
        );
    }
public function getOptionIdForName ( $ name ) { // query whether or not an option ID for the passed name is available if ( isset ( $ this -> nameOptionIdMapping [ $ name ] ) ) { return $ this -> nameOptionIdMapping [ $ name ] ; } // throw an exception, if not throw new \ Exception ( $ this -> appendExceptionSuffix ( sprintf ( 'Can\'t find option ID for name %s' , $ name ) ) ) ; }
Return's the option ID for the passed name.

@param string $name The name to return the option ID for

@return integer The option ID for the passed name
@throws \Exception Is thrown, if no option ID for the passed name is available
Return s the option ID for the passed name .