Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88737179
PassphraseCredentialType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 20, 10:43
Size
752 B
Mime Type
text/x-php
Expires
Tue, Oct 22, 10:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21813949
Attached To
rPH Phabricator
PassphraseCredentialType.php
View Options
<?php
abstract
class
PassphraseCredentialType
extends
Phobject
{
abstract
public
function
getCredentialType
();
abstract
public
function
getProvidesType
();
abstract
public
function
getCredentialTypeName
();
abstract
public
function
getCredentialTypeDescription
();
abstract
public
function
getSecretLabel
();
public
function
newSecretControl
()
{
return
new
AphrontFormTextAreaControl
();
}
public
static
function
getAllTypes
()
{
$types
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
__CLASS__
)
->
loadObjects
();
return
$types
;
}
public
static
function
getTypeByConstant
(
$constant
)
{
$all
=
self
::
getAllTypes
();
$all
=
mpull
(
$all
,
null
,
'getCredentialType'
);
return
idx
(
$all
,
$constant
);
}
}
Event Timeline
Log In to Comment