Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83588769
PhabricatorPHIDListEditType.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
Tue, Sep 17, 23:44
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Sep 19, 23:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20863232
Attached To
rPH Phabricator
PhabricatorPHIDListEditType.php
View Options
<?php
abstract
class
PhabricatorPHIDListEditType
extends
PhabricatorEditType
{
private
$datasource
;
private
$isSingleValue
;
private
$defaultValue
;
public
function
setDatasource
(
PhabricatorTypeaheadDatasource
$datasource
)
{
$this
->
datasource
=
$datasource
;
return
$this
;
}
public
function
getDatasource
()
{
return
$this
->
datasource
;
}
public
function
setIsSingleValue
(
$is_single_value
)
{
$this
->
isSingleValue
=
$is_single_value
;
return
$this
;
}
public
function
getIsSingleValue
()
{
return
$this
->
isSingleValue
;
}
public
function
setDefaultValue
(
array
$default_value
)
{
$this
->
defaultValue
=
$default_value
;
return
$this
;
}
public
function
getDefaultValue
()
{
return
$this
->
defaultValue
;
}
public
function
getValueType
()
{
if
(
$this
->
getIsSingleValue
())
{
return
'phid'
;
}
else
{
return
'list<phid>'
;
}
}
protected
function
newConduitParameterType
()
{
$default
=
parent
::
newConduitParameterType
();
if
(
$default
)
{
return
$default
;
}
if
(
$this
->
getIsSingleValue
())
{
return
new
ConduitPHIDParameterType
();
}
else
{
return
new
ConduitPHIDListParameterType
();
}
}
}
Event Timeline
Log In to Comment