__group__,ticket,summary,component,milestone,type,severity,created,_description_,_changetime,_reporter
schst,145,Add issetConfigValue() method,patConfiguration Class,v2.1.0,enhancement,normal,2005-06-13T18:32:48+02:00,"Sometimes it may be necessary to find out whether a config variable is set, but
you don't want to use a help variable to check if getConfigValue() returns
false. So I suggest to add an issetConfigValue() method:
{{{
    function issetConfigValue($path = '')
    {
        if( $path == '' and count( $this->conf ) == 0 ) {
            return false;
        }
	    
        if( strstr( $path, '*' ) ) {
            $path       =   str_replace( '.', '\.', $path );
            $path       =   '^'.str_replace( '*', '.*', $path ).'$';
            $values     =   array();
            foreach( $this->conf as $key => $value ) {
                if( eregi( $path, $key ) ) {
                    return  true;
                }
            }
            return	false;
        }

        //	check wether a value of an array was requested
        if( $index	= strrchr( $path, '[' ) ) {
            $path       =	substr( $path, 0, strrpos( $path, '[' ) );
            #$index     =	substr( $index, 1, ( strlen( $index ) - 2 ) );
            $tmp        =	$this->issetConfigValue( $path );
            return	$tmp;
        }

        return  isset( $this->conf[$path] );
    }
}}}",2006-05-30T10:36:57+02:00,frank.kleine@…
schst,146,Enable remote xml files for xinc in XML_Reader,Reader_XML,v2.1.0,enhancement,normal,2005-08-30T11:20:41+02:00,"It would be nice if you could include remote xml files with the XML_Reader. To enable this, replace
{{{
$file = $this->configObj->getFullPath( $options['href'], $relativeTo );
    
if ($file === false) {
    return false;
}
}}}
with
{{{
if ( ereg('^http[s]?://', $options['href']) == false ) {
    $file = $this->configObj->getFullPath( $options['href'], $relativeTo );
    
    if ($file === false) {
    	return	false;
    }
} else {
    $file = $options['href'];
}
}}}
in patConfiguration_Reader_XML::_xInclude().
However, you should be aware that this has serious security impacts for any application using remote xml files.",2006-05-30T10:36:42+02:00,frank.kleine@…
