Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77163409
PhabricatorPasteController.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
Mon, Aug 12, 20:19
Size
547 B
Mime Type
text/x-php
Expires
Wed, Aug 14, 20:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19832128
Attached To
rPH Phabricator
PhabricatorPasteController.php
View Options
<?php
abstract
class
PhabricatorPasteController
extends
PhabricatorController
{
public
function
buildApplicationMenu
()
{
return
$this
->
newApplicationMenu
()
->
setSearchEngine
(
new
PhabricatorPasteSearchEngine
());
}
public
function
buildSourceCodeView
(
PhabricatorPaste
$paste
,
$highlights
=
array
())
{
$lines
=
phutil_split_lines
(
$paste
->
getContent
());
return
id
(
new
PhabricatorSourceCodeView
())
->
setLines
(
$lines
)
->
setHighlights
(
$highlights
)
->
setURI
(
new
PhutilURI
(
$paste
->
getURI
()));
}
}
Event Timeline
Log In to Comment