Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547327
PhabricatorStandardCustomFieldDatasource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
PhabricatorStandardCustomFieldDatasource.php
View Options
<?php
final
class
PhabricatorStandardCustomFieldDatasource
extends
PhabricatorStandardCustomFieldTokenizer
{
public
function
getFieldType
()
{
return
'datasource'
;
}
public
function
getDatasource
()
{
$parameters
=
$this
->
getFieldConfigValue
(
'datasource.parameters'
,
array
());
$class
=
$this
->
getFieldConfigValue
(
'datasource.class'
);
$parent
=
'PhabricatorTypeaheadDatasource'
;
if
(!
is_subclass_of
(
$class
,
$parent
))
{
throw
new
Exception
(
pht
(
'Configured datasource class "%s" must be a valid subclass of '
.
'"%s".'
,
$class
,
$parent
));
}
return
newv
(
$class
,
array
())
->
setParameters
(
$parameters
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:31 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122798
Default Alt Text
PhabricatorStandardCustomFieldDatasource.php (704 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment