public function getConduitEditTypes() { $field = $this->getCustomField(); if (!$field->shouldAppearInConduitTransactions()) { return array(); } return parent::getConduitEditTypes(); }
public function getConduitEditTypes() { if (!$this->getUseEdgeTransactions()) { return parent::getConduitEditTypes(); } $transaction_type = $this->getTransactionType(); if ($transaction_type === null) { return array(); } $type_key = $this->getEditTypeKey(); $strings = $this->transactionDescriptions; $base = $this->getEditType(); $add = id(clone $base)->setEditType($type_key . '.add')->setEdgeOperation('+')->setDescription(idx($strings, '+'))->setValueDescription(pht('List of PHIDs to add.')); $rem = id(clone $base)->setEditType($type_key . '.remove')->setEdgeOperation('-')->setDescription(idx($strings, '-'))->setValueDescription(pht('List of PHIDs to remove.')); $set = id(clone $base)->setEditType($type_key . '.set')->setEdgeOperation('=')->setDescription(idx($strings, '='))->setValueDescription(pht('List of PHIDs to set.')); return array($add, $rem, $set); }