Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93630690
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
Sat, Nov 30, 07:10
Size
545 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 07:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22679348
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