include_pathを追加する関数

単純な関数だけど必要な場合もあるので:

function addIncludePath($path)
{
    if (file_exists($path)) {
        $include_path = get_include_path() . PATH_SEPARATOR . $path;
        if (set_include_path($include_path) !== false) {
            return true;
        }
    }
    return false;
}

Moonyにも用意しておきたいところだけれど、どのクラスにメソッドとして実装すべきか悩み中。facadeとしてのMoonyクラスに実装しておこうかな。