Rename App Methods

- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
This commit is contained in:
Philipp Holzer 2018-10-09 19:58:58 +02:00
parent 5f9dd11cfb
commit 5a02e39a65
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
94 changed files with 481 additions and 338 deletions

View file

@ -570,7 +570,7 @@ class DBA
self::$errorno = $errorno;
}
$a->save_timestamp($stamp1, 'database');
$a->saveTimestamp($stamp1, 'database');
if ($a->getConfigValue('system', 'db_log')) {
$stamp2 = microtime(true);
@ -641,7 +641,7 @@ class DBA
self::$errorno = $errorno;
}
$a->save_timestamp($stamp, "database_write");
$a->saveTimestamp($stamp, "database_write");
return $retval;
}
@ -809,7 +809,7 @@ class DBA
}
}
$a->save_timestamp($stamp1, 'database');
$a->saveTimestamp($stamp1, 'database');
return $columns;
}
@ -1547,7 +1547,7 @@ class DBA
break;
}
$a->save_timestamp($stamp1, 'database');
$a->saveTimestamp($stamp1, 'database');
return $ret;
}

View file

@ -842,7 +842,7 @@ class DBStructure
public static function definition() {
$a = \Friendica\BaseObject::getApp();
$filename = $a->get_basepath() . '/config/dbstructure.json';
$filename = $a->getBasePath() . '/config/dbstructure.json';
if (!is_readable($filename)) {
throw new Exception('Missing database structure config file config/dbstructure.json');