Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F535938
PhabricatorEditEngineTokenizerCommentAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:50 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
108541
Default Alt Text
PhabricatorEditEngineTokenizerCommentAction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment