src/snac/client/webui/util/ConstellationPostMapper.php
/**
     * Parse a boolean
     *
     * Parses a boolean string or variable into an actual boolean.
     *
     * @param string|boolean $boolean The boolean value to parse
     * @return boolean The boolean value of the parameter
     */
Parse a boolean
Parses a boolean string or variable into an actual boolean.

@param string|boolean $boolean The boolean value to parse
@return boolean The boolean value of the parameter
Parse a boolean Parses a boolean string or variable into an actual boolean . @param string|boolean $boolean The boolean value to parse @return boolean The boolean value of the parameter
private function parseBoolean($boolean) {
        $type = gettype($boolean);
        switch($type) {
            case "boolean":
                return $boolean;
                break;
            case "string":
                if ($boolean == "true")
                    return true;
                else
                    return false;
                break;
            default:
                return false;
        }
    }
private function parseBoolean ( $ boolean ) { $ type = gettype ( $ boolean ) ; switch ( $ type ) { case " boolean " : return $ boolean ; break ; case " string " : if ( $ boolean == " true " ) return true ; else return false ; break ; default : return false ; } }
Parse a boolean
 Parses a boolean string or variable into an actual boolean.
Parse a boolean Parses a boolean string or variable into an actual boolean .