namespace Friendica\Core;
use Friendica\Database\DBA;
-use Friendica\Core\Config;
-use Friendica\Core\Logger;
-
+use Friendica\Model\Storage\IStorage;
/**
public static function move($dest, $tables = null)
{
if (is_null($dest) || empty($dest)) {
- throw Exception('Can\'t move to NULL storage backend');
+ throw new \Exception('Can\'t move to NULL storage backend');
}
if (is_null($tables)) {
while($r = DBA::fetch($rr)) {
$id = $r['id'];
$data = $r['data'];
+ /** @var IStorage $backendClass */
$backendClass = $r['backend-class'];
$backendRef = $r['backend-ref'];
if (!is_null($backendClass) && $backendClass !== '') {
}
Logger::log("save data to new backend " . $dest);
+ /** @var IStorage $dest */
$ref = $dest::put($data);
Logger::log("saved data as " . $ref);