protected function configureIncludePaths()
    {
        // get ini include path and split it to an array
        $iniIncludePaths = explode(PATH_SEPARATOR, ini_get('include_path'));

        // default entry
        $includePathsDoozr = '.';

        // build Doozr include paths
        foreach (self::$path as $path) {
            $includePathsDoozr .= self::buildPath($path);
        }

        if (!empty($iniIncludePaths)) {
            foreach ($iniIncludePaths as $iniIncludePath) {
                // If '.' or existing path -> do not attach twice
                if (in_array($iniIncludePath, self::$path) || trim($iniIncludePath) == '.') {
                    continue;
                }

                $includePathsDoozr .= self::buildPath($iniIncludePath);
            }
        }

        // Now try to set the ini value include_path
        ini_set('include_path', $includePathsDoozr);

        return $this;
    }
protected function configureIncludePaths()
    {
        // get ini include path and split it to an array
        $iniIncludePaths = explode(PATH_SEPARATOR, ini_get('include_path'));

        // default entry
        $includePathsDoozr = '.';

        // build Doozr include paths
        foreach (self::$path as $path) {
            $includePathsDoozr .= self::buildPath($path);
        }

        if (!empty($iniIncludePaths)) {
            foreach ($iniIncludePaths as $iniIncludePath) {
                // If '.' or existing path -> do not attach twice
                if (in_array($iniIncludePath, self::$path) || trim($iniIncludePath) == '.') {
                    continue;
                }

                $includePathsDoozr .= self::buildPath($iniIncludePath);
            }
        }

        // Now try to set the ini value include_path
        ini_set('include_path', $includePathsDoozr);

        return $this;
    }
protected function configureIncludePaths ( ) { // get ini include path and split it to an array $ iniIncludePaths = explode ( PATH_SEPARATOR , ini_get ( 'include_path' ) ) ; // default entry $ includePathsDoozr = '.' ; // build Doozr include paths foreach ( self :: $ path as $ path ) { $ includePathsDoozr .= self :: buildPath ( $ path ) ; } if ( ! empty ( $ iniIncludePaths ) ) { foreach ( $ iniIncludePaths as $ iniIncludePath ) { // If '.' or existing path -> do not attach twice if ( in_array ( $ iniIncludePath , self :: $ path ) || trim ( $ iniIncludePath ) == '.' ) { continue ; } $ includePathsDoozr .= self :: buildPath ( $ iniIncludePath ) ; } } // Now try to set the ini value include_path ini_set ( 'include_path' , $ includePathsDoozr ) ; return $ this ; }
Configures the include paths of PHP.

@author Benjamin Carl <opensource@clickalicious.de>

@return $this Instance for chaining
Configures the include paths of PHP .