3 * A form for backing up the account.
7 * @author Evan Prodromou <evan@status.net>
8 * @copyright 2010 StatusNet, Inc.
9 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
10 * @link http://status.net/
12 class BackupAccountForm extends Form
17 * @return string the form's class
21 return 'form_profile_backup';
25 * URL the form posts to
27 * @return string the form's action URL
31 return common_local_url('backupaccount');
37 * Really, just instructions for doing a backup.
44 // TRANS: Information displayed on the backup account page.
45 _('You can backup your account data in '.
46 '<a href="http://activitystrea.ms/">Activity Streams</a> '.
47 'format. This is an experimental feature and provides an '.
48 'incomplete backup; private account '.
49 'information like email and IM addresses is not backed up. '.
50 'Additionally, uploaded files and direct messages are not '.
52 $this->out->elementStart('p');
53 $this->out->raw($msg);
54 $this->out->elementEnd('p');
58 * Buttons for the form
60 * In this case, a single submit button
64 function formActions()
66 $this->out->submit('submit',
67 // TRANS: Submit button to backup an account on the backup account page.
68 _m('BUTTON', 'Backup'),
71 // TRANS: Title for submit button to backup an account on the backup account page.
72 _('Backup your account.'));