Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97802732
ConduitAPI_paste_Method.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, Jan 6, 13:22
Size
832 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 13:22 (2 d)
Engine
blob
Format
Raw Data
Handle
23452892
Attached To
rPH Phabricator
ConduitAPI_paste_Method.php
View Options
<?php
abstract
class
ConduitAPI_paste_Method
extends
ConduitAPIMethod
{
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