Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/editor/PhamePostEditEngine.php
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | final class PhamePostEditEngine | ||||
protected function getObjectName() { | protected function getObjectName() { | ||||
return pht('Post'); | return pht('Post'); | ||||
} | } | ||||
protected function getObjectViewURI($object) { | protected function getObjectViewURI($object) { | ||||
return $object->getViewURI(); | return $object->getViewURI(); | ||||
} | } | ||||
protected function getEditorURI() { | |||||
return $this->getApplication()->getApplicationURI('post/edit/'); | |||||
} | |||||
protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
$blog_phid = $object->getBlog()->getPHID(); | $blog_phid = $object->getBlog()->getPHID(); | ||||
return array( | return array( | ||||
id(new PhabricatorHandlesEditField()) | id(new PhabricatorHandlesEditField()) | ||||
->setKey('blog') | ->setKey('blog') | ||||
->setLabel(pht('Blog')) | ->setLabel(pht('Blog')) | ||||
->setDescription(pht('Blog to publish this post to.')) | ->setDescription(pht('Blog to publish this post to.')) | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |