Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81621347
PhabricatorProjectUserFunctionDatasource.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
Sat, Sep 7, 02:15
Size
818 B
Mime Type
text/x-php
Expires
Mon, Sep 9, 02:15 (2 d)
Engine
blob
Format
Raw Data
Handle
20600286
Attached To
rPH Phabricator
PhabricatorProjectUserFunctionDatasource.php
View Options
<?php
final
class
PhabricatorProjectUserFunctionDatasource
extends
PhabricatorTypeaheadCompositeDatasource
{
public
function
getBrowseTitle
()
{
return
pht
(
'Browse User Projects'
);
}
public
function
getPlaceholderText
()
{
return
pht
(
'Type projects(<user>)...'
);
}
public
function
getDatasourceApplicationClass
()
{
return
'PhabricatorProjectApplication'
;
}
public
function
getComponentDatasources
()
{
return
array
(
new
PhabricatorProjectLogicalUserDatasource
(),
);
}
protected
function
evaluateFunction
(
$function
,
array
$argv_list
)
{
$result
=
parent
::
evaluateFunction
(
$function
,
$argv_list
);
foreach
(
$result
as
$k
=>
$v
)
{
if
(
$v
instanceof
PhabricatorQueryConstraint
)
{
$result
[
$k
]
=
$v
->
getValue
();
}
}
return
$result
;
}
}
Event Timeline
Log In to Comment