Page MenuHomePhabricator

D13261.id32134.diff
No OneTemporary

D13261.id32134.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1260,6 +1260,7 @@
'PassphraseCredentialTransactionEditor' => 'applications/passphrase/editor/PassphraseCredentialTransactionEditor.php',
'PassphraseCredentialTransactionQuery' => 'applications/passphrase/query/PassphraseCredentialTransactionQuery.php',
'PassphraseCredentialType' => 'applications/passphrase/credentialtype/PassphraseCredentialType.php',
+ 'PassphraseCredentialTypeNote' => 'applications/passphrase/credentialtype/PassphraseCredentialTypeNote.php',
'PassphraseCredentialViewController' => 'applications/passphrase/controller/PassphraseCredentialViewController.php',
'PassphraseDAO' => 'applications/passphrase/storage/PassphraseDAO.php',
'PassphrasePasswordCredentialType' => 'applications/passphrase/credentialtype/PassphrasePasswordCredentialType.php',
@@ -4641,6 +4642,7 @@
'PassphraseCredentialTransactionEditor' => 'PhabricatorApplicationTransactionEditor',
'PassphraseCredentialTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PassphraseCredentialType' => 'Phobject',
+ 'PassphraseCredentialTypeNote' => 'PassphraseCredentialType',
'PassphraseCredentialViewController' => 'PassphraseController',
'PassphraseDAO' => 'PhabricatorLiskDAO',
'PassphrasePasswordCredentialType' => 'PassphraseCredentialType',
diff --git a/src/applications/passphrase/credentialtype/PassphraseCredentialTypeNote.php b/src/applications/passphrase/credentialtype/PassphraseCredentialTypeNote.php
new file mode 100644
--- /dev/null
+++ b/src/applications/passphrase/credentialtype/PassphraseCredentialTypeNote.php
@@ -0,0 +1,33 @@
+<?php
+
+final class PassphraseCredentialTypeNote
+ extends PassphraseCredentialType {
+
+ const CREDENTIAL_TYPE = 'note';
+ const PROVIDES_TYPE = 'provides/note';
+
+ public function getCredentialType() {
+ return self::CREDENTIAL_TYPE;
+ }
+
+ public function getProvidesType() {
+ return self::PROVIDES_TYPE;
+ }
+
+ public function getCredentialTypeName() {
+ return pht('Note');
+ }
+
+ public function getCredentialTypeDescription() {
+ return pht('Store a plaintext note.');
+ }
+
+ public function getSecretLabel() {
+ return pht('Note');
+ }
+
+ public function newSecretControl() {
+ return id(new AphrontFormTextAreaControl());
+ }
+
+}

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 9, 2:53 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386020
Default Alt Text
D13261.id32134.diff (2 KB)

Event Timeline