Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93169416
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
Tue, Nov 26, 18:01
Size
545 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 18:01 (2 d)
Engine
blob
Format
Raw Data
Handle
22588505
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
();
$corpus
=
$request
->
getStr
(
'corpus'
);
$remarkup
=
new
PHUIRemarkupView
(
$viewer
,
$corpus
);
$content
=
array
(
'content'
=>
hsprintf
(
'%s'
,
$remarkup
),
);
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment