Beispiel #1
0
 static function get_instance($path = FALSE)
 {
     if (self::$_instanse instanceof self) {
         return self::$_instanse;
     }
     return self::$_instanse = new self($path);
 }
Beispiel #2
0
 function get_body()
 {
     if ($_GET['path']) {
         $path = $_GET['path'];
         $obj = dir_view::get_instance($path);
     } else {
         $obj = dir_view::get_instance();
     }
     return $obj->dirs_to_array();
 }