Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92688035
PhabricatorCredentialEditField.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
Fri, Nov 22, 19:03
Size
942 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 19:03 (2 d)
Engine
blob
Format
Raw Data
Handle
22486604
Attached To
rPH Phabricator
PhabricatorCredentialEditField.php
View Options
<?php
final
class
PhabricatorCredentialEditField
extends
PhabricatorEditField
{
private
$credentialType
;
private
$credentials
;
public
function
setCredentialType
(
$credential_type
)
{
$this
->
credentialType
=
$credential_type
;
return
$this
;
}
public
function
getCredentialType
()
{
return
$this
->
credentialType
;
}
public
function
setCredentials
(
array
$credentials
)
{
$this
->
credentials
=
$credentials
;
return
$this
;
}
public
function
getCredentials
()
{
return
$this
->
credentials
;
}
protected
function
newControl
()
{
$control
=
id
(
new
PassphraseCredentialControl
())
->
setCredentialType
(
$this
->
getCredentialType
())
->
setOptions
(
$this
->
getCredentials
());
return
$control
;
}
protected
function
newHTTPParameterType
()
{
return
new
AphrontPHIDHTTPParameterType
();
}
protected
function
newConduitParameterType
()
{
return
new
ConduitPHIDParameterType
();
}
}
Event Timeline
Log In to Comment