Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97013944
PhabricatorApplicationTransactionRemarkupPreviewController.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
Wed, Jan 1, 15:37
Size
539 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 15:37 (2 d)
Engine
blob
Format
Raw Data
Handle
23312551
Attached To
rPH Phabricator
PhabricatorApplicationTransactionRemarkupPreviewController.php
View Options
<?php
final
class
PhabricatorApplicationTransactionRemarkupPreviewController
extends
PhabricatorApplicationTransactionController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$text
=
$request
->
getStr
(
'text'
);
$remarkup
=
new
PHUIRemarkupView
(
$viewer
,
$text
);
$content
=
array
(
'content'
=>
hsprintf
(
'%s'
,
$remarkup
),
);
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment