public function addSearchPath($paths, $append = false)
    {
        settype($paths, 'array');

        foreach ($paths as $path) {
            if (empty($path)) {
                continue;
            }

            if (in_array($path, $this->_search_paths)) {
                continue;
            }

            if ($append) {
                $this->_search_paths[] = $path;
            } else {
                array_unshift($this->_search_paths, $path);
            }
        }
    }
public function addSearchPath($paths, $append = false)
    {
        settype($paths, 'array');

        foreach ($paths as $path) {
            if (empty($path)) {
                continue;
            }

            if (in_array($path, $this->_search_paths)) {
                continue;
            }

            if ($append) {
                $this->_search_paths[] = $path;
            } else {
                array_unshift($this->_search_paths, $path);
            }
        }
    }
public function addSearchPath ( $ paths , $ append = false ) { settype ( $ paths , 'array' ) ; foreach ( $ paths as $ path ) { if ( empty ( $ path ) ) { continue ; } if ( in_array ( $ path , $ this -> _search_paths ) ) { continue ; } if ( $ append ) { $ this -> _search_paths [ ] = $ path ; } else { array_unshift ( $ this -> _search_paths , $ path ) ; } } }
Add a new search path. By the default the path is added to the top of the search path.

@param string|array The path(s) to add.

@return LibBaseTemplateAbstract
Add a new search path . By the default the path is added to the top of the search path .