public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
final public function getTransactionTypeConstant()
wild |
public function generateOldValue($object)
$object |
wild |
public function generateNewValue($object, $value)
$object | ||
$value |
wild |
public function validateTransactions($object, $xactions)
$object | ||
array | $xactions |
wild |
public function applyInternalEffects($object, $value)
$object | ||
$value |
wild |
public function applyExternalEffects($object, $value)
$object | ||
$value |
wild |
public function didCommitTransaction($object, $value)
$object | ||
$value |
wild |
public function getTransactionHasEffect($object, $old, $new)
$object | ||
$old | ||
$new |
wild |
public function extractFilePHIDs($object, $value)
$object | ||
$value |
wild |
public function shouldHide()
wild |
public function shouldHideForFeed()
wild |
public function shouldHideForMail()
wild |
public function shouldHideForNotifications()
wild |
public function getIcon()
wild |
public function getTitle()
wild |
public function getTitleForFeed()
wild |
public function getActionName()
wild |
public function getActionStrength()
wild |
public function getColor()
wild |
public function hasChangeDetailView()
wild |
public function newChangeDetailView()
wild |
public function getMailDiffSectionHeader()
wild |
public function newRemarkupChanges()
wild |
public function mergeTransactions($object, $u, $v)
$object | ||
PhabricatorApplicationTransaction | $u | |
PhabricatorApplicationTransaction | $v |
wild |
final public function setStorage($xaction)
PhabricatorApplicationTransaction | $xaction |
wild |
private function getStorage()
wild |
final public function setViewer($viewer)
PhabricatorUser | $viewer |
wild |
final protected function getViewer()
wild |
final public function getActor()
wild |
final public function getActingAsPHID()
wild |
final public function setEditor($editor)
PhabricatorApplicationTransactionEditor | $editor |
wild |
final protected function getEditor()
wild |
final protected function hasEditor()
wild |
final protected function getAuthorPHID()
wild |
final protected function getObjectPHID()
wild |
final protected function getObject()
wild |
final protected function getOldValue()
wild |
final protected function getNewValue()
wild |
final protected function renderAuthor()
wild |
final protected function renderObject()
wild |
final protected function renderHandle($phid)
$phid |
wild |
final protected function renderOldHandle()
wild |
final protected function renderNewHandle()
wild |
final protected function renderOldPolicy()
wild |
final protected function renderNewPolicy()
wild |
final protected function renderPolicy($phid, $mode)
$phid | ||
$mode |
wild |
final protected function renderHandleList($phids)
array | $phids |
wild |
final protected function renderValue($value)
$value |
wild |
final protected function renderValueList($values)
array | $values |
wild |
final protected function renderOldValue()
wild |
final protected function renderNewValue()
wild |
final protected function renderDate($epoch)
$epoch |
wild |
final protected function renderOldDate()
wild |
final protected function renderNewDate()
wild |
final protected function newError($title, $message, $xaction)
$title | ||
$message | ||
$xaction |
wild |
final protected function newRequiredError($message, $xaction)
$message | ||
$xaction |
wild |
final protected function newInvalidError($message, $xaction)
$message | ||
$xaction |
wild |
final protected function isNewObject()
wild |
final protected function isEmptyTextTransaction($value, $xactions)
Check whenever a new transaction's value is considered an "empty text"
mixed | $value | A string, null, an integer... |
array | $xactions | Transactions |
wild |
final protected function isRenderingTargetExternal()
When rendering to external targets (Email/Asana/etc), we need to include more information that users can't obtain later.
wild |
final protected function isTextMode()
wild |
final protected function newRemarkupChange()
wild |
final protected function isCreateTransaction()
wild |
final protected function getPHIDList($old, $new)
array | $old | |
array | $new |
wild |
public function getMetadataValue($key, $default)
$key | ||
$default |
wild |
public function loadTransactionTypeConduitData($xactions)
array | $xactions |
wild |
public function getTransactionTypeForConduit($xaction)
$xaction |
wild |
public function getFieldValuesForConduit($xaction, $data)
$xaction | ||
$data |
wild |
protected function requireApplicationCapability($capability)
$capability |
wild |
public function getRequiredCapabilities($object, $xaction)
Get a list of capabilities the actor must have on the object to apply a transaction to it.
Usually, you should use this to reduce capability requirements when a transaction (like leaving a Conpherence thread) can be applied without having edit permission on the object. You can override this method to remove the CAN_EDIT requirement, or to replace it with a different requirement.
If you are increasing capability requirements and need to add an additional capability or policy requirement above and beyond CAN_EDIT, it is usually better implemented as a validation check.
object | $object | Object being edited. |
PhabricatorApplicationTransaction | $xaction | Transaction being applied. |
null|const|list<const> | A capability constant (or list of capability constants) which the actor must have on the object. You can return `null` as a shorthand for "no capabilities are required". |
public function shouldTryMFA($object, $xaction)
$object | ||
PhabricatorApplicationTransaction | $xaction |
wild |
final public function getTitleForTextMail()
wild |
final public function getTitleForHTMLMail()
wild |
final public function getBodyForTextMail()
wild |
final public function getBodyForHTMLMail()
wild |
private function getTitleForMailWithRenderingTarget($target)
$target |
wild |
private function getBodyForMailWithRenderingTarget($target)
$target |
wild |
protected function getTitleForMail()
wild |
protected function getBodyForMail()
wild |