Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldAdapter.php
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public function getAdapterContentType() { | ||||
return get_class($this); | return get_class($this); | ||||
} | } | ||||
abstract public function getAdapterContentName(); | abstract public function getAdapterContentName(); | ||||
abstract public function getAdapterContentDescription(); | abstract public function getAdapterContentDescription(); | ||||
abstract public function getAdapterApplicationClass(); | abstract public function getAdapterApplicationClass(); | ||||
abstract public function getObject(); | abstract public function getObject(); | ||||
/** | /** | ||||
* Return a new characteristic object for this adapter. | * Return a new characteristic object for this adapter. | ||||
* | * | ||||
* The adapter will use this object to test for interfaces, generate | * The adapter will use this object to test for interfaces, generate | ||||
* transactions, and interact with custom fields. | * transactions, and interact with custom fields. | ||||
* | * | ||||
* Adapters must return an object from this method to enable custom | * Adapters must return an object from this method to enable custom | ||||
* field rules and various implicit actions. | * field rules and various implicit actions. | ||||
Show All 11 Lines | abstract class HeraldAdapter extends Phobject { | ||||
public function supportsRuleType($rule_type) { | public function supportsRuleType($rule_type) { | ||||
return false; | return false; | ||||
} | } | ||||
public function canTriggerOnObject($object) { | public function canTriggerOnObject($object) { | ||||
return false; | return false; | ||||
} | } | ||||
public function isTestAdapterForObject($object) { | |||||
return false; | |||||
} | |||||
public function canCreateTestAdapterForObject($object) { | |||||
return $this->isTestAdapterForObject($object); | |||||
} | |||||
public function newTestAdapter($object) { | |||||
return id(clone $this) | |||||
->setObject($object); | |||||
} | |||||
public function getAdapterTestDescription() { | |||||
return null; | |||||
} | |||||
public function explainValidTriggerObjects() { | public function explainValidTriggerObjects() { | ||||
return pht('This adapter can not trigger on objects.'); | return pht('This adapter can not trigger on objects.'); | ||||
} | } | ||||
public function getTriggerObjectPHIDs() { | public function getTriggerObjectPHIDs() { | ||||
return array($this->getPHID()); | return array($this->getPHID()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 873 Lines • Show Last 20 Lines |