Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98129463
PhabricatorDatasourceEditField.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, Jan 10, 02:56
Size
515 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 02:56 (2 d)
Engine
blob
Format
Raw Data
Handle
23490944
Attached To
rPH Phabricator
PhabricatorDatasourceEditField.php
View Options
<?php
final
class
PhabricatorDatasourceEditField
extends
PhabricatorTokenizerEditField
{
private
$datasource
;
public
function
setDatasource
(
PhabricatorTypeaheadDatasource
$datasource
)
{
$this
->
datasource
=
$datasource
;
return
$this
;
}
public
function
getDatasource
()
{
if
(!
$this
->
datasource
)
{
throw
new
PhutilInvalidStateException
(
'setDatasource'
);
}
return
$this
->
datasource
;
}
protected
function
newDatasource
()
{
return
id
(
clone
$this
->
getDatasource
());
}
}
Event Timeline
Log In to Comment