예제 #1
0
 function testGetStorageGetAll()
 {
     Storage::set_storage_root(DS . FRAMEWORK_CORE_PATH . "tests/io/permanent_storage/");
     $storages = Storage::getAll("my_folder");
     $this->assertEqual(count($storages), 2, "Il numero degli storage non corrisponde!");
     Storage::set_storage_root(Storage::get_default_storage_root());
 }
예제 #2
0
 static function get_all_installed_modules()
 {
     $all_storages = Storage::getAll(self::INSTALLED_MODULES_STORAGE_DIR);
     $result = array();
     foreach ($all_storages as $store) {
         $result[] = $store->readAll();
     }
     return $result;
 }