Page MenuHomePhorge

HeraldPhameBlogAdapter.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

HeraldPhameBlogAdapter.php

<?php
final class HeraldPhameBlogAdapter extends HeraldAdapter {
private $blog;
protected function newObject() {
return new PhameBlog();
}
public function getAdapterApplicationClass() {
return PhabricatorPhameApplication::class;
}
public function getAdapterContentDescription() {
return pht('React to Phame Blogs being created or updated.');
}
protected function initializeNewAdapter() {
$this->blog = $this->newObject();
}
public function supportsApplicationEmail() {
return true;
}
public function supportsRuleType($rule_type) {
switch ($rule_type) {
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL:
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL:
return true;
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT:
default:
return false;
}
}
public function setBlog(PhameBlog $blog) {
$this->blog = $blog;
return $this;
}
public function getObject() {
return $this->blog;
}
public function getAdapterContentName() {
return pht('Phame Blogs');
}
public function getHeraldName() {
return 'BLOG'.$this->getObject()->getID();
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 12:05 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
220900
Default Alt Text
HeraldPhameBlogAdapter.php (1 KB)

Event Timeline