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()); }
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; }