Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1620083
ConduitAPI_phriction_Method.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConduitAPI_phriction_Method.php
View Options
<?php
abstract
class
ConduitAPI_phriction_Method
extends
ConduitAPIMethod
{
public
function
getApplication
()
{
return
PhabricatorApplication
::
getByClass
(
'PhabricatorPhrictionApplication'
);
}
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
(),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 16, 4:26 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
362309
Default Alt Text
ConduitAPI_phriction_Method.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment