Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F680024
PhabricatorPasteController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
547 B
Referenced Files
None
Subscribers
None
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
()));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 27, 8:57 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170501
Default Alt Text
PhabricatorPasteController.php (547 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment