Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122198166
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
Wed, Jul 16, 13:18
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jul 18, 13:18 (2 d)
Engine
blob
Format
Raw Data
Handle
27448355
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