3 final class HeraldPhameBlogAdapter
extends HeraldAdapter
{
7 protected function newObject() {
8 return new PhameBlog();
11 public function getAdapterApplicationClass() {
12 return 'PhabricatorPhameApplication';
15 public function getAdapterContentDescription() {
16 return pht('React to Phame Blogs being created or updated.');
19 protected function initializeNewAdapter() {
20 $this->blog
= $this->newObject();
23 public function supportsApplicationEmail() {
27 public function supportsRuleType($rule_type) {
29 case HeraldRuleTypeConfig
::RULE_TYPE_GLOBAL
:
30 case HeraldRuleTypeConfig
::RULE_TYPE_PERSONAL
:
32 case HeraldRuleTypeConfig
::RULE_TYPE_OBJECT
:
38 public function setBlog(PhameBlog
$blog) {
43 public function getObject() {
47 public function getAdapterContentName() {
48 return pht('Phame Blogs');
51 public function getHeraldName() {
52 return 'BLOG'.$this->getObject()->getID();