public function getBool($varname)
    {
        $value = $this->getString($varname);
        return $value === null ? null : $value && strtolower($value) !== 'off';
    }
public function getBool($varname)
    {
        $value = $this->getString($varname);
        return $value === null ? null : $value && strtolower($value) !== 'off';
    }
public function getBool ( $ varname ) { $ value = $ this -> getString ( $ varname ) ; return $ value === null ? null : $ value && strtolower ( $ value ) !== 'off' ; }
Gets configuration option value as a boolean.
Interprets the string value 'off' as false.

@param string $varname  The configuration option name.
@return null|bool       Null if configuration option does not exist.
False if configuration option is disabled.
True otherwise.
Gets configuration option value as a boolean . Interprets the string value off as false .