public function setSearchPaths($paths)
    {

        // Merge in possible custom paths
        if (array_key_exists('additional_paths', self::$settings) &&
            is_array(self::$settings['additional_paths']) &&
            count(self::$settings['additional_paths']) > 0) {

            $paths = array_merge(self::$settings['additional_paths'], $paths);
        }

        // Make sure they all have a trailing slash
        foreach ($paths as $k => $v) {
            $paths[$k] .= substr($v, -1) == '/' ? '' : '/';
        }

        // Save them
        $this->searchPaths = $paths;
    }
public function setSearchPaths($paths)
    {

        // Merge in possible custom paths
        if (array_key_exists('additional_paths', self::$settings) &&
            is_array(self::$settings['additional_paths']) &&
            count(self::$settings['additional_paths']) > 0) {

            $paths = array_merge(self::$settings['additional_paths'], $paths);
        }

        // Make sure they all have a trailing slash
        foreach ($paths as $k => $v) {
            $paths[$k] .= substr($v, -1) == '/' ? '' : '/';
        }

        // Save them
        $this->searchPaths = $paths;
    }
public function setSearchPaths ( $ paths ) { // Merge in possible custom paths if ( array_key_exists ( 'additional_paths' , self :: $ settings ) && is_array ( self :: $ settings [ 'additional_paths' ] ) && count ( self :: $ settings [ 'additional_paths' ] ) > 0 ) { $ paths = array_merge ( self :: $ settings [ 'additional_paths' ] , $ paths ) ; } // Make sure they all have a trailing slash foreach ( $ paths as $ k => $ v ) { $ paths [ $ k ] .= substr ( $ v , - 1 ) == '/' ? '' : '/' ; } // Save them $ this -> searchPaths = $ paths ; }
Say where we'll search for execs.

@param array $paths list of paths
Say where we ll search for execs .