Page MenuHomePhorge

PasteConduitAPIMethod.php
No OneTemporary

Size
836 B
Referenced Files
None
Subscribers
None

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(),
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, May 7, 7:32 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80076
Default Alt Text
PasteConduitAPIMethod.php (836 B)

Event Timeline