{
parent::content();
- self::rawContent();
-
/**
* options shown on "Export personal data" page
* list of array( 'link url', 'link text', 'help text' )
];
Hook::callAll('uexport_options', $options);
- $tpl = Renderer::getMarkupTemplate("uexport.tpl");
+ $tpl = Renderer::getMarkupTemplate("settings/userexport.tpl");
return Renderer::replaceMacros($tpl, [
'$title' => L10n::t('Export personal data'),
'$options' => $options
* to the browser which then offers a save / open dialog
* to the user.
**/
- public static function rawContent() {
+ public static function rawContent()
+ {
$args = self::getClass(Arguments::class);
if ($args->getArgc() == 3) {
// @TODO Replace with router-provided arguments
}
}
}
- private static function exportMultiRow(string $query) {
+ private static function exportMultiRow(string $query)
+ {
$dbStructure = DBStructure::definition(self::getApp()->getBasePath(), false);
preg_match("/\s+from\s+`?([a-z\d_]+)`?/i", $query, $match);
return $result;
}
- private static function exportRow(string $query) {
+ private static function exportRow(string $query)
+ {
$dbStructure = DBStructure::definition(self::getApp()->getBasePath(), false);
preg_match("/\s+from\s+`?([a-z\d_]+)`?/i", $query, $match);
return $result;
}
- private static function exportAccount(App $a) {
-
+ private static function exportAccount(App $a)
+ {
$user = self::exportRow(
sprintf("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval(local_user()))
);
* @param App $a
* @throws Exception
*/
- private static function exportAll(App $a) {
-
+ private static function exportAll(App $a)
+ {
self::exportAccount($a);
echo "\n";