Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldAdapter.php
Show All 33 Lines | abstract class HeraldAdapter extends Phobject { | ||||
private $queuedTransactions = array(); | private $queuedTransactions = array(); | ||||
private $emailPHIDs = array(); | private $emailPHIDs = array(); | ||||
private $forcedEmailPHIDs = array(); | private $forcedEmailPHIDs = array(); | ||||
private $fieldMap; | private $fieldMap; | ||||
private $actionMap; | private $actionMap; | ||||
private $edgeCache = array(); | private $edgeCache = array(); | ||||
private $forbiddenActions = array(); | private $forbiddenActions = array(); | ||||
private $viewer; | private $viewer; | ||||
private $mustEncryptReasons = array(); | |||||
public function getEmailPHIDs() { | public function getEmailPHIDs() { | ||||
return array_values($this->emailPHIDs); | return array_values($this->emailPHIDs); | ||||
} | } | ||||
public function getForcedEmailPHIDs() { | public function getForcedEmailPHIDs() { | ||||
return array_values($this->forcedEmailPHIDs); | return array_values($this->forcedEmailPHIDs); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,127 Lines • ▼ Show 20 Lines | if (!isset($this->forbiddenActions[$action])) { | ||||
pht( | pht( | ||||
'Action "%s" is not forbidden!', | 'Action "%s" is not forbidden!', | ||||
$action)); | $action)); | ||||
} | } | ||||
return $this->forbiddenActions[$action]; | return $this->forbiddenActions[$action]; | ||||
} | } | ||||
/* -( Must Encrypt )------------------------------------------------------- */ | |||||
final public function addMustEncryptReason($reason) { | |||||
$this->mustEncryptReasons[] = $reason; | |||||
return $this; | |||||
} | |||||
final public function getMustEncryptReasons() { | |||||
return $this->mustEncryptReasons; | |||||
} | |||||
} | } |