public function getEmailPHIDs()
wild |
public function getForcedEmailPHIDs()
wild |
final public function setActingAsPHID($acting_as_phid)
$acting_as_phid |
wild |
final public function getActingAsPHID()
wild |
public function addEmailPHID($phid, $force)
$phid | ||
$force |
wild |
public function setViewer($viewer)
PhabricatorUser | $viewer |
wild |
public function getViewer()
wild |
public function setContentSource($content_source)
PhabricatorContentSource | $content_source |
wild |
public function getContentSource()
wild |
public function getIsNewObject()
wild |
public function setIsNewObject($new)
$new |
wild |
public function supportsApplicationEmail()
wild |
public function setApplicationEmail($email)
PhabricatorMetaMTAApplicationEmail |
wild |
public function getApplicationEmail()
wild |
public function getPHID()
wild |
abstract public function getHeraldName()
wild |
final public function willGetHeraldField($field_key)
$field_key |
wild |
public function getHeraldField($field_key)
$field_key |
wild |
public function applyHeraldEffects($effects)
array | $effects |
wild |
public function isAvailableToUser($viewer)
PhabricatorUser | $viewer |
wild |
final public function setAppliedTransactions($xactions)
Set the list of transactions which just took effect.
These transactions are set by PhabricatorApplicationEditor automatically, before it invokes Herald.
list<PhabricatorApplicationTransaction> | $xactions | List of transactions. |
this |
final public function getAppliedTransactions()
Get a list of transactions which just took effect.
When an object is edited normally, transactions are applied and then Herald executes. You can call this method to examine the transactions if you want to react to them.
list<PhabricatorApplicationTransaction> | List of transactions. |
final public function queueTransaction($transaction)
PhabricatorApplicationTransaction | $transaction |
wild |
final public function getQueuedTransactions()
wild |
final public function newTransaction()
wild |
public function getAdapterContentType()
wild |
abstract public function getAdapterContentName()
wild |
abstract public function getAdapterContentDescription()
wild |
abstract public function getAdapterApplicationClass()
wild |
abstract public function getObject()
wild |
public function getAdapterContentIcon()
wild |
protected function newObject()
Return a new characteristic object for this adapter.
The adapter will use this object to test for interfaces, generate transactions, and interact with custom fields.
Adapters must return an object from this method to enable custom field rules and various implicit actions.
Normally, you'll return an empty version of the adapted object:
return new ApplicationObject();
null|object | Template object. |
public function supportsRuleType($rule_type)
$rule_type |
wild |
public function canTriggerOnObject($object)
$object |
wild |
public function isTestAdapterForObject($object)
$object |
wild |
public function canCreateTestAdapterForObject($object)
$object |
wild |
public function newTestAdapter($viewer, $object)
PhabricatorUser | $viewer | |
$object |
wild |
public function getAdapterTestDescription()
wild |
public function explainValidTriggerObjects()
wild |
public function getTriggerObjectPHIDs()
wild |
public function getAdapterSortKey()
wild |
public function getAdapterSortOrder()
wild |
private function getFieldImplementationMap()
wild |
private function getFieldImplementation($key)
$key |
wild |
public function getFields()
wild |
public function getFieldNameMap()
wild |
public function getFieldGroupKey($field_key)
$field_key |
wild |
public function isFieldAvailable($field_key)
$field_key |
wild |
public function getConditionNameMap()
wild |
public function getConditionsForField($field)
$field |
wild |
private function requireFieldImplementation($field_key)
$field_key |
wild |
public function doesConditionMatch($engine, $rule, $condition, $field_value)
HeraldEngine | $engine | |
HeraldRule | $rule | |
HeraldCondition | $condition | |
$field_value |
wild |
public function willSaveCondition($condition)
HeraldCondition | $condition |
wild |
private function getActionImplementationMap()
wild |
private function requireActionImplementation($action_key)
$action_key |
wild |
private function getActionsForRuleType($rule_type)
$rule_type |
wild |
public function getActionImplementation($key)
$key |
wild |
public function getActionKeys()
wild |
public function getActionGroupKey($action_key)
$action_key |
wild |
public function isActionAvailable($action_key)
$action_key |
wild |
public function getActions($rule_type)
$rule_type |
wild |
public function getActionNameMap($rule_type)
$rule_type |
wild |
public function willSaveAction($rule, $action)
HeraldRule | $rule | |
HeraldActionRecord | $action |
wild |
public function getValueTypeForFieldAndCondition($field, $condition)
$field | ||
$condition |
wild |
public function getValueTypeForAction($action, $rule_type)
$action | ||
$rule_type |
wild |
private function buildTokenizerFieldValue($datasource)
PhabricatorTypeaheadDatasource | $datasource |
wild |
public function getRepetitionOptions()
wild |
protected function initializeNewAdapter()
wild |
public function isSingleEventAdapter()
Does this adapter's event fire only once?
Single use adapters (like pre-commit and diff adapters) only fire once, so fields like "Is new object" don't make sense to apply to their content.
bool |
public static function getAllAdapters()
wild |
public static function getAdapterForContentType($content_type)
$content_type |
wild |
public static function getEnabledAdapterMap($viewer)
PhabricatorUser | $viewer |
wild |
public function getEditorValueForCondition($viewer, $condition)
PhabricatorUser | $viewer | |
HeraldCondition | $condition |
wild |
public function getEditorValueForAction($viewer, $action_record)
PhabricatorUser | $viewer | |
HeraldActionRecord | $action_record |
wild |
public function renderRuleAsText($rule, $viewer)
HeraldRule | $rule | |
PhabricatorUser | $viewer |
wild |
private function renderConditionAsText($condition, $viewer)
HeraldCondition | $condition | |
PhabricatorUser | $viewer |
wild |
private function renderActionAsText($viewer, $action_record)
PhabricatorUser | $viewer | |
HeraldActionRecord | $action_record |
wild |
private function renderConditionValueAsText($condition, $viewer)
HeraldCondition | $condition | |
PhabricatorUser | $viewer |
wild |
public function renderFieldTranscriptValue($viewer, $field_type, $field_value)
PhabricatorUser | $viewer | |
$field_type | ||
$field_value |
wild |
protected function applyStandardEffect($effect)
HeraldEffect | $effect |
wild |
public function loadEdgePHIDs($type)
$type |
wild |
final public function getForbiddenActions()
wild |
final public function setForbiddenAction($action, $reason)
$action | ||
$reason |
wild |
final public function getRequiredFieldStates($field_key)
$field_key |
wild |
final public function getRequiredActionStates($action_key)
$action_key |
wild |
final public function getForbiddenReason($action)
$action |
wild |
final public function addMustEncryptReason($reason)
$reason |
wild |
final public function getMustEncryptReasons()
wild |
public function supportsWebhooks()
wild |
final public function queueWebhook($webhook_phid, $rule_phid)
$webhook_phid | ||
$rule_phid |
wild |
final public function getWebhookMap()
wild |