Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93654495
PasteConduitAPIMethod.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, 11:41
Size
836 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 11:41 (2 d)
Engine
blob
Format
Raw Data
Handle
22680855
Attached To
rPH Phabricator
PasteConduitAPIMethod.php
View Options
<?php
abstract
class
PasteConduitAPIMethod
extends
ConduitAPIMethod
{
final
public
function
getApplication
()
{
return
PhabricatorApplication
::
getByClass
(
'PhabricatorPasteApplication'
);
}
protected
function
buildPasteInfoDictionary
(
PhabricatorPaste
$paste
)
{
return
array
(
'id'
=>
$paste
->
getID
(),
'objectName'
=>
'P'
.
$paste
->
getID
(),
'phid'
=>
$paste
->
getPHID
(),
'authorPHID'
=>
$paste
->
getAuthorPHID
(),
'filePHID'
=>
$paste
->
getFilePHID
(),
'title'
=>
$paste
->
getTitle
(),
'dateCreated'
=>
$paste
->
getDateCreated
(),
'language'
=>
$paste
->
getLanguage
(),
'uri'
=>
PhabricatorEnv
::
getProductionURI
(
'/P'
.
$paste
->
getID
()),
'parentPHID'
=>
$paste
->
getParentPHID
(),
'content'
=>
$paste
->
getRawContent
(),
);
}
}
Event Timeline
Log In to Comment