Exemple #1
0
 public static function setPaths($paths, $recursive = false)
 {
     if (count($paths) > 0) {
         foreach ($paths as $path) {
             if ($recursive == true) {
                 self::$_paths = array_merge(self::$_paths, self::listFolders($path));
             } else {
                 self::$_paths[] = $path;
             }
         }
     } else {
         self::$_paths[] = $paths;
     }
 }
Exemple #2
0
 /**
  * Reload all the paths from the include_path
  * Should not need to run unless you add more paths to the include_path
  */
 public static function reloadPaths()
 {
     self::$_paths = explode(CC_PS, ini_get('include_path'));
 }