public function addPath($path)
    {
        // just force to array
        settype($path, 'array');

        // loop through the path directories
        foreach ($path as $dir) {
            // no surrounding spaces allowed!
            $dir = trim($dir);

            // remove trailing slash
            if (substr($dir, -1) == DIRECTORY_SEPARATOR) {
                $dir = substr_replace($dir, '', -1);
            }

            // add to the top of the search dirs
            array_unshift($this->_paths, $dir);
        }
    }
public function addPath($path)
    {
        // just force to array
        settype($path, 'array');

        // loop through the path directories
        foreach ($path as $dir) {
            // no surrounding spaces allowed!
            $dir = trim($dir);

            // remove trailing slash
            if (substr($dir, -1) == DIRECTORY_SEPARATOR) {
                $dir = substr_replace($dir, '', -1);
            }

            // add to the top of the search dirs
            array_unshift($this->_paths, $dir);
        }
    }
public function addPath ( $ path ) { // just force to array settype ( $ path , 'array' ) ; // loop through the path directories foreach ( $ path as $ dir ) { // no surrounding spaces allowed! $ dir = trim ( $ dir ) ; // remove trailing slash if ( substr ( $ dir , - 1 ) == DIRECTORY_SEPARATOR ) { $ dir = substr_replace ( $ dir , '' , - 1 ) ; } // add to the top of the search dirs array_unshift ( $ this -> _paths , $ dir ) ; } }
Add relative search base paths from ANPATH_BASE in which look for the media. The paths are added
to the beginging of the search list.

@param $path string|array Adds a base path
Add relative search base paths from ANPATH_BASE in which look for the media . The paths are added to the beginging of the search list .