Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98208131
ConduitAPI_phriction_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
Sat, Jan 11, 01:53
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 13, 01:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23532040
Attached To
rPH Phabricator
ConduitAPI_phriction_Method.php
View Options
<?php
/**
* @group conduit
*/
abstract
class
ConduitAPI_phriction_Method
extends
ConduitAPIMethod
{
public
function
getApplication
()
{
return
PhabricatorApplication
::
getByClass
(
'PhabricatorApplicationPhriction'
);
}
final
protected
function
buildDocumentInfoDictionary
(
PhrictionDocument
$doc
)
{
$content
=
$doc
->
getContent
();
return
$this
->
buildDocumentContentDictionary
(
$doc
,
$content
);
}
final
protected
function
buildDocumentContentDictionary
(
PhrictionDocument
$doc
,
PhrictionContent
$content
)
{
$uri
=
PhrictionDocument
::
getSlugURI
(
$content
->
getSlug
());
$uri
=
PhabricatorEnv
::
getProductionURI
(
$uri
);
$doc_status
=
$doc
->
getStatus
();
return
array
(
'phid'
=>
$doc
->
getPHID
(),
'uri'
=>
$uri
,
'slug'
=>
$content
->
getSlug
(),
'version'
=>
$content
->
getVersion
(),
'authorPHID'
=>
$content
->
getAuthorPHID
(),
'title'
=>
$content
->
getTitle
(),
'content'
=>
$content
->
getContent
(),
'status'
=>
PhrictionDocumentStatus
::
getConduitConstant
(
$doc_status
),
'description'
=>
$content
->
getDescription
(),
'dateCreated'
=>
$content
->
getDateCreated
(),
);
}
}
Event Timeline
Log In to Comment