Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98809092
PhabricatorEditEngineTokenizerCommentAction.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
Thu, Jan 16, 14:40
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 18, 14:40 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23649691
Attached To
rPH Phabricator
PhabricatorEditEngineTokenizerCommentAction.php
View Options
<?php
final
class
PhabricatorEditEngineTokenizerCommentAction
extends
PhabricatorEditEngineCommentAction
{
private
$datasource
;
private
$limit
;
public
function
setDatasource
(
PhabricatorTypeaheadDatasource
$datasource
)
{
$this
->
datasource
=
$datasource
;
return
$this
;
}
public
function
getDatasource
()
{
return
$this
->
datasource
;
}
public
function
setLimit
(
$limit
)
{
$this
->
limit
=
$limit
;
return
$this
;
}
public
function
getLimit
()
{
return
$this
->
limit
;
}
public
function
getPHUIXControlType
()
{
return
'tokenizer'
;
}
public
function
getPHUIXControlSpecification
()
{
$template
=
new
AphrontTokenizerTemplateView
();
$datasource
=
$this
->
getDatasource
();
$limit
=
$this
->
getLimit
();
$value
=
$this
->
getValue
();
if
(!
$value
)
{
$value
=
array
();
}
$value
=
$datasource
->
getWireTokens
(
$value
);
return
array
(
'markup'
=>
$template
->
render
(),
'config'
=>
array
(
'src'
=>
$datasource
->
getDatasourceURI
(),
'browseURI'
=>
$datasource
->
getBrowseURI
(),
'placeholder'
=>
$datasource
->
getPlaceholderText
(),
'limit'
=>
$limit
,
),
'value'
=>
$value
,
);
}
}
Event Timeline
Log In to Comment