Path: blob/master/src/applications/paste/conduit/PasteConduitAPIMethod.php
12241 views
<?php12abstract class PasteConduitAPIMethod extends ConduitAPIMethod {34final public function getApplication() {5return PhabricatorApplication::getByClass('PhabricatorPasteApplication');6}78protected function buildPasteInfoDictionary(PhabricatorPaste $paste) {9return array(10'id' => $paste->getID(),11'objectName' => 'P'.$paste->getID(),12'phid' => $paste->getPHID(),13'authorPHID' => $paste->getAuthorPHID(),14'filePHID' => $paste->getFilePHID(),15'title' => $paste->getTitle(),16'dateCreated' => $paste->getDateCreated(),17'language' => $paste->getLanguage(),18'uri' => PhabricatorEnv::getProductionURI('/P'.$paste->getID()),19'parentPHID' => $paste->getParentPHID(),20'content' => $paste->getRawContent(),21);22}2324}252627