[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 abstract class PhrictionConduitAPIMethod extends ConduitAPIMethod { 4 5 final public function getApplication() { 6 return PhabricatorApplication::getByClass( 7 'PhabricatorPhrictionApplication'); 8 } 9 10 final protected function buildDocumentInfoDictionary(PhrictionDocument $doc) { 11 $content = $doc->getContent(); 12 return $this->buildDocumentContentDictionary($doc, $content); 13 } 14 15 final protected function buildDocumentContentDictionary( 16 PhrictionDocument $doc, 17 PhrictionContent $content) { 18 19 $uri = PhrictionDocument::getSlugURI($content->getSlug()); 20 $uri = PhabricatorEnv::getProductionURI($uri); 21 22 $doc_status = $doc->getStatus(); 23 24 return array( 25 'phid' => $doc->getPHID(), 26 'uri' => $uri, 27 'slug' => $content->getSlug(), 28 'version' => $content->getVersion(), 29 'authorPHID' => $content->getAuthorPHID(), 30 'title' => $content->getTitle(), 31 'content' => $content->getContent(), 32 'status' => PhrictionDocumentStatus::getConduitConstant($doc_status), 33 'description' => $content->getDescription(), 34 'dateCreated' => $content->getDateCreated(), 35 ); 36 } 37 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |