Page MenuHomec4science

PasteConduitAPIMethod.php
No OneTemporary

File Metadata

Created
Mon, Jul 15, 17:58

PasteConduitAPIMethod.php

<?php
abstract class PasteConduitAPIMethod extends ConduitAPIMethod {
final 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