示例#1
0
 /**
  * Add additional paths on top of the module paths. 
  * Additional paths will be appended to existing additional paths
  *
  * @param mixed $path 
  * @return void
  * @author Israel D. Canasa
  */
 public static function add_path($path)
 {
     $paths = array();
     if (is_string($path) and is_dir($path)) {
         $paths = array($path);
     }
     if (is_array($path)) {
         $paths = $path;
     }
     // Always add paths below the current paths
     self::$_otherpaths = array_merge(self::$_otherpaths, $paths);
     self::$_paths = array_merge(self::$_otherpaths, self::$_paths);
 }